@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #081c09;
  --ink-80: rgba(8, 28, 9, 0.8);
  --ink-65: rgba(8, 28, 9, 0.65);
  --ink-50: rgba(8, 28, 9, 0.6);
  --ink-40: rgba(8, 28, 9, 0.4);
  --line: rgba(8, 28, 9, 0.12);
  --line-strong: rgba(8, 28, 9, 0.24);
  --tint: #f4f7f2;
  --tint-2: #eaf0e6;
  --white: #fff;
  --container: 1200px;
  --header-h: 88px;
  --radius: 20px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-md: 0 18px 40px -24px rgba(8, 28, 9, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.modal-open,
body.menu-open {
  overflow: hidden;
}

h1, h2, h3, p, ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
  color: inherit;
}

img, svg {
  display: block;
}

::selection {
  background: var(--ink);
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 32px);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.9rem;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  transition: box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px -28px rgba(8, 28, 9, 0.5);
}

.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-self: start;
  color: var(--ink);
  text-decoration: none;
}

.brand__name {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1;
  white-space: nowrap;
}

.brand__leaf {
  width: 30px;
  height: 30px;
  flex: none;
  transition: transform 0.35s var(--ease);
}

.brand:hover .brand__leaf {
  transform: rotate(-8deg) scale(1.06);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  justify-self: center;
}

.nav__link {
  display: inline-flex;
  padding: 12px 14px 8px;
  border-radius: 8px;
  color: var(--ink-65);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.nav__link:hover {
  color: var(--ink);
}

.nav__link.is-active {
  color: var(--ink);
  font-weight: 600;
}

.nav__indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s var(--ease), width 0.35s var(--ease), opacity 0.2s var(--ease);
  will-change: transform, width;
}

.header__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-self: end;
  gap: 1px;
  line-height: 1.35;
}

.header__phone {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s var(--ease);
}

.header__phone:hover {
  opacity: 0.65;
}

.header__email {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-50);
  font-size: 0.82rem;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.header__email:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: none;
  cursor: pointer;
  justify-self: end;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.burger span {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 1.6px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.burger span:first-child { top: 17px; }
.burger span:last-child { top: 24px; }

.burger[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.burger[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.burger:hover {
  background: var(--tint);
  border-color: var(--line-strong);
}

.mobile-menu {
  border-top: 1px solid var(--line);
  background: var(--white);
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
}

.mobile-menu:not([hidden]) {
  animation: menu-in 0.25s var(--ease);
}

.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  padding-top: 8px;
  padding-bottom: 24px;
}

.mobile-link {
  padding: 15px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
}

.mobile-menu__contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 20px;
  font-size: 0.95rem;
}

.mobile-menu__contacts a {
  font-weight: 700;
  text-decoration: none;
}

.mobile-menu__contacts button {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-65);
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 7vw, 96px);
  text-align: center;
}

.hero__leaf {
  position: absolute;
  top: 24px;
  right: -90px;
  width: 440px;
  height: 440px;
  opacity: 0.055;
  pointer-events: none;
  transform: rotate(6deg);
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-50);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.5;
}

.hero h1 {
  margin-top: 20px;
  font-size: clamp(2.9rem, 7.5vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.hero__lead {
  max-width: 800px;
  margin: 28px auto 0;
  color: var(--ink-65);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.75;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.btn .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease);
}

.btn:hover .icon {
  transform: translate(2px, -2px);
}

.btn--primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 14px 26px -16px rgba(8, 28, 9, 0.7);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 32px -16px rgba(8, 28, 9, 0.6);
}

.btn--ghost {
  border-color: var(--line-strong);
  background: var(--white);
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--tint);
  transform: translateY(-2px);
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 42px;
}

.hero__tags li {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-50);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(64px, 8.5vw, 112px) 0;
}

.section[id] {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.section--tint {
  background: var(--tint);
  border-top: 1px solid rgba(8, 28, 9, 0.05);
  border-bottom: 1px solid rgba(8, 28, 9, 0.05);
}

.section__head {
  max-width: 780px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
}

.section__head h2 {
  margin-top: 14px;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-wrap: balance;
}

.section__lead {
  margin-top: 18px;
  color: var(--ink-65);
  font-size: clamp(0.98rem, 1.3vw, 1.06rem);
  line-height: 1.7;
  text-wrap: pretty;
}

/* ---------- Advantages ---------- */

.adv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.adv-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.adv-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.adv-card__num {
  color: var(--ink-40);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.adv-card h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.adv-card p {
  color: var(--ink-65);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* ---------- Services ---------- */

.services {
  max-width: 900px;
  margin: 0 auto;
}

.acc {
  border-top: 1px solid var(--line);
}

.acc:last-child {
  border-bottom: 1px solid var(--line);
}

.acc__heading {
  font: inherit;
}

.acc__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: clamp(20px, 2.6vw, 28px) 6px;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

.acc__title {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  transition: opacity 0.2s var(--ease);
}

.acc__btn:hover .acc__title {
  opacity: 0.68;
}

.acc__icon {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: transform 0.3s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.acc__icon::before,
.acc__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: background 0.25s var(--ease);
}

.acc__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.acc__btn[aria-expanded="true"] .acc__icon {
  background: var(--ink);
  border-color: var(--ink);
  transform: rotate(45deg);
}

.acc__btn[aria-expanded="true"] .acc__icon::before,
.acc__btn[aria-expanded="true"] .acc__icon::after {
  background: var(--white);
}

.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s var(--ease);
}

.acc__panel > div {
  overflow: hidden;
}

.acc.is-open .acc__panel {
  grid-template-rows: 1fr;
}

.acc__list {
  display: grid;
  gap: 10px;
  max-width: 640px;
  padding: 0 6px 30px 6px;
}

.acc__list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-65);
  font-size: 1rem;
  line-height: 1.55;
}

.acc__list li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.45;
}

.services__cta {
  margin-top: 36px;
  color: var(--ink-50);
  font-size: 0.95rem;
  text-align: center;
}

.services__cta a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.2s var(--ease);
}

.services__cta a:hover {
  border-color: var(--ink);
}

/* ---------- Reviews ---------- */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.review {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.review__stars {
  display: flex;
  gap: 3px;
  color: var(--ink);
  line-height: 1;
}

.star {
  width: 13px;
  height: 13px;
  fill: currentColor;
  stroke: none;
}

.review p {
  color: var(--ink-65);
  font-size: 0.97rem;
  line-height: 1.7;
}

.review__author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
}

.review__name {
  font-size: 0.95rem;
  font-weight: 700;
}

.review__role {
  color: var(--ink-50);
  font-size: 0.82rem;
}

/* ---------- Schedule ---------- */

.schedule-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(18px, 3vw, 28px);
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}

.schedule-card {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
}

.schedule-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.schedule-row:first-child {
  padding-top: 4px;
}

.schedule-row:last-child {
  padding-bottom: 4px;
  border-bottom: 0;
}

.schedule-row__days {
  font-size: 1rem;
  font-weight: 600;
}

.schedule-row__time {
  font-size: 1.02rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.schedule-row.is-weekend .schedule-row__time {
  color: var(--ink-50);
  font-weight: 600;
}

.schedule-row.is-today .schedule-row__days {
  color: var(--ink);
}

.today-badge {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  vertical-align: 2px;
}

.contact-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  text-align: left;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.contact-btn:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
  box-shadow: var(--shadow-md);
}

.contact-btn__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--tint);
}

.contact-btn__body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.contact-btn__label {
  color: var(--ink-50);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-btn__value {
  overflow: hidden;
  font-size: clamp(0.92rem, 3.4vw, 1.02rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-btn__hint {
  color: var(--ink-50);
  font-size: 0.78rem;
}

.contact-btn__arrow {
  flex: none;
  margin-left: auto;
  opacity: 0.35;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.contact-btn:hover .contact-btn__arrow {
  opacity: 0.8;
  transform: translate(2px, -2px);
}

.contact-btn[data-copy-phone]:hover .contact-btn__arrow {
  transform: none;
}

/* ---------- Contacts ---------- */

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 720px;
  margin: 0 auto;
}

.address-card {
  display: flex;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.address-card__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--tint);
}

.address-card h3 {
  margin-bottom: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-50);
}

.address-card p {
  color: var(--ink-80);
  font-size: 0.9rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.contacts-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.contacts-links a,
.contacts-links button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.contacts-links a:hover,
.contacts-links button:hover {
  border-color: var(--ink);
  background: var(--tint);
}

.contacts-links .icon {
  width: 16px;
  height: 16px;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: clamp(44px, 6vw, 64px) 0 40px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.footer__leaf {
  width: 24px;
  height: 24px;
}

.footer__line {
  max-width: 720px;
  color: var(--ink-65);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer__req {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  color: var(--ink-65);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.footer__copy {
  width: 100%;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-50);
  font-size: 0.78rem;
}

/* ---------- Toast ---------- */

.toast {
  display: none;
  align-items: center;
  gap: 9px;
  inset: auto auto 28px 50%;
  width: max-content;
  max-width: calc(100vw - 32px);
  margin: 0;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 18px 40px -18px rgba(8, 28, 9, 0.6);
  overflow: visible;
  transform: translateX(-50%);
}

.toast:popover-open,
.toast.is-visible {
  display: flex;
  animation: toast-in 0.28s var(--ease);
}

.toast .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.4;
}

@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 14px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- Mail dialog ---------- */

.mail-dialog {
  width: min(480px, calc(100vw - 32px));
  max-width: 480px;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}

.mail-dialog[open] {
  animation: dialog-in 0.28s var(--ease);
}

.mail-dialog::backdrop {
  background: rgba(8, 28, 9, 0.5);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.dialog__panel {
  position: relative;
  max-height: calc(100dvh - 32px);
  padding: clamp(24px, 4vw, 32px);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 30px 80px -30px rgba(8, 28, 9, 0.6);
  overflow-y: auto;
}

.dialog__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.dialog__close:hover {
  border-color: var(--line-strong);
  background: var(--tint);
}

.dialog__close .icon {
  width: 16px;
  height: 16px;
}

.dialog__title {
  padding-right: 40px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.dialog__subtitle {
  margin-top: 8px;
  padding-right: 20px;
  color: var(--ink-50);
  font-size: 0.88rem;
  line-height: 1.55;
}

.mail-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 22px;
}

.mail-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}

.mail-item:hover {
  border-color: var(--ink);
  background: var(--tint);
  transform: translateX(2px);
}

.mail-item__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--tint-2);
  font-size: 0.92rem;
  font-weight: 800;
}

.mail-item__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mail-item__name {
  font-size: 0.95rem;
  font-weight: 700;
}

.mail-item__desc {
  color: var(--ink-50);
  font-size: 0.78rem;
}

.mail-item__arrow {
  flex: none;
  width: 18px;
  height: 18px;
  margin-left: auto;
  opacity: 0.4;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.mail-item:hover .mail-item__arrow {
  opacity: 0.9;
  transform: translate(2px, -2px);
}

.dialog__note {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-50);
  font-size: 0.82rem;
  line-height: 1.6;
}

.dialog__copy {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-word;
  cursor: pointer;
}

.dialog__copy.is-copied {
  text-decoration: none;
  color: var(--ink-65);
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .nav__link {
    padding: 12px 10px 8px;
    font-size: 0.9rem;
  }

  .brand__name {
    letter-spacing: 0.12em;
  }
}

@media (max-width: 980px) {
  .header__inner {
    grid-template-columns: 1fr auto;
    gap: 16px;
  }

  .nav,
  .header__contacts {
    display: none;
  }

  .burger {
    display: block;
  }
}

@media (max-width: 900px) {
  .reviews-grid {
    grid-template-columns: 1fr;
    max-width: 620px;
    margin: 0 auto;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
    max-width: 620px;
  }
}

@media (max-width: 820px) {
  .adv-grid {
    grid-template-columns: 1fr;
  }

  .schedule-grid {
    grid-template-columns: 1fr;
    max-width: 620px;
  }
}

@media (max-width: 560px) {
  :root {
    --header-h: 72px;
  }

  .brand__name {
    font-size: 0.82rem;
    letter-spacing: 0.1em;
  }

  .brand__leaf {
    width: 24px;
    height: 24px;
  }

  .hero__leaf {
    display: none;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .btn {
    width: 100%;
  }

  .hero__tags {
    margin-top: 32px;
  }

  .hero__tags li {
    font-size: 0.66rem;
    padding: 7px 11px;
  }

  .contact-btn {
    gap: 12px;
    padding: 16px;
  }

  .contact-btn__icon {
    width: 40px;
    height: 40px;
  }

  .contact-btn__arrow {
    display: none;
  }

  .schedule-row {
    gap: 10px;
  }

  .schedule-row__days {
    font-size: 0.95rem;
  }

  .schedule-row__time {
    font-size: 0.95rem;
  }

  .today-badge {
    display: block;
    width: fit-content;
    margin: 6px 0 0;
  }

  .review,
  .address-card {
    padding: 22px;
  }

  .footer__req {
    flex-direction: column;
    gap: 2px;
  }

  .footer__req span[aria-hidden="true"] {
    display: none;
  }
}

@media (max-width: 380px) {
  .brand__name {
    font-size: 0.74rem;
    letter-spacing: 0.08em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header,
  .hero__actions,
  .contact-stack,
  .toast,
  .mail-dialog,
  .skip-link {
    display: none !important;
  }

  body {
    color: #000;
  }

  .section {
    padding: 24px 0;
  }
}

/* ---------- 404 ---------- */

.error-page {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 40px 0;
  background: var(--white);
  text-align: center;
}

.error-page__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 640px;
}

.error-page__brand {
  margin-bottom: 6px;
}

.error-page__brand img {
  border-radius: 9px;
}

.error-page__code {
  color: var(--ink);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  opacity: 0.12;
}

.error-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.error-page__text {
  max-width: 520px;
  color: var(--ink-65);
  font-size: 1rem;
  line-height: 1.7;
}

.error-page .btn {
  margin-top: 8px;
}

.error-page__contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--ink-50);
  font-size: 0.9rem;
}

.error-page__contacts a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}

.error-page__contacts a:hover {
  border-color: var(--ink);
}
