:root {
  --ink: #151a18;
  --forest: #253a34;
  --forest-deep: #17251f;
  --limestone: #f2efe9;
  --paper: #fbfaf7;
  --line: #d7d5cf;
  --gold: #bea265;
  --gold-light: #d1bc8c;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, summary, select { cursor: pointer; }
::selection { background: var(--gold); color: var(--ink); }
.page-shell { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 50; padding: 10px 14px; background: #fff; color: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.hero {
  position: relative;
  min-height: 790px;
  color: #fff;
  background: url("/img/kvartira3-hero.jpg") center / cover no-repeat;
  isolation: isolate;
}
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7,14,15,.78), rgba(12,18,18,.58) 43%, rgba(10,15,15,.18) 78%),
    linear-gradient(180deg, rgba(4,9,10,.58), transparent 31%, rgba(7,10,10,.55));
}
.site-header {
  height: 94px;
  display: grid;
  grid-template-columns: 210px 1fr auto;
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid rgba(255,255,255,.22);
}
.brand {
  position: relative;
  width: max-content;
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: start;
  color: #fff;
}
.brand__name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  line-height: 1;
  letter-spacing: -.045em;
}
.brand__three {
  margin: -4px 0 0 4px;
  color: var(--gold-light);
  font: 21px/1 Georgia, "Times New Roman", serif;
}
.brand__note {
  grid-column: 1 / -1;
  margin-top: 4px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.desktop-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.6vw, 38px);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.desktop-nav a, .footer-nav a { transition: color .2s ease; }
.desktop-nav a:hover, .footer-nav a:hover { color: var(--gold-light); }

.arrow {
  --size: 18px;
  position: relative;
  width: var(--size);
  height: var(--size);
  flex: 0 0 var(--size);
  display: inline-grid;
  place-items: center;
  color: currentColor;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.arrow::before {
  content: "";
  position: relative;
  width: 10px;
  height: 1.25px;
  border-radius: 999px;
  background: currentColor;
}
.arrow::after {
  content: "";
  position: absolute;
  top: calc(50% - 3px);
  left: calc(50% + 1px);
  width: 4.5px;
  height: 4.5px;
  border-top: 1.25px solid currentColor;
  border-right: 1.25px solid currentColor;
  transform: rotate(45deg);
}
.arrow--diagonal { transform: rotate(-45deg); }
.arrow--up { transform: rotate(-90deg); }
.arrow--circle { --size: 27px; border: 1px solid color-mix(in srgb, currentColor 32%, transparent); border-radius: 50%; }

.header-action {
  min-width: 168px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease;
}
.header-action .arrow--circle, .pill-button .arrow--circle, .finder button .arrow--circle {
  border-color: transparent;
  background: #fff;
}
.header-action .arrow--circle { color: var(--ink); }
.header-action:hover { background: #fff; color: var(--ink); }
.header-action:hover .arrow--circle { background: var(--ink); color: #fff; }
.mobile-menu { display: none; }

.hero__content { padding-top: 92px; }
.eyebrow, .hero__kicker {
  margin: 0 0 22px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero__kicker { display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,.76); }
.hero__kicker::before { content: ""; width: 42px; height: 1px; background: var(--gold-light); }
.display-title {
  max-width: 100%;
  margin: 0;
  font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  letter-spacing: -.055em;
  line-height: .98;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.hero h1 { max-width: 900px; font-size: clamp(56px, 6.1vw, 92px); }
.hero__bottom { display: flex; align-items: center; gap: 36px; margin-top: 48px; }
.hero__bottom > p { max-width: 355px; margin: 0; color: rgba(255,255,255,.8); font-size: 15px; line-height: 1.55; }
.pill-button {
  min-width: 244px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 17px 22px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease;
}
.pill-button .arrow--circle { color: #9a7b40; }
.pill-button:hover { transform: translateY(-2px); background: #ad8e50; }

.finder {
  position: absolute;
  right: 0;
  bottom: -60px;
  left: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.65fr .8fr 128px;
  padding: 26px 28px;
  border-radius: 8px;
  background: rgba(251,250,247,.98);
  box-shadow: 0 18px 48px rgba(20,27,25,.18);
  color: var(--ink);
}
.finder label { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 7px; padding: 1px 24px; border-right: 1px solid var(--line); }
.finder label > span { color: #767b77; font-size: 9px; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; }
.finder input, .finder select { width: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
.finder input::placeholder { color: #858884; }
.finder button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-left: 20px;
  border: 0;
  border-radius: 4px;
  background: var(--forest);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.finder button .arrow--circle { color: var(--forest); }

.category-section { padding-top: 160px; padding-bottom: 118px; }
.section-lead { display: grid; grid-template-columns: 1.1fr 1fr; column-gap: 80px; align-items: end; margin-bottom: 64px; }
.section-lead .eyebrow { grid-column: 1 / -1; }
.section-lead h2, .guides-head h2, .faq-section h2 { font-size: clamp(46px, 5.2vw, 72px); }
.lead-copy { max-width: 425px; margin: 0 0 4px; color: #5d625e; font-size: 16px; line-height: 1.7; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.category-card {
  min-height: 275px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .25s ease, color .25s ease;
}
.category-card:hover { background: var(--forest); color: #fff; }
.category-top { display: flex; justify-content: space-between; align-items: center; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.category-top > span:first-child { color: #777c78; }
.category-card:hover .category-top > span:first-child, .category-card:hover > p { color: rgba(255,255,255,.62); }
.category-card:hover .arrow--circle { border-color: rgba(255,255,255,.38); }
.category-card h3 { max-width: 260px; margin: auto 0 18px; font-size: 26px; font-weight: 420; letter-spacing: -.035em; line-height: 1.05; }
.category-card > p { max-width: 290px; margin: 0; color: #777c78; font-size: 13px; line-height: 1.55; }
.category-foot { display: flex; justify-content: space-between; padding-top: 22px; color: #7c807c; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.category-foot a, .route-link { display: flex; align-items: center; gap: 14px; }
.category-foot a { color: var(--ink); }
.category-foot a:hover .arrow, .route-link:hover .arrow { transform: rotate(-45deg) translate(4px, 0); }

.route-section { position: relative; overflow: hidden; background: var(--forest); color: #fff; }
.route-section::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 80px 80px; }
.route-grid { position: relative; display: grid; grid-template-columns: .62fr 1fr 1.08fr; min-height: 720px; }
.route-number { align-self: end; margin-left: -30px; color: rgba(209,188,140,.2); font: 400 560px/.72 Georgia, serif; letter-spacing: -.12em; transform: translateY(42px); }
.route-intro { align-self: center; padding-left: 12px; }
.eyebrow--light { color: var(--gold-light); }
.route-intro h2, .consult-content h2 { font-size: clamp(54px, 5.7vw, 82px); }
.route-steps { align-self: center; border-top: 1px solid rgba(255,255,255,.2); }
.route-steps article { display: grid; grid-template-columns: 120px 1fr; column-gap: 20px; padding: 27px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.route-steps article > span { color: var(--gold-light); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.route-steps h3 { margin: 0; font-size: 18px; font-weight: 450; }
.route-steps p { grid-column: 2; margin: 8px 0 0; color: rgba(255,255,255,.6); font-size: 13px; line-height: 1.5; }
.route-link { justify-content: space-between; padding-top: 28px; color: var(--gold-light); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

.guides-section { padding-top: 118px; padding-bottom: 128px; }
.guides-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 80px; align-items: end; margin-bottom: 55px; }
.guides-head > p { max-width: 430px; margin: 0 0 6px; color: #646964; font-size: 15px; line-height: 1.7; }
.guide-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 12px; }
.guide-card { position: relative; min-height: 455px; display: flex; flex-direction: column; justify-content: space-between; padding: 30px; overflow: hidden; }
.guide-card--dark { background: linear-gradient(rgba(15,26,23,.6), rgba(15,26,23,.92)), url("/img/kvartira3-hero.jpg") center / cover; color: #fff; }
.guide-card--light { border: 1px solid var(--line); background: var(--limestone); }
.guide-card--gold { background: var(--gold); color: #fff; }
.guide-eyebrow { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; opacity: .65; }
.guide-card h3 { margin: 0 0 18px; font-size: clamp(27px, 2.4vw, 36px); font-weight: 400; letter-spacing: -.045em; line-height: 1.03; }
.guide-card p { max-width: 330px; margin: 0; font-size: 13px; line-height: 1.55; opacity: .7; }
.guide-arrow { position: absolute; top: 27px; right: 28px; }
.guide-card:hover .guide-arrow { transform: rotate(-45deg) translate(5px, 0); }

.consult-section { position: relative; overflow: hidden; background: #18241f; color: #fff; }
.consult-texture { position: absolute; inset: 0 0 0 55%; opacity: .26; background: linear-gradient(120deg, transparent 20%, rgba(190,162,101,.6) 20.4%, transparent 20.8%), linear-gradient(80deg, transparent 50%, rgba(255,255,255,.25) 50.3%, transparent 50.6%), linear-gradient(20deg, transparent 73%, rgba(190,162,101,.45) 73.4%, transparent 73.8%); transform: scale(1.4); }
.consult-content { position: relative; padding-top: 110px; padding-bottom: 112px; }
.consult-content h2 { max-width: 940px; }
.consult-bottom { display: flex; justify-content: flex-end; align-items: center; gap: 48px; margin-top: 55px; }
.consult-bottom > p { max-width: 385px; margin: 0; color: rgba(255,255,255,.62); font-size: 14px; line-height: 1.65; }

.faq-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; padding-top: 120px; padding-bottom: 120px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; display: flex; justify-content: space-between; gap: 30px; padding: 25px 0; font-size: 17px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { font-size: 24px; font-weight: 300; transition: transform .2s ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { max-width: 620px; margin: -6px 0 28px; color: #676b68; font-size: 14px; line-height: 1.65; }

.site-footer { background: var(--forest-deep); color: #fff; }
.footer-top { min-height: 300px; display: grid; grid-template-columns: 1fr 1.35fr auto; gap: 60px; align-items: start; padding-top: 64px; }
.footer-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 70px; }
.footer-nav > div { display: flex; flex-direction: column; gap: 12px; font-size: 13px; }
.footer-nav span { margin-bottom: 8px; color: rgba(255,255,255,.36); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.footer-up { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.46); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .desktop-nav, .header-action { display: none; }
  .mobile-menu { position: relative; z-index: 5; display: block; }
  .mobile-menu summary { width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; list-style: none; border: 1px solid rgba(255,255,255,.32); border-radius: 50%; transition: border-color .2s ease, background .2s ease; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary span { width: 18px; height: 1px; background: #fff; transition: transform .2s ease; }
  .mobile-menu[open] summary { border-color: var(--gold-light); background: rgba(255,255,255,.08); }
  .mobile-menu[open] summary span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .mobile-menu[open] summary span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
  .mobile-menu > div { position: absolute; top: 60px; right: 0; width: min(360px, calc(100vw - 40px)); display: flex; flex-direction: column; gap: 0; padding: 8px 14px; border: 1px solid var(--line); border-radius: 2px; background: var(--paper); color: var(--ink); box-shadow: 0 20px 55px rgba(0,0,0,.22); }
  .mobile-menu > div a { min-height: 50px; padding: 14px 2px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
  .mobile-menu > div a:last-child { border-bottom: 0; }
  .mobile-menu > div a::after { content: "↗"; color: #9a7b40; font-size: 15px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .route-grid { grid-template-columns: .35fr 1fr 1.1fr; }
  .route-number { font-size: 400px; }
  .guide-grid { grid-template-columns: 1fr 1fr; }
  .guide-card:first-child { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
  .page-shell { width: min(100% - 32px, 600px); }
  .hero { min-height: 780px; background-position: 60% center; }
  .site-header { height: 76px; }
  .brand__name { font-size: 24px; }
  .brand__three { font-size: 18px; }
  .mobile-menu > div { width: calc(100vw - 32px); }
  .hero__content { padding-top: 78px; }
  .hero h1 { font-size: clamp(44px, 13.7vw, 64px); line-height: .96; }
  .hero__bottom { align-items: flex-start; flex-direction: column-reverse; gap: 24px; margin-top: 36px; }
  .hero__bottom > p { font-size: 14px; }
  .pill-button { width: 100%; }
  .finder { bottom: -126px; grid-template-columns: 1fr; padding: 18px; }
  .finder label { padding: 12px 4px; border-right: 0; border-bottom: 1px solid var(--line); }
  .finder button { min-height: 50px; margin: 16px 0 0; }
  .category-section { padding-top: 205px; padding-bottom: 84px; }
  .section-lead, .guides-head, .faq-section { grid-template-columns: 1fr; gap: 28px; }
  .section-lead { margin-bottom: 42px; }
  .section-lead h2, .guides-head h2, .faq-section h2 { font-size: 45px; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 230px; }
  .category-foot { align-items: flex-start; flex-direction: column; gap: 15px; }
  .route-grid { grid-template-columns: 1fr; min-height: auto; padding-top: 84px; padding-bottom: 86px; }
  .route-number { position: absolute; right: -22px; bottom: 0; margin: 0; font-size: 330px; }
  .route-intro { padding-left: 0; }
  .route-intro h2, .consult-content h2 { font-size: 53px; }
  .route-steps { z-index: 1; margin-top: 60px; }
  .route-steps article { grid-template-columns: 1fr; }
  .route-steps p { grid-column: 1; }
  .route-steps h3 { margin-top: 12px; }
  .guides-section { padding-top: 84px; padding-bottom: 88px; }
  .guides-head { margin-bottom: 38px; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-card:first-child { grid-column: auto; }
  .guide-card { min-height: 380px; }
  .consult-texture { inset: 0 0 0 20%; }
  .consult-content { padding-top: 82px; padding-bottom: 84px; }
  .consult-bottom { align-items: stretch; flex-direction: column; gap: 28px; }
  .faq-section { padding-top: 84px; padding-bottom: 86px; }
  .faq-list summary { font-size: 15px; }
  .footer-top { min-height: auto; grid-template-columns: 1fr auto; padding-top: 54px; padding-bottom: 58px; }
  .footer-nav { grid-column: 1 / -1; grid-row: 2; gap: 34px; }
  .footer-up { grid-column: 2; grid-row: 1; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
