/* Паша - подбор авто и детейлинг, Варшава. Общие стили */

:root {
  --paper: #f4f1ec;
  --paper-2: #ebe6de;
  --ink: #14110f;
  --ink-2: #2a2622;
  --muted: #6f665d;
  --bronze: #9a7343;
  --bronze-soft: #c3a077;
  --line: #d8d0c4;
  --line-dark: #3a342d;
  --white: #fffdfa;
  --max: 1180px;
  --gut: 32px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, .display {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin: 0;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 4.05rem); }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.95rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }

p { margin: 0 0 1.05em; }
a { color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 810px; }

section { padding: 108px 0; position: relative; }
section.tight { padding: 78px 0; }

/* тёмные секции-полосы для ритма */
.dark {
  background: var(--ink);
  color: var(--paper);
}
.dark h1, .dark h2, .dark h3 { color: var(--white); }
.dark .muted { color: #a79c90; }
.dark .rule { background: var(--line-dark); }
.dark .num { color: var(--bronze-soft); }

.muted { color: var(--muted); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* номер секции тихий, цветом линии */
.num {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze);
  display: block;
  margin-bottom: 22px;
  font-weight: 500;
}

/* ---------- шапка ---------- */
header.top {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(244, 241, 236, 0.94);
  backdrop-filter: saturate(1.1) blur(9px);
  border-bottom: 1px solid var(--line);
}
.top-in {
  max-width: var(--max);
  margin: 0 auto;
  padding: 15px var(--gut);
  display: flex;
  align-items: center;
  gap: 26px;
}
.brand {
  font-family: "Cormorant Garamond", serif;
  font-size: 25px;
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
}
.brand b { font-weight: 600; }
.brand span { color: var(--bronze); }
nav.main { display: flex; gap: 25px; margin-left: auto; }
nav.main a {
  text-decoration: none;
  font-size: 14.5px;
  color: var(--ink-2);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
nav.main a:hover { border-bottom-color: var(--bronze); }
.top-phone {
  font-size: 15px;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}
.lang {
  display: flex;
  gap: 7px;
  font-size: 13px;
  letter-spacing: 0.08em;
  align-items: center;
}
.lang a { text-decoration: none; color: var(--muted); }
.lang a.on { color: var(--ink); font-weight: 600; }
.lang i { color: var(--line); font-style: normal; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  padding: 17px 34px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid var(--ink);
  transition: background .22s, color .22s;
  cursor: pointer;
}
.btn:hover { background: transparent; color: var(--ink); }
.dark .btn { background: var(--bronze); border-color: var(--bronze); color: var(--ink); }
.dark .btn:hover { background: transparent; color: var(--bronze-soft); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ---------- первый экран ---------- */
.hero { padding: 92px 0 84px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 66px;
  align-items: center;
}
.hero h1 { margin-bottom: 30px; }
.hero .kicker {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 26px;
  font-weight: 500;
}
ul.bullets { list-style: none; padding: 0; margin: 0 0 36px; }
ul.bullets li {
  padding: 13px 0 13px 26px;
  border-top: 1px solid var(--line);
  position: relative;
  font-size: 16px;
}
ul.bullets li:last-child { border-bottom: 1px solid var(--line); }
ul.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 23px;
  width: 12px;
  height: 1px;
  background: var(--bronze);
}
.cta-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.cta-note { font-size: 14px; color: var(--muted); }

/* тонкая рамка со смещением за изображением */
.framed { position: relative; }
.framed::after {
  content: "";
  position: absolute;
  inset: 20px -20px -20px 20px;
  border: 1px solid var(--bronze-soft);
  z-index: 0;
  pointer-events: none;
}
.framed img, .framed .ph {
  position: relative;
  z-index: 1;
  width: 100%;
  display: block;
}
.ph {
  aspect-ratio: 4 / 5;
  background: linear-gradient(150deg, #2b2723 0%, #191614 55%, #221e1a 100%);
  display: flex;
  align-items: flex-end;
  padding: 26px;
  color: #8b8177;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- полоса цифр ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats div {
  padding: 34px 26px;
  border-left: 1px solid var(--line);
}
.stats div:first-child { border-left: 0; }
.stats b {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.65rem;
  font-weight: 500;
  display: block;
  line-height: 1;
  margin-bottom: 9px;
}
.stats span { font-size: 13.5px; color: var(--muted); line-height: 1.42; display: block; }

/* ---------- сетки ---------- */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 58px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.three > div { background: var(--paper); padding: 34px 30px; }
.dark .three { background: var(--line-dark); }
.dark .three > div { background: var(--ink); }

.lead { font-size: 19px; line-height: 1.6; }

/* блоки со списком через волосяную линию */
.rows { border-top: 1px solid var(--line); }
.rows > div {
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 34px;
}
.rows h3 { font-size: 1.32rem; }
.rows p:last-child { margin-bottom: 0; }
.dark .rows, .dark .rows > div { border-color: var(--line-dark); }

/* карточки услуг */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.card {
  background: var(--paper);
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  text-decoration: none;
  color: inherit;
  transition: background .22s;
}
.card:hover { background: var(--paper-2); }
.card h3 { margin-bottom: 13px; }
.card p { font-size: 15px; color: var(--muted); }
.card .price {
  margin-top: auto;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--bronze);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* прайс */
table.price { width: 100%; border-collapse: collapse; margin-bottom: 42px; }
table.price th {
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bronze);
  font-weight: 500;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
}
table.price td {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  vertical-align: top;
}
table.price td:last-child {
  text-align: right;
  white-space: nowrap;
  font-weight: 500;
  padding-left: 26px;
}
table.price tr.hl td { background: rgba(154, 115, 67, 0.07); }
.dark table.price td, .dark table.price th { border-color: var(--line-dark); }

/* истории */
.story { border-left: 1px solid var(--bronze-soft); padding: 4px 0 4px 30px; margin-bottom: 42px; }
.story h3 { margin-bottom: 12px; }
.story p:last-child { margin-bottom: 0; }
.story .verdict {
  display: inline-block;
  margin-top: 14px;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze);
}

/* отзывы */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark); }
.quotes blockquote {
  margin: 0;
  background: var(--ink);
  padding: 34px 30px;
}
.quotes p { font-size: 15.5px; line-height: 1.58; }
.quotes cite {
  font-style: normal;
  font-size: 13px;
  color: var(--bronze-soft);
  letter-spacing: 0.05em;
}

/* шаги */
.steps { counter-reset: st; border-top: 1px solid var(--line); }
.steps > div {
  counter-increment: st;
  border-bottom: 1px solid var(--line);
  padding: 28px 0 28px 76px;
  position: relative;
}
.steps > div::before {
  content: counter(st, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 30px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  color: var(--bronze);
}
.steps h3 { font-size: 1.28rem; margin-bottom: 7px; }
.steps p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* FAQ */
details.faq {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
details.faq summary {
  cursor: pointer;
  list-style: none;
  font-size: 17.5px;
  font-weight: 500;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  margin-left: auto;
  color: var(--bronze);
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}
details.faq[open] summary::after { content: "\2013"; }
details.faq p { margin: 16px 0 0; color: var(--muted); max-width: 780px; }

/* форма */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
input, textarea, select {
  width: 100%;
  padding: 15px 17px;
  border: 1px solid var(--line-dark);
  background: transparent;
  color: var(--paper);
  font-family: inherit;
  font-size: 15.5px;
  border-radius: 0;
}
input::placeholder, textarea::placeholder { color: #7d7368; }
input:focus, textarea:focus, select:focus { outline: 1px solid var(--bronze); border-color: var(--bronze); }
select option { background: var(--ink); }
.form-note { font-size: 13px; color: #8b8177; margin-top: 14px; }

/* футер */
footer {
  background: var(--ink);
  color: #9c9288;
  padding: 62px 0 44px;
  font-size: 14.5px;
  border-top: 1px solid var(--line-dark);
}
footer a { color: var(--paper); text-decoration: none; }
footer a:hover { color: var(--bronze-soft); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 42px; margin-bottom: 42px; }
.foot-grid h4 {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bronze);
  margin: 0 0 16px;
  font-weight: 500;
}
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 9px; }
.foot-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 26px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* мобильная нижняя панель */
.mobile-bar { display: none; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero .framed { max-width: 460px; }
  .two { grid-template-columns: 1fr; gap: 38px; }
  .three, .cards, .quotes { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .rows > div { grid-template-columns: 1fr; gap: 12px; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  nav.main { display: none; }
  section { padding: 74px 0; }
}

@media (max-width: 620px) {
  :root { --gut: 20px; }
  body { font-size: 16px; }
  .top-phone { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stats div { border-left: 0; border-top: 1px solid var(--line); }
  .stats div:first-child { border-top: 0; }
  .framed::after { inset: 12px -12px -12px 12px; }
  body { padding-bottom: 62px; }
  .mobile-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 80;
    border-top: 1px solid var(--line-dark);
  }
  .mobile-bar a {
    padding: 17px 10px;
    text-align: center;
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 500;
    background: var(--ink);
    color: var(--white);
  }
  .mobile-bar a + a { background: var(--bronze); color: var(--ink); }
}
