/* DOOR.RU · Адаптивная вёрстка по утверждённому макету · 2026 */
:root {
  color-scheme: light;
  --paper: #f4f1ec;
  --paper-light: #faf8f5;
  --ink: #20201f;
  --muted: #82807a;
  --line: #dcd8d1;
  --yellow: #f7be12;
  --consult: #e9e6df;
  --font-sans: Inter, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Times New Roman", Georgia, "Noto Serif", serif;
  --ease: cubic-bezier(.22,1,.36,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 102px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid #9b7200; outline-offset: 4px; }
::selection { background: var(--yellow); color: var(--ink); }
.container { width: calc(100% - 100px); max-width: 1320px; margin-inline: auto; }
.skip-link { position: fixed; top: -90px; left: 10px; z-index: 200; padding: 12px 18px; background: #fff; }
.skip-link:focus { top: 10px; }

/* Шапка остаётся видимой на всей длине страницы. */
.site-header {
  background: rgba(244,241,236,.97);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 240ms ease, background-color 240ms ease;
}
.site-header.is-scrolled {
  background: rgba(244,241,236,.985);
  box-shadow: 0 9px 22px rgba(24,23,21,.065);
}
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 22px; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 21px; }
.brand-logo, .drawer-logo { display: block; width: 121px; height: auto; flex: 0 0 auto; }
.brand-description { color: #91908a; font-size: 9px; line-height: 1.35; font-weight: 600; letter-spacing: .17em; }
.header-nav { display: flex; align-items: center; gap: clamp(16px, 3.1vw, 52px); margin-left: auto; white-space: nowrap; }
.header-nav a, .header-phone { font-size: 12px; font-weight: 500; transition: opacity .2s; }
.header-nav a:hover, .header-phone:hover { opacity: .55; }
.header-actions { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); margin-left: clamp(12px, 3.5vw, 60px); }
.header-phone { letter-spacing: .012em; white-space: nowrap; }
.menu-trigger { border: 1px solid #4e4b47; background: transparent; border-radius: 100px; min-width: 96px; height: 38px; padding: 0 15px 0 18px; display: inline-flex; align-items: center; justify-content: space-between; gap: 11px; font-size: 12px; white-space: nowrap; transition: background .2s, color .2s; }
.menu-trigger:hover { color: #fff; background: var(--ink); }
.hamburger { width: 15px; display: flex; flex-direction: column; gap: 4px; }
.hamburger i { width: 100%; height: 1px; background: currentColor; display: block; }

.intro { padding-top: 42px; padding-bottom: 62px; }
.intro-eyebrow { font-size: 10px; text-transform: uppercase; text-align: right; letter-spacing: .20em; color: #898780; margin: 0 0 16px; }
.intro h1 { margin: 0; font-family: var(--font-serif); font-size: clamp(48px, 9vw, 124px); font-weight: 400; line-height: 1.07; letter-spacing: -.06em; white-space: nowrap; }
.gold-dot { color: var(--yellow); letter-spacing: -.03em; }
.directions-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 37px; row-gap: 59px; }
.direction-card { min-width: 0; }
.card-image-wrap { position: relative; aspect-ratio: 232/289; background: #e4e0da; display: block; overflow: hidden; }
.card-image-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ease), filter .45s; }
/* Единая высота логотипов во всех шести карточках (без искажения пропорций). */
.card-image-wrap { --card-logo-height: clamp(30px, 4vw, 58px); }
/* Фотографии взяты из макета, в них уже были логотипы. Подложка перекрывает старые. */
.card-logo-slot {
  position: absolute;
  z-index: 12; /* Above the submenu (z-index: 7), but below the close button. */
  top: 2.5%;
  left: 3%;
  width: 44%;
  height: 19%;
  padding: 0 3%;
  background: #f2f0eb;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0,0,0,.04);
}
.card-image-wrap .card-logo-slot .card-logo-badge {
  position: static;
  display: block;
  flex: none;
  height: var(--card-logo-height);
  width: auto;
  max-width: none;
  padding: 0;
  object-fit: contain;
  pointer-events: none;
  transition: none;
}
/* Логотипы в покое чёрно-белые; цвет фирменной плашки и логотипа
   плавно возвращается при наведении или переходе по клавиатуре. */
.card-image-wrap .card-logo-slot {
  filter: grayscale(1);
  transition: filter 540ms var(--ease);
  will-change: filter;
}
.direction-card:hover .card-image-wrap .card-logo-slot,
.direction-card:focus-within .card-image-wrap .card-logo-slot {
  filter: grayscale(0);
}
.card-logo-slot--service { background: #083878; }
.card-logo-slot--stal { background: #f9ca00; }
.card-logo-slot--leganza { background: #060606; }
.card-logo-slot--polyprotect { background: #0088db; }
.card-logo-slot--stallock { background: #002854; }
.card-logo-slot--dpz { background: #e32225; }
.card-image-wrap .logo--leganza { border-radius: 1px; }
.card-image-wrap .logo--polyprotect { box-shadow: 0 3px 9px rgba(0,0,0,.08); }
.card-image-wrap .logo--stallock { border-radius: 12px; }
.direction-card:hover .card-image-wrap img:not(.card-logo-badge) { transform: scale(1.045); filter: saturate(1.04); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid #c9c5bf; padding-top: 16px; margin-top: 16px; min-height: 30px; font-size: 11px; font-weight: 500; color: #93918d; }
.card-number { position: relative; letter-spacing: .21em; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
/* На ховере жёлтый маркер возникает без сдвига номера и соседних элементов. */
.card-number::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% + 10px);
  width: 8px;
  height: 8px;
  background: var(--yellow);
  border-radius: 50%;
  opacity: 0;
  transform: translateY(-50%) scale(.45);
  transition: opacity 220ms ease, transform 320ms var(--ease);
  pointer-events: none;
}
.direction-card:hover .card-number::after,
.direction-card:focus-within .card-number::after {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}
.direction-card:hover .card-title,
.direction-card:focus-within .card-title { color: var(--yellow); }
.card-small-dot { width: 8px; height: 8px; background: var(--yellow); border-radius: 50%; display: inline-block; }
.card-domain { font-size: 10px; letter-spacing: .11em; overflow-wrap: anywhere; text-align: right; }
.card-text-link { display: block; margin-top: 10px; }
.card-title { display: block; font-family: var(--font-serif); font-size: clamp(28px, 2.83vw, 43px); font-weight: 400; letter-spacing: -.052em; line-height: 1.17; min-height: 49px; transition: color 320ms ease; }
.card-bottom { min-height: 40px; display: flex; align-items: start; justify-content: space-between; gap: 15px; font-size: 13px; line-height: 1.55; color: #787771; margin-top: 8px; }
.card-bottom > span:first-child { max-width: 93%; }
.arrow { flex-shrink: 0; font: 26px/1 Arial, sans-serif; color: #262522; margin-top: 1px; transition: transform .25s var(--ease); }
.card-text-link:hover .arrow { transform: translateX(7px); }

.interior { border-top: 1px solid #d7d3cc; margin-top: 74px; padding-top: 36px; padding-bottom: 84px; display: grid; grid-template-columns: 1fr 1fr; gap: 7.5%; align-items: start; }
.interior-copy { padding-top: 28px; }
.interior h2 { font-family: var(--font-serif); font-size: clamp(34px, 3.58vw, 54px); font-weight: 400; letter-spacing: -.048em; line-height: 1.12; margin: 0 0 33px; }
.interior-copy p { font-size: 13px; line-height: 1.6; color: var(--muted); max-width: 300px; margin: 0 0 28px; }
.text-link { display: inline-flex; align-items: center; gap: 30px; font-size: 12px; transition: opacity .2s; }
.text-link:hover { opacity: .55; }
.text-link span { font-size: 26px; }
.interior-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.interior-photo { min-width: 0; }
.interior-photo img { display: block; width: 100%; aspect-ratio: 151/189; object-fit: cover; transition: filter .2s; }
.interior-photo:hover img { filter: brightness(.9); }
.interior-photo span { display: block; font-size: 9px; letter-spacing: .15em; text-transform: uppercase; margin-top: 13px; }

.social { background: #faf9f7; }
.social-inner { min-height: 136px; display: flex; align-items: center; gap: 30px; justify-content: space-between; }
.social h2 { font-size: 13px; line-height: 1.5; color: #71716c; margin: 0; font-weight: 400; flex: 0 0 25%; }
.social-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 27px; flex: 1 1 auto; }
.social-links a, .social-links button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: #060606; color: white; border: 1px solid #060606; border-radius: 0; padding: 0 12px; white-space: nowrap; font-size: 12px; font-weight: 500; transition: background .2s, color .2s; }
.social-links a:hover, .social-links button:hover { background: #f7be12; border-color: #f7be12; color: #111; }
.social-icon { width: 20px; height: 20px; display: inline-grid; place-items: center; flex: 0 0 auto; font-size: 11px; font-weight: 800; border-radius: 4px; background: white; color: #080808; line-height: 1; }
.social-icon--pinterest { border-radius: 50%; font-family: Georgia, serif; font-size: 16px; }
.social-icon--tg { font-size: 16px; }

.consultation { background: var(--consult); }
.consultation-inner { min-height: 415px; display: grid; grid-template-columns: 1fr 1fr; gap: 9%; align-items: center; }
.section-kicker { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .17em; color: #85827b; margin-bottom: 19px; }
.consultation h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(40px, 4.2vw, 62px); letter-spacing: -.055em; line-height: 1.05; margin: 0 0 28px; }
.consultation-copy p { font-size: 13px; color: #77746f; margin: 0; line-height: 1.5; }
.callback-form { align-self: center; display: flex; flex-direction: column; align-items: flex-start; }
.callback-form label { font-size: 10px; font-weight: 600; text-transform: uppercase; color: #8e8b84; letter-spacing: .16em; margin-bottom: 12px; }
.callback-form input { width: 100%; height: 58px; background: transparent; border: none; border-bottom: 1px solid #bfbab2; border-radius: 0; outline: none; font-size: 33px; font-family: var(--font-serif); letter-spacing: .04em; padding: 2px 0 10px; color: var(--ink); }
.callback-form input::placeholder { color: #aca8a1; }
.callback-form input:focus { border-color: #66605a; }
.phone-error { min-height: 18px; color: #a52323; font-size: 11px; margin-top: 5px; }
.submit-button { margin-top: 16px; min-height: 49px; border: none; background: var(--yellow); color: #12120f; display: inline-flex; justify-content: space-between; align-items: center; gap: 26px; padding: 0 19px 0 23px; font-size: 13px; transition: background .2s; }
.submit-button span { font-size: 23px; font-weight: 400; }
.submit-button:hover { background: #e4a900; }
.form-note { font-size: 9px; color: #98948e; margin: 13px 0 0; line-height: 1.5; }
.form-note a { text-decoration: underline; text-decoration-color: #b6b0a5; text-underline-offset: 2px; }
.form-status { font-size: 12px; min-height: 16px; color: #675a40; margin: 8px 0 0; }

.footer { background: var(--paper); }
.footer-inner { padding-top: 115px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 60px; min-height: 245px; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-col h3 { font-size: 10px; text-transform: uppercase; font-weight: 500; color: #aaa59d; letter-spacing: .19em; margin: 0 0 5px; }
.footer-col a, .footer-col p, .footer-col button { font-size: 12px; color: #4e4d49; line-height: 1.2; }
.footer-col a:hover, .footer-col button:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-col p { line-height: 1.45; margin: 0; }
.footer-col button { padding: 0; border: 0; background: none; text-align: left; }
.footer-bottom { border-top: 1px solid #ddd9d2; min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #aaa59f; font-size: 10px; }
.footer-bottom a:hover { color: #555; }

/* ВЫДВИЖНОЕ МОБИЛЬНОЕ МЕНЮ DOOR.RU · одна версия и для телефона, и для компьютера */
.menu-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(18,18,17,.43); opacity: 0; transition: opacity 260ms ease; }
.menu-backdrop[hidden] { display: none; }
.menu-backdrop.is-visible { opacity: 1; }
/* Быстрый (330 мс), но плавный выезд правого меню. */
.drawer { position: fixed; z-index: 50; right: 0; top: 0; bottom: 0; width: min(490px,100vw); background: var(--paper); box-shadow: -8px 0 60px rgba(0,0,0,.09); display: flex; flex-direction: column; transform: translate3d(102%,0,0); transition: transform 330ms cubic-bezier(.25,.85,.3,1), visibility 0s linear 330ms; visibility: hidden; will-change: transform; }
.drawer.is-open { transform: translate3d(0,0,0); visibility: visible; transition: transform 330ms cubic-bezier(.25,.85,.3,1), visibility 0s; }
.drawer-top { padding: 23px 30px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; }
.drawer-logo { width: 121px; }
.drawer-close { width: 38px; height: 38px; border: 1px solid var(--ink); border-radius: 50%; background: transparent; position: relative; flex-shrink: 0; transition: background .2s; }
.drawer-close:hover { background: #ded8cf; }
.drawer-close span { width: 16px; height: 1px; background: #20201f; position: absolute; top: 17px; left: 10px; transform: rotate(45deg); }
.drawer-close span + span { transform: rotate(-45deg); }
.drawer-body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c4bfb5 transparent; }
.drawer-bottom { flex: 0 0 auto; border-top: 1px solid var(--line); padding: 16px 30px 20px; display: flex; flex-direction: column; gap: 10px; }
.drawer-bottom > a { font-family: var(--font-serif); font-size: 24px; }
.drawer-bottom small { font-size: 11px; color: #77736d; }
.drawer-menu { padding: 15px 30px 32px; }
.drawer-location { font-size: 11px; color: #6b6965; padding: 5px 0 12px; display: flex; justify-content: space-between; align-items: center; }
.drawer-location span { font-size: 9px; color: #aaa49e; letter-spacing: .1em; text-transform: uppercase; }
.menu-search { margin: 7px 0 15px; position: relative; }
.menu-search input { border: 1px solid #d5d0c7; background: #fbfaf8; width: 100%; height: 48px; font-size: 13px; padding: 0 15px 0 42px; border-radius: 0; }
.menu-search::before { content: ""; width: 12px; height: 12px; border: 1.5px solid #6a6660; border-radius: 50%; position: absolute; top: 15px; left: 15px; }
.menu-search::after { content: ""; width: 7px; height: 1.5px; background: #6a6660; position: absolute; top: 29px; left: 25px; transform: rotate(45deg); }
.menu-list { display: flex; flex-direction: column; }
.menu-item-row { min-height: 53px; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; background: transparent; border: none; border-bottom: 1px solid #dedad3; text-align: left; font-family: var(--font-sans); font-size: 19px; font-weight: 400; letter-spacing: -.015em; color: var(--ink); }
.menu-item-row:hover { color: #997100; }
.menu-item-row > .row-arrow, .menu-leaf .row-arrow { font-family: Arial, sans-serif; font-size: 25px; font-weight: 200; color: #8f8a83; }
.menu-item-row.menu-item-accent { color: #b48a0d; }
.menu-item-row.menu-item-accent:hover { color: #6e5408; }
.menu-connect-title { display: block; margin: 28px 0 14px; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: #8c8881; }
.menu-connect a { display: inline-flex; align-items: center; justify-content: center; padding: 11px 14px; border: 1px solid #d4d0c7; margin: 0 7px 9px 0; font-size: 12px; }
.menu-connect a:hover { background: #e5dfd4; }
.menu-back-button { font-size: 12px; border: 0; padding: 3px 0 20px; background: transparent; color: #7c7771; display: inline-flex; align-items: center; gap: 10px; }
.menu-back-button:hover { color: var(--ink); }
.menu-panel-title { font-family: var(--font-serif); font-size: 46px; letter-spacing: -.045em; line-height: 1.08; font-weight: 400; margin: 0 0 14px; }
.menu-panel-all { display: inline-flex; align-items: center; gap: 12px; color: #9a760f; padding: 0 0 19px; font-size: 12px; }
.menu-panel-all:hover { text-decoration: underline; }
.menu-group { padding: 15px 0 19px; border-top: 1px solid var(--line); }
.menu-group h3 { margin: 0 0 9px; font-size: 11px; text-transform: uppercase; font-weight: 600; color: #8a857e; letter-spacing: .14em; }
.menu-subitem { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 15px; line-height: 1.4; color: #35332f; padding: 9px 0; transition: color .2s; }
.menu-subitem:hover { color: #b78900; }
.menu-subitem::after { content: "↗"; font-family: Arial, sans-serif; font-size: 13px; color: #ada9a0; }
.menu-results-label { display: block; font-size: 12px; color: #8a857f; margin: 17px 0 8px; }
.menu-no-results { font-size: 13px; color: #89847d; margin: 16px 0; }
.menu-search-result { padding: 11px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.menu-search-result span { font-size: 14px; }
.menu-search-result small { font-size: 10px; color: #a09b93; }
.toast { position: fixed; bottom: 28px; left: 50%; transform: translate(-50%,20px); z-index: 100; background: #20201f; color: #fff; padding: 14px 19px; max-width: min(90vw,460px); font-size: 12px; line-height: 1.45; text-align: center; opacity: 0; pointer-events: none; transition: transform .25s, opacity .25s; }
.toast.is-visible { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 1200px) {
  .header-nav { gap: 17px; }
  .header-actions { margin-left: 8px; gap: 17px; }
  .brand { gap: 10px; }
  .brand-description { font-size: 8px; letter-spacing: .08em; }
  .directions-grid { gap: 40px 24px; }
  .social-links { gap: 10px; }
  .intro h1 { font-size: 7.7vw; }
}
@media (max-width: 980px) {
  .container { width: calc(100% - 60px); }
  .header-nav { display: none; }
  .header-actions { margin-left: auto; }
  .intro { padding-top: 40px; }
  .intro h1 { font-size: clamp(48px, 7vw, 68px); }
  .card-title { font-size: clamp(27px, 3.25vw, 38px); }
  .card-bottom { font-size: 12px; }
  .social-links a, .social-links button { padding: 0 7px; font-size: 11px; }
}
@media (max-width: 740px) {
  .container { width: calc(100% - 36px); }
  .header-inner { min-height: 72px; }
  .brand-logo { width: 112px; }
  .brand-description { font-size: 8px; }
  .header-phone { display: none; }
  .menu-trigger { min-width: 91px; height: 35px; }
  .intro { padding: 33px 0 31px; }
  .intro-eyebrow { text-align: left; font-size: 8px; margin-bottom: 20px; }
  .intro h1 { font-size: clamp(34px, 9vw, 57px); line-height: 1.0; white-space: normal; letter-spacing: -.06em; }
  .directions-grid { grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 17px; row-gap: 35px; }
  .card-image-wrap { position: relative; aspect-ratio: 232/289; }
  .card-head { padding-top: 10px; margin-top: 11px; }
  .card-number, .card-domain { font-size: 8px; }
  .card-small-dot { width: 6px; height: 6px; }
  .card-title { font-size: clamp(24px, 4vw, 34px); min-height: 32px; }
  .card-bottom { font-size: 11px; margin-top: 3px; line-height: 1.4; }
  .arrow { font-size: 23px; }
  .interior { grid-template-columns: 1fr; gap: 30px; margin-top: 52px; padding: 28px 0 55px; }
  .interior-copy { padding-top: 0; }
  .interior h2 { font-size: 43px; margin-bottom: 18px; }
  .interior-copy p { margin-bottom: 15px; }
  .interior-gallery { gap: 14px; }
  .social-inner { padding: 22px 0 25px; display: block; }
  .social h2 { margin-bottom: 17px; }
  .social-links { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .consultation-inner { display: block; padding-top: 65px; padding-bottom: 66px; }
  .consultation h2 { font-size: clamp(42px, 7.8vw, 59px); }
  .callback-form { margin-top: 42px; }
  .footer-inner { padding-top: 68px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 42px 21px; }
  .footer-bottom { margin-top: 55px; }
}
@media (max-width: 430px) {
  .brand { gap: 9px; }
  .brand-logo { width: 108px; }
  .brand-description { font-size: 7px; line-height: 1.35; letter-spacing: .03em; }
  .intro h1 { font-size: 42px; }
  .directions-grid { grid-template-columns: 1fr; row-gap: 38px; }
  .card-image-wrap { aspect-ratio: 232/260; }
  .card-image-wrap { --card-logo-height: clamp(42px, 12vw, 52px); }
  .card-image-wrap img:not(.card-logo-badge) { object-position: center top; }
  .card-title { font-size: 36px; }
  .card-bottom { font-size: 12px; }
  .card-domain { font-size: 10px; }
  .intro-eyebrow { margin-bottom: 13px; }
  .interior h2 { font-size: 37px; }
  .footer-grid { column-gap: 18px; }
  .footer-col a, .footer-col p, .footer-col button { font-size: 11px; }
  .footer-bottom { flex-direction: column; align-items: start; justify-content: center; padding: 22px 0; }
  .drawer-top, .drawer-bottom { padding-left: 21px; padding-right: 21px; }
  .drawer-menu { padding-left: 21px; padding-right: 21px; }
}
@media (max-width: 380px) {
  /* На узких телефонах логотип и меню остаются в одну строку. */
  .brand-description { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  /* Respect OS preference UNLESS the visitor explicitly enables motion for Door.ru. */
  html:not(.motion-override) *,
  html:not(.motion-override) *::before,
  html:not(.motion-override) *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  html:not(.motion-override) .has-motion .reveal { opacity: 1 !important; transform: none !important; }
}

.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

.footer-bottom button { border: 0; padding: 0; background: transparent; color: inherit; font-size: inherit; } .footer-bottom button:hover { color: #555; text-decoration: underline; }


/* МЯГКАЯ АНИМАЦИЯ · 2026: плавность без навязчивых эффектов */
@media (prefers-reduced-motion: no-preference) {
  /* Появление при скролле. Без JS (или без IntersectionObserver) ничего не скрываем. */
  .has-motion .reveal {
    opacity: 0;
    transform: translate3d(0, 34px, 0);
    transition-property: opacity, transform;
    transition-duration: 680ms, 780ms;
    transition-timing-function: ease-out, cubic-bezier(.22,1,.36,1);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .has-motion .reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  .has-motion .intro h1.reveal { transform: translate3d(0, 16px, 0); }
  .has-motion .intro h1.reveal.is-visible { transform: translate3d(0, 0, 0); }

  /* Деликатное движение карточек без сдвига текста и сетки. */
  .card-image-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(125deg, rgba(255,255,255,.13), transparent 48%, rgba(17,16,15,.10));
    opacity: 0;
    pointer-events: none;
    transition: opacity 700ms var(--ease);
  }
  .direction-card:hover .card-image-wrap::after,
  .direction-card:focus-within .card-image-wrap::after { opacity: .42; }
  .direction-card .card-title { transition: color 400ms ease; }
  .direction-card:hover .card-title, .direction-card:focus-within .card-title { color: var(--yellow); }
  /* A deliberate, unhurried image zoom and light shift, both on hover and on exit. */
  .card-image-wrap > img:not(.card-logo-badge) {
    transition: transform 2600ms cubic-bezier(.22,.61,.36,1),
                filter 1900ms cubic-bezier(.22,.61,.36,1);
  }
  .card-image-wrap::after { transition-duration: 1650ms; }
  .card-text-link .arrow { transition-duration: 400ms; }

  /* Слегка оживающие интерьерные изображения и кнопка отправки. */
  .interior-photo { overflow: hidden; }
  .interior-photo img { transition: transform 950ms var(--ease), filter 600ms ease; }
  .interior-photo:hover img, .interior-photo:focus-visible img { transform: scale(1.035); filter: brightness(.96); }
  .submit-button { transition: transform 360ms var(--ease), box-shadow 360ms ease, background 250ms ease; }
  .submit-button:hover { transform: translate3d(0,-2px,0); box-shadow: 0 10px 24px rgba(88,71,24,.12); }
  .submit-button:active { transform: translate3d(0,0,0); box-shadow: none; }

  /* Выдвижное меню плавно закрывается, а не исчезает мгновенно. */
  .menu-backdrop { transition-duration: 260ms; }
  .drawer.is-open #menu-content > .drawer-menu {
    animation: drawer-content-enter 270ms var(--ease) both;
  }
  @keyframes drawer-content-enter {
    from { opacity: 0; transform: translate3d(12px,0,0); }
    to { opacity: 1; transform: translate3d(0,0,0); }
  }
  .menu-item-row { transition: color 250ms ease, padding-left 380ms var(--ease); }
  .menu-item-row:hover { padding-left: 6px; }
  .menu-trigger .hamburger i { transition: transform 300ms var(--ease); transform-origin: center; }
  .menu-trigger[aria-expanded="true"] .hamburger i:first-child { transform: translateY(2.5px) rotate(45deg); }
  .menu-trigger[aria-expanded="true"] .hamburger i:last-child { transform: translateY(-2.5px) rotate(-45deg); }
}
@media print {
  .has-motion .reveal { opacity: 1 !important; transform: none !important; }
}

/* Update: accessible text brand, scroll reveals, mobile logos, social vector icons, FAQ. */
.brand-wordmark {
  display: inline-block;
  color: #20201f;
  font-family: "Arial Narrow", "Liberation Sans Narrow", "Helvetica Neue", Arial, sans-serif;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -.055em;
  font-weight: 900;
  white-space: nowrap;
  flex: 0 0 auto;
  text-rendering: optimizeLegibility;
}
.brand-tld { font-size: 1em; font-weight: 200; letter-spacing: -.045em; text-transform: uppercase; }
.brand-dot { color: var(--yellow); }
.drawer-wordmark { font-size: 30px; }
@media (max-width: 740px), (hover: none), (pointer: coarse) {
  .card-image-wrap .card-logo-slot { filter: none !important; }
}
.social-links .social-brand-icon {
  width: 19px;
  height: 19px;
  display: inline-block;
  object-fit: contain;
  flex: 0 0 auto;
  transition: filter .24s ease;
}
.social-links a:hover .social-brand-icon,
.social-links a:focus-visible .social-brand-icon,
.social-links button:hover .social-brand-icon,
.social-links button:focus-visible .social-brand-icon { filter: brightness(0); }
@media (max-width: 740px) {


 .brand-wordmark { font-size: 28px; }
}
@media (prefers-reduced-motion: no-preference) {
  .has-motion .reveal {
    opacity: 0;
    transform: translate3d(0,52px,0) scale(.987);
    transition: opacity 920ms ease-out, transform 1100ms cubic-bezier(.22,1,.36,1);
    transition-delay: var(--reveal-delay,0ms);
  }
  .has-motion .reveal.is-visible { opacity: 1; transform: translate3d(0,0,0) scale(1); }
  .has-motion .intro h1.reveal { transform: translate3d(0,24px,0); }
  .has-motion .intro h1.reveal.is-visible { transform: none; }
}


/* Единая цветовая тема сайта. Выбор «Светлая» в FAQ имеет приоритет над ОС. */
:root {
  --card-muted: #787771;
  --header-bg: rgba(244,241,236,.97);
  --header-bg-scrolled: rgba(244,241,236,.985);
  --header-shadow: rgba(24,23,21,.065);
  --menu-border: #4e4b47;
  --footer-link: #4e4d49;
  --field-bg: #fbfaf8;
}
:root[data-site-theme="dark"] {
  color-scheme: dark;
  --paper: #201f1d;
  --paper-light: #292824;
  --ink: #f5f2ec;
  --muted: #aaa59b;
  --line: #514d45;
  --consult: #2b2925;
  --card-muted: #c1bcb2;
  --header-bg: rgba(32,31,29,.97);
  --header-bg-scrolled: rgba(32,31,29,.99);
  --header-shadow: rgba(0,0,0,.32);
  --menu-border: #a9a397;
  --footer-link: #d6d0c6;
  --field-bg: #302e2a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-site-theme="light"]):not([data-site-theme="dark"]) {
    color-scheme: dark;
    --paper: #201f1d;
    --paper-light: #292824;
    --ink: #f5f2ec;
    --muted: #aaa59b;
    --line: #514d45;
    --consult: #2b2925;
    --card-muted: #c1bcb2;
    --header-bg: rgba(32,31,29,.97);
    --header-bg-scrolled: rgba(32,31,29,.99);
    --header-shadow: rgba(0,0,0,.32);
    --menu-border: #a9a397;
    --footer-link: #d6d0c6;
    --field-bg: #302e2a;
  }
}
/* Верхнее меню, карточки и подписи используют одни и те же цвета темы. */
.site-header { background: var(--header-bg); color: var(--ink); }
.site-header.is-scrolled { background: var(--header-bg-scrolled); box-shadow: 0 9px 22px var(--header-shadow); }
.header-inner { border-bottom-color: var(--line); }
.site-header .brand-wordmark, .drawer .brand-wordmark,
.header-nav a, .site-header .header-phone { color: var(--ink); }
.site-header .brand-description, .intro-eyebrow { color: var(--muted); }
.menu-trigger { color: var(--ink); border-color: var(--menu-border); }
.menu-trigger:hover { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.card-head { border-color: var(--line); color: var(--muted); }
.card-bottom { color: var(--card-muted); }
.arrow { color: var(--ink); }
.interior { border-color: var(--line); }
.social { background: var(--paper-light); }
.social h2, .consultation-copy p { color: var(--card-muted); }
.section-kicker, .callback-form label, .form-note, .form-status { color: var(--muted); }
.callback-form input { border-bottom-color: var(--line); }
.callback-form input::placeholder { color: var(--muted); }
.footer-col h3, .footer-bottom { color: var(--muted); }
.footer-col a, .footer-col p, .footer-col button { color: var(--footer-link); }
.footer-bottom { border-top-color: var(--line); }
.footer-bottom a:hover { color: var(--ink); }
/* При тёмной теме меню не должно иметь светлых полей и невидимых элементов. */
.drawer-close { border-color: var(--ink); }
.drawer-close span { background: var(--ink); }
.drawer-close:hover { background: var(--consult); }
.drawer-bottom small, .drawer-location, .drawer-location span,
.menu-connect-title, .menu-back-button, .menu-results-label { color: var(--muted); }
.menu-search input { background: var(--field-bg); color: var(--ink); border-color: var(--line); }
.menu-search input::placeholder { color: var(--muted); }
.menu-search::before { border-color: var(--muted); }
.menu-search::after { background: var(--muted); }
.menu-item-row, .menu-connect a { border-color: var(--line); }
.menu-connect a:hover { background: var(--consult); }
.menu-subitem, .menu-search-result span { color: var(--ink); }
.menu-subitem::after, .menu-item-row > .row-arrow,
.menu-leaf .row-arrow { color: var(--muted); }
.menu-group h3, .menu-search-result small { color: var(--muted); }


/* Ссылки FAQ в шапке и доступная фиксированная кнопка возврата наверх. */
@media (min-width: 1111px) and (max-width: 1280px) {
  .header-nav { gap: clamp(12px, 1.25vw, 20px); }
  .header-actions { margin-left: 8px; gap: 15px; }
  .brand { gap: 10px; }
}
@media (min-width: 981px) and (max-width: 1110px) {
  .header-nav { display: none; }
  .header-actions { margin-left: auto; }
}
.back-to-top {
  position: fixed;
  z-index: 35;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(18,18,17,.15);
  display: grid;
  place-items: center;
  background: var(--yellow);
  color: #171717;
  box-shadow: 0 7px 26px rgba(0,0,0,.13);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(18px) scale(.94);
  transition: opacity .26s ease, transform .32s var(--ease), visibility .26s;
}
.back-to-top.is-visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.back-to-top:hover { transform: translateY(-3px) scale(1); box-shadow: 0 9px 30px rgba(0,0,0,.20); }
.back-to-top:active { transform: translateY(0) scale(.98); }
body.no-scroll .back-to-top { opacity: 0; pointer-events: none; }
@media (max-width: 740px) {
  .back-to-top { width: 44px; height: 44px; right: max(15px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: none; }
}


/* DOOR.RU / меню направлений · версия 2026-10-23 */
.direction-card { position: relative; isolation: isolate; }
.card-menu-button {
  position: absolute; z-index: 8; top: 14px; right: 14px;
  width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.57);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(22,22,21,.68); color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background .2s ease, border-color .2s ease, transform .25s var(--ease);
}
.card-menu-button:hover, .card-menu-button[aria-expanded="true"] {
  color: #141414; border-color: var(--yellow); background: var(--yellow);
}
.card-menu-button:active { transform: scale(.92); }
/* Three separate CSS circles rise in a soft wave on card hover. On open,
   the two geometric pseudo-elements form the centered close cross. */
.card-menu-button-dots {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: none;
  width: 24px;
  height: 24px;
  color: inherit;
  transform: translateY(2px);
  transition: transform .2s ease;
}
.card-menu-dot {
  display: block;
  flex: 0 0 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  transform: translateY(0) scale(1);
  transition: opacity .18s ease;
}
@keyframes card-dot-wave {
  0%, 12%, 62%, 100% { transform: translateY(0) scale(1); }
  27% { transform: translateY(-5px) scale(1.17); }
  42% { transform: translateY(0) scale(.94); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .direction-card:hover:not(.is-menu-open) .card-menu-dot {
    animation: card-dot-wave 1.65s ease-in-out infinite;
  }
  .direction-card:hover:not(.is-menu-open) .card-menu-dot:nth-child(2) {
    animation-delay: .14s;
  }
  .direction-card:hover:not(.is-menu-open) .card-menu-dot:nth-child(3) {
    animation-delay: .28s;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .card-menu-button:focus-visible:not([aria-expanded="true"]) .card-menu-dot {
    animation: card-dot-wave 1.65s ease-in-out infinite;
  }
  .card-menu-button:focus-visible:not([aria-expanded="true"]) .card-menu-dot:nth-child(2) { animation-delay: .14s; }
  .card-menu-button:focus-visible:not([aria-expanded="true"]) .card-menu-dot:nth-child(3) { animation-delay: .28s; }
}
.card-menu-button[aria-expanded="true"] .card-menu-button-dots {
  transform: none;
}
.card-menu-button[aria-expanded="true"] .card-menu-dot {
  opacity: 0;
  animation: none !important;
}
.card-menu-button[aria-expanded="true"] .card-menu-button-dots::before,
.card-menu-button[aria-expanded="true"] .card-menu-button-dots::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: #141414;
  transform: translate(-50%, -50%) rotate(45deg);
}
.card-menu-button[aria-expanded="true"] .card-menu-button-dots::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.card-submenu {
  position: absolute; inset: 0; z-index: 7; display: flex;
  flex-direction: column; justify-content: center; overflow: auto;
  padding: 26px clamp(15px,2.3vw,28px);
  color: #f8f7f4; background: rgba(15,17,20,.71);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(8px);
  transition: opacity .28s ease, visibility .28s ease, transform .33s var(--ease);
}
.direction-card.is-menu-open .card-submenu {
  opacity: 1; visibility: visible; pointer-events: auto; transform: none;
}
.card-submenu-inner { min-width: 0; width: 100%; margin: auto 0; }
.card-submenu-kicker { margin: 0 0 7px; color: #f7be12; font-size: 9px; font-weight: 700; letter-spacing: .19em; }
.card-submenu-heading {
  margin: 0 44px 19px 0; font-family: var(--font-serif);
  font-size: clamp(21px,2.05vw,31px); font-weight: 400; letter-spacing: -.035em; line-height: 1.13;
  color: #fff;
}
.card-submenu-nav { display: flex; flex-direction: column; }
.card-submenu-link {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  min-height: 39px; padding: 9px 2px; border-top: 1px solid rgba(255,255,255,.24);
  font-family: var(--font-sans); font-size: 12px; font-weight: 500; line-height: 1.28;
  color: #f8f7f4; transition: color .18s ease, padding-left .22s var(--ease);
}
.card-submenu-link:hover, .card-submenu-link:focus-visible { color: var(--yellow); padding-left: 5px; }
/* Link arrow drawn with CSS: avoids the blue emoji-style glyph on mobile. */
.card-submenu-arrow {
  display: inline-block;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  position: relative;
  color: var(--yellow);
  font-size: 0;
  line-height: 0;
  margin-left: 6px;
}
.card-submenu-arrow::before {
  content: "";
  position: absolute;
  top: 1px;
  right: 1px;
  width: 7px;
  height: 7px;
  border-top: 1.6px solid currentColor;
  border-right: 1.6px solid currentColor;
}
.card-submenu-arrow::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 12px;
  height: 1.6px;
  background: currentColor;
  transform: rotate(-45deg);
  transform-origin: center;
}

.card-submenu-phone { color: var(--yellow); font-weight: 700; border-top-color: rgba(247,190,18,.55); }
.card-submenu-phone small { font-size: 11px; font-weight: 600; white-space: nowrap; }
.card-submenu-link:focus-visible, .card-menu-button:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
/* No visual changes to cards or logos until the menu is opened. */
@media (max-width: 1100px) {
  .card-submenu { padding: 18px 18px; }
  .card-submenu-heading { margin-bottom: 12px; font-size: 24px; }
  .card-submenu-link { min-height: 35px; padding: 7px 0; font-size: 11px; }
  .card-menu-button { top: 11px; right: 11px; width: 40px; height: 40px; }
}
@media (max-width: 740px) {
  .card-submenu { padding: 17px 16px; }
  .card-submenu-kicker { display: none; }
  .card-submenu-link { min-height: 34px; }
}
@media (max-width: 430px) {
  .card-submenu-heading { font-size: 29px; margin-bottom: 14px; }
  .card-submenu-link { min-height: 40px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .card-menu-button, .card-submenu, .card-submenu-link { transition: none !important; }
}

/* Card menu refinements 2026-10-23: logo remains above the open overlay. */
.card-image-wrap .card-logo-slot { z-index: 12; }
.direction-card.is-menu-open .card-image-wrap .card-logo-slot { filter: grayscale(0); }


/* 2026-10-23: stable and visible desktop motion, including hybrid touch laptops.
   Respect explicit OS reduced-motion accessibility setting. */
@media (prefers-reduced-motion: no-preference) {
  /* The original 4.5% zoom over 2.6s could look stationary on large screens.
     A measured 7% zoom retains the slow premium ease but remains noticeable. */
  .direction-card:hover .card-image-wrap > img:not(.card-logo-badge),
  .direction-card:focus-within .card-image-wrap > img:not(.card-logo-badge) {
    transform: scale(1.07);
    filter: saturate(1.08) brightness(1.025);
  }
  /* Hybrid desktop devices may report (hover:none) despite having a mouse;
     do not gate CSS :hover on that media feature. */
  .direction-card:hover:not(.is-menu-open) .card-menu-dot {
    animation: card-dot-wave 1.65s ease-in-out infinite;
  }
  .direction-card:hover:not(.is-menu-open) .card-menu-dot:nth-child(2) { animation-delay: .14s; }
  .direction-card:hover:not(.is-menu-open) .card-menu-dot:nth-child(3) { animation-delay: .28s; }
  /* More readable entrance on a large viewport. */
  .has-motion .directions-grid > .direction-card.reveal {
    transition-duration: 1000ms, 1160ms;
  }
}


/* Desktop motion diagnostic fix · 2026-10-23. Only applied by explicit visitor opt-in. */
.motion-control {
  display: none;
  position: fixed;
  z-index: 33;
  left: clamp(12px, 2.5vw, 28px);
  bottom: clamp(14px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--ink);
  color: var(--paper);
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  min-height: 42px;
  box-shadow: 0 8px 22px rgba(0,0,0,.13);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.motion-control-led { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); flex: 0 0 auto; }
.motion-control:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.motion-control[aria-pressed="true"] { background: var(--yellow); color: #161512; border-color: var(--yellow); }
.motion-control[aria-pressed="true"] .motion-control-led { background: #161512; }
@media (prefers-reduced-motion: reduce) {
  .motion-control { display: inline-flex; }
}
/* The rules originally gated by no-preference must also apply when the visitor opts in. */
html.motion-override .has-motion .reveal {
  opacity: 0;
  transform: translate3d(0,52px,0) scale(.987);
  transition: opacity 920ms ease-out, transform 1100ms cubic-bezier(.22,1,.36,1);
  transition-delay: var(--reveal-delay,0ms);
}
html.motion-override .has-motion .reveal.is-visible { opacity: 1; transform: translate3d(0,0,0) scale(1); }
html.motion-override .has-motion .intro h1.reveal { transform: translate3d(0,24px,0); }
html.motion-override .has-motion .intro h1.reveal.is-visible { transform: none; }
html.motion-override .has-motion .directions-grid > .direction-card.reveal { transition-duration: 1000ms,1160ms; }
html.motion-override .card-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(125deg, rgba(255,255,255,.13), transparent 48%, rgba(17,16,15,.10));
  opacity: 0;
  pointer-events: none;
  transition: opacity 1650ms var(--ease);
}
html.motion-override .direction-card:hover .card-image-wrap::after,
html.motion-override .direction-card:focus-within .card-image-wrap::after { opacity: .42; }
html.motion-override .card-image-wrap > img:not(.card-logo-badge) {
  transition: transform 2600ms cubic-bezier(.22,.61,.36,1), filter 1900ms cubic-bezier(.22,.61,.36,1);
}
html.motion-override .direction-card:hover .card-image-wrap > img:not(.card-logo-badge),
html.motion-override .direction-card:focus-within .card-image-wrap > img:not(.card-logo-badge) {
  transform: scale(1.07); filter: saturate(1.08) brightness(1.025);
}
html.motion-override .direction-card:hover:not(.is-menu-open) .card-menu-dot {
  animation: card-dot-wave 1.65s ease-in-out infinite;
}
html.motion-override .direction-card:hover:not(.is-menu-open) .card-menu-dot:nth-child(2) { animation-delay: .14s; }
html.motion-override .direction-card:hover:not(.is-menu-open) .card-menu-dot:nth-child(3) { animation-delay: .28s; }
html.motion-override .card-menu-button { transition: background .2s ease, border-color .2s ease, transform .25s var(--ease); }
html.motion-override .card-submenu { transition: opacity .28s ease, visibility .28s ease, transform .33s var(--ease); }
html.motion-override .direction-card:hover .card-title { color: var(--yellow); transition: color 400ms ease; }
html.motion-override .interior-photo img { transition: transform 950ms var(--ease), filter 600ms ease; }
html.motion-override .interior-photo:hover img { transform: scale(1.035); filter: brightness(.96); }
