/* ============================================================
   vilenataro.pro — общий стиль сайта
   Палитра: фон #1D2B40, кнопки #999081, акценты #A8BBD8,
   текст всегда белый, при наведении — свечение.
   Размеры шрифта — только через переменные --fs / --fs-sub / --fs-btn.
   ============================================================ */

/* ============ ШРИФТЫ (лежат на сайте, без внешних серверов) ============ */
@font-face {
  font-family: 'Rubik Dirt';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/rubik-dirt-title.woff2') format('woff2');
}
@font-face {
  font-family: 'Marck Script';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/marck-script-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Marck Script';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/marck-script-latin-400-normal.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;
}
@font-face {
  font-family: 'Poiret One';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/poiret-one-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Poiret One';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/poiret-one-latin-400-normal.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;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/montserrat-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/montserrat-latin-400-normal.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;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/montserrat-cyrillic-500-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/montserrat-latin-500-normal.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;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/montserrat-cyrillic-600-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/montserrat-latin-600-normal.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;
}
@font-face {
  font-family: 'Montserrat';
  font-style: italic; font-weight: 400; font-display: swap;
  src: url('fonts/montserrat-cyrillic-400-italic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Montserrat';
  font-style: italic; font-weight: 400; font-display: swap;
  src: url('fonts/montserrat-latin-400-italic.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;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:      #1D2B40;
  --btn:     #999081;   /* кнопки на тёмно-синем фоне */
  --accent:  #A8BBD8;   /* дополнительный цвет для акцентов */
  --text:    rgba(255,255,255,.97);
  --pad:     28px;
  --fs:      21px;   /* весь текст */
  --fs-sub:  28px;   /* подзаголовки */
  --fs-btn:  21px;   /* кнопки */
  --fs-small: 15px;  /* служебные подписи */
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: var(--fs);
  line-height: 1.6;
  color: var(--text);
  background-color: #1D2B40;
  background-image: linear-gradient(180deg, #24344E 0%, #1D2B40 50%, #141F30 100%);
  min-height: 100vh;
}

h1, h2 {
  font-family: 'Poiret One', 'Montserrat', Arial, sans-serif;
  font-weight: 400;
  font-size: 46px;
  line-height: 1.12;
  letter-spacing: .04em;
  color: #fff;
  text-shadow: 0 0 18px rgba(168,187,216,.35);
}

h3 { font-size: var(--fs-sub); font-weight: 500; line-height: 1.3; color: #fff; letter-spacing: .02em; }

a { color: var(--accent); }

img { max-width: 100%; display: block; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--pad); }

/* стеклянная затемнённая подложка */
.glass {
  background: rgba(13,22,36,.58);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  box-shadow: 0 14px 38px rgba(0,0,0,.4);
}

/* ============ ШАПКА ============ */
.topnav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(29,43,64,.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.topnav .wrap {
  display: flex; align-items: center; justify-content: center;
  gap: 8px 26px; flex-wrap: wrap; padding-top: 13px; padding-bottom: 13px;
}
.nav-logo { display: flex; align-items: center; padding: 0; border: none; margin-right: 4px; }
.nav-logo img { width: 42px; height: 42px; display: block; transition: filter .2s ease; }
@media (hover: hover) and (pointer: fine) {
  .nav-logo:hover img { filter: drop-shadow(0 0 10px rgba(214,199,156,.85)); }
}
.topnav a {
  color: rgba(255,255,255,.82); text-decoration: none;
  font-size: var(--fs-small); letter-spacing: .04em;
  padding-bottom: 3px; border-bottom: 2px solid transparent;
  transition: color .2s, text-shadow .2s, border-color .2s;
}
@media (hover: hover) and (pointer: fine) {
  .topnav a:hover { color: #fff; text-shadow: 0 0 12px rgba(168,187,216,.9); }
}
.topnav a.active { color: #fff; border-bottom-color: var(--accent); }
.topnav a.nav-cta {
  background: radial-gradient(ellipse at 50% 50%, #5F594F 0%, #6B6459 62%, #7C7568 82%, #999081 100%);
  color: #fff; border: 1px solid rgba(255,255,255,.28); border-radius: 10px;
  padding: 7px 16px; text-shadow: 0 1px 3px rgba(0,0,0,.4);
  box-shadow: 0 0 12px rgba(153,144,129,.4);
}
@media (hover: hover) and (pointer: fine) {
  .topnav a.nav-cta:hover { box-shadow: 0 0 22px rgba(153,144,129,.9); color: #fff; }
}

/* ============ ГЕРОЙ: ФОТО НА ВЕСЬ ЭКРАН ============ */
.hero {
  position: relative;
  min-height: calc(100vh - 56px);
  overflow: hidden;
  display: flex; align-items: center;
  background: #1D2B40;
}
.hero-photo {
  /* фото уже подготовлено: широкий кадр, слева свободное место под текст */
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center center;
  z-index: 0;
}
.hero::before {
  /* лёгкая вуаль слева — только чтобы текст читался, фото не затемняем */
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg,
    rgba(29,43,64,.72) 0%,
    rgba(29,43,64,.45) 34%,
    rgba(29,43,64,.12) 58%,
    rgba(29,43,64,0) 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: 1200px; margin: 0 auto;
  padding: 64px var(--pad);
  display: flex; flex-direction: column; align-items: flex-start;
}
/* визитка: без рамки и подложки, текст прямо на фото */
.hero-info { text-align: left; }
.hero-info h1 {
  margin-bottom: 22px;
  font-family: 'Rubik Dirt', 'Poiret One', serif;
  font-size: 78px; line-height: 1.15; letter-spacing: .02em;
  color: var(--accent);
  text-shadow: 0 2px 18px rgba(11,20,34,.75);
}
.hero-info .fact {
  margin-top: 10px; font-size: var(--fs);
  color: #fff; letter-spacing: .01em;
  text-shadow: 0 1px 8px rgba(11,20,34,.8);
}
.hero-info .fact::before { content: '>'; color: var(--accent); margin-right: 12px; font-weight: 600; }
/* номер и мессенджеры одной строкой, внизу героя */
.hero-contacts {
  margin-top: 76px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.hero-phone-num {
  font-size: 34px; color: #fff; text-decoration: none; letter-spacing: .02em;
  text-shadow: 0 1px 10px rgba(11,20,34,.85);
  transition: text-shadow .2s;
}
@media (hover: hover) and (pointer: fine) {
  .hero-phone-num:hover { text-shadow: 0 0 20px rgba(168,187,216,.95); }
}
.hero-social { display: flex; gap: 12px; align-items: center; }
.hero-social a {
  width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; background: rgba(13,22,36,.5);
  border: 1px solid rgba(255,255,255,.2);
  transition: transform .15s ease, box-shadow .2s ease;
}
.hero-social img, .hero-social svg { width: 30px; height: 30px; }
@media (hover: hover) and (pointer: fine) {
  .hero-social a:hover { transform: translateY(-3px); box-shadow: 0 0 18px rgba(168,187,216,.75); }
}
.hero-cta { margin-top: 34px; display: flex; flex-direction: column; gap: 14px; align-items: stretch; min-width: min(460px, 100%); }
.hero-cta .btn { text-align: center; }
.hero-phone {
  margin-top: 30px;
  display: inline-flex; align-items: center;
}
.hero-phone a {
  color: #fff; text-decoration: none; font-size: var(--fs-sub);
  letter-spacing: .03em;
  display: flex; align-items: center; gap: 16px;
  text-shadow: 0 1px 8px rgba(11,20,34,.8);
  transition: text-shadow .2s;
}
@media (hover: hover) and (pointer: fine) {
  .hero-phone a:hover { text-shadow: 0 0 18px rgba(168,187,216,.95); }
}

/* ============ КНОПКИ ============ */
.btn {
  display: inline-block;
  border-radius: 12px;
  padding: 14px 32px;
  font-family: inherit; font-size: var(--fs-btn); font-weight: 500;
  cursor: pointer; letter-spacing: .03em; text-decoration: none;
  color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.28);
  transition: box-shadow .2s ease, text-shadow .2s ease;
}
.btn--primary {
  background: radial-gradient(ellipse at 50% 50%, #5F594F 0%, #6B6459 62%, #7C7568 82%, #999081 100%);
  color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.45); font-weight: 500;
  box-shadow: 0 0 14px rgba(153,144,129,.35), 0 8px 22px rgba(0,0,0,.3);
}
/* тёмная кнопка: фон #1D2B40, текст белый */
.btn--dark {
  background: #1D2B40;
  border-color: rgba(168,187,216,.55);
  box-shadow: 0 0 12px rgba(168,187,216,.25), 0 8px 22px rgba(0,0,0,.3);
}
.btn--ghost {
  background: rgba(29,43,64,.5);
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(168,187,216,.2);
}
/* светлая кнопка: на светлом фоне — тёмный текст */
.btn--light {
  background: var(--accent);
  color: #1D2B40; text-shadow: none; font-weight: 600;
  box-shadow: 0 0 14px rgba(168,187,216,.4), 0 8px 22px rgba(0,0,0,.3);
}
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { box-shadow: 0 0 26px rgba(153,144,129,.95), 0 8px 22px rgba(0,0,0,.3); }
  .btn--light:hover { box-shadow: 0 0 28px rgba(168,187,216,.95), 0 8px 22px rgba(0,0,0,.3); }
  .btn--dark:hover { box-shadow: 0 0 26px rgba(168,187,216,.9), 0 8px 22px rgba(0,0,0,.3); }
  .btn--ghost:hover { box-shadow: 0 0 24px rgba(168,187,216,.85), 0 8px 22px rgba(0,0,0,.3); }
}
.btn:disabled { opacity: .45; cursor: default; box-shadow: none; }

.cta-row {
  display: flex; gap: 18px; justify-content: center; align-items: center;
  flex-wrap: wrap; margin-top: 30px;
}

/* ============ СЕКЦИИ ============ */
section { padding: 52px 0 12px; }
.section-title { text-align: center; margin-bottom: 32px; }

/* ============ КАРТОЧКИ РАСКЛАДОВ ============ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.card {
  background: rgba(13,22,36,.58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
  padding: 30px 30px 26px;
  display: flex; flex-direction: column; gap: 15px;
  text-align: left;
  font-size: 17px; letter-spacing: .03em; line-height: 1.6;
  color: rgba(255,255,255,.88); font-weight: 400;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-4px);
    border-color: rgba(168,187,216,.5);
    box-shadow: 0 0 24px rgba(168,187,216,.3), 0 14px 30px rgba(0,0,0,.4);
  }
}
.card img.card-icon {
  width: 128px; height: 128px; border-radius: 50%;
  object-fit: cover; margin: 0 auto 4px;
  border: 1px solid rgba(168,187,216,.45);
  box-shadow: 0 0 18px rgba(168,187,216,.3);
}
.card h3 { text-align: center; }
.card ul { list-style: none; }
.card ul li { padding-left: 22px; position: relative; margin-top: 7px; }
.card ul li::before { content: '•'; position: absolute; left: 6px; color: var(--accent); }
.card .label { color: var(--accent); font-weight: 500; }
.card .price {
  font-family: 'Poiret One', 'Montserrat', Arial, sans-serif;
  font-size: 34px; color: #fff; text-align: center;
  text-shadow: 0 0 14px rgba(168,187,216,.5);
  margin-top: auto;      /* цена прижата к низу — во всех карточках на одной линии */
  margin-bottom: 5px;    /* 5 + gap 15 = ровно 20px до кнопки */
}
.card .btn { align-self: center; min-width: 200px; text-align: center; }

/* ============ ОБО МНЕ ============ */
.about-panel {
  background: rgba(13,22,36,.58); color: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px; padding: 34px 40px;
  max-width: 860px; margin: 0 auto;
  font-size: 17px; letter-spacing: .03em; font-weight: 400;
  line-height: 1.75; text-align: left;
}
.about-panel p + p { margin-top: 18px; }

/* ============ FAQ ============ */
.faq { max-width: 860px; margin: 0 auto; }
details {
  background: rgba(13,22,36,.58);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
}
summary {
  cursor: pointer; list-style: none;
  padding: 17px 24px;
  font-size: 17px; letter-spacing: .03em;
  position: relative; padding-right: 56px;
  transition: text-shadow .2s;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+'; position: absolute; right: 24px; top: 50%;
  transform: translateY(-50%);
  color: var(--accent); font-size: var(--fs-sub);
}
details[open] summary::after { content: '–'; }
@media (hover: hover) and (pointer: fine) {
  summary:hover { text-shadow: 0 0 12px rgba(168,187,216,.85); }
}
.faq-body { padding: 0 24px 20px; text-align: left; color: rgba(255,255,255,.85); font-size: 16px; letter-spacing: .02em; }
.faq-body ol { padding-left: 26px; }
.faq-body li { margin-top: 6px; }
.faq-body p + p { margin-top: 10px; }

/* ============ ОТЗЫВЫ ============ */
.reviews-carousel { position: relative; display: flex; align-items: center; gap: 10px; }
.rev-arrow {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(29,43,64,.85); color: #fff;
  border: 1px solid var(--accent);
  font-size: var(--fs-sub); line-height: 1; cursor: pointer;
  transition: box-shadow .2s;
}
@media (hover: hover) and (pointer: fine) {
  .rev-arrow:hover { box-shadow: 0 0 18px rgba(168,187,216,.8); }
}
.reviews-strip {
  display: flex; gap: 18px; overflow-x: auto;
  padding: 10px 4px 18px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}
.reviews-strip img {
  height: 300px; width: auto; max-width: min(78vw, 560px);
  object-fit: contain; flex: 0 0 auto;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 8px 22px rgba(0,0,0,.35);
  scroll-snap-align: center;
  background: #fff;
}
.reviews-note {
  max-width: 760px; margin: 12px auto 0;
  font-size: var(--fs-small); color: rgba(255,255,255,.6);
  text-align: center; line-height: 1.5;
}

/* ============ КОНТАКТЫ ============ */
.contact-panel {
  max-width: 620px; margin: 0 auto; text-align: center;
  background: rgba(13,22,36,.58);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
  padding: 34px 30px;
}
.contact-phone {
  font-size: var(--fs-sub); color: #fff; letter-spacing: .03em;
  text-decoration: none; text-shadow: 0 0 14px rgba(168,187,216,.45);
  transition: text-shadow .2s;
}
@media (hover: hover) and (pointer: fine) {
  .contact-phone:hover { text-shadow: 0 0 22px rgba(168,187,216,.95); }
}
.social-row {
  display: flex; gap: 16px; justify-content: center; align-items: center;
  margin-top: 22px; flex-wrap: wrap;
}
.social-row a {
  width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  transition: transform .15s ease, box-shadow .2s ease;
}
.social-row img, .social-row svg { width: 32px; height: 32px; }
@media (hover: hover) and (pointer: fine) {
  .social-row a:hover { transform: translateY(-3px); box-shadow: 0 0 18px rgba(168,187,216,.7); }
}
.messenger-note {
  font-size: var(--fs-small); color: rgba(255,255,255,.5);
  max-width: 540px; margin: 18px auto 0; line-height: 1.5;
}

/* ============ ПОДВАЛ ============ */
footer {
  margin-top: 56px; padding: 32px 0 40px;
  border-top: 1px solid rgba(255,255,255,.12);
  text-align: center;
}
.doc-links { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; }
.doc-links a { font-size: var(--fs-small); color: rgba(255,255,255,.8); text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .doc-links a:hover { text-shadow: 0 0 12px rgba(168,187,216,.9); }
}
.copyright { font-size: var(--fs-small); color: rgba(255,255,255,.45); margin-top: 18px; }

/* ============ СТРАНИЦЫ ДОКУМЕНТОВ ============ */
.doc-page { padding: 40px 0 20px; }
.doc-panel {
  background: rgba(13,22,36,.58); color: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px; padding: 30px 34px;
  max-width: 900px; margin: 24px auto 0;
  text-align: left; font-size: 17px; line-height: 1.6;
}
.doc-panel h3 { font-size: 21px; margin: 22px 0 8px; }
.doc-panel p { margin-top: 10px; }
.doc-panel ul, .doc-panel ol { padding-left: 24px; margin-top: 8px; }
.doc-panel li { margin-top: 5px; }
.doc-panel a { color: var(--accent); }
.back-link { display: inline-block; margin-top: 22px; font-size: var(--fs-small); color: rgba(255,255,255,.8); text-decoration: none; }

/* ============ КУКИ-БАННЕР: КОМПАКТНЫЙ, ПРЯМОУГОЛЬНЫЙ ============ */
.cookie-bar {
  position: fixed; right: 14px; bottom: 14px; z-index: 100;
  width: min(400px, calc(100% - 28px));
  background: rgba(21,32,49,.97);
  border: 1px solid rgba(255,255,255,.2); border-radius: 6px;
  padding: 14px 16px;
  font-size: 13px; line-height: 1.45;
  box-shadow: 0 8px 26px rgba(0,0,0,.5);
  display: none; text-align: left;
}
.cookie-bar.show { display: block; }
.cookie-bar h4 { font-size: 15px; font-weight: 600; margin-bottom: 8px; color: #fff; text-align: center; }
.cookie-bar p { margin-bottom: 6px; color: rgba(255,255,255,.85); }
.cookie-bar a { color: var(--accent); }
.cookie-actions { display: flex; gap: 8px; margin-top: 10px; }
.cookie-actions .btn { font-size: 13px; padding: 6px 18px; border-radius: 6px; flex: 1; text-align: center; }
.cookie-links { margin-top: 8px; font-size: 12px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ============ ПОДСКАЗКА ДЛЯ ВСТРОЕННЫХ БРАУЗЕРОВ ============ */
.inapp-bar {
  position: fixed; left: 0; right: 0; top: 0; z-index: 150;
  background: rgba(21,32,49,.98);
  border-bottom: 1px solid var(--btn);
  padding: 14px 18px;
  font-size: 14px; line-height: 1.45; color: rgba(255,255,255,.94);
  box-shadow: 0 6px 22px rgba(0,0,0,.5);
  display: none; text-align: center;
}
.inapp-bar.show { display: block; }
.inapp-text b { color: #fff; }
.inapp-actions { display: flex; gap: 10px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
.inapp-actions .btn { font-size: 13px; padding: 7px 18px; border-radius: 8px; }

/* ============ ОКНО СОГЛАСИЯ ПЕРЕД ЧАТОМ ============ */
.chat-modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(6,12,22,.72);
  display: none; align-items: center; justify-content: center;
  padding: 16px;
}
.chat-modal-backdrop.show { display: flex; }
.chat-modal {
  background: rgba(21,32,49,.98);
  border: 1px solid rgba(255,255,255,.2); border-radius: 12px;
  box-shadow: 0 16px 44px rgba(0,0,0,.6);
  max-width: 460px; width: 100%;
  padding: 26px 28px; position: relative; text-align: center;
}
.chat-modal h4 {
  font-family: 'Poiret One', 'Montserrat', Arial, sans-serif; font-weight: 400;
  font-size: var(--fs-sub); margin-bottom: 18px; color: #fff;
}
.chat-modal label {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: var(--fs-small); line-height: 1.45; text-align: left;
  margin-bottom: 12px; cursor: pointer; color: rgba(255,255,255,.9);
}
.chat-modal input[type=checkbox] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); cursor: pointer; flex: 0 0 auto; }
.chat-modal a { color: var(--accent); }
.chat-modal .btn { margin-top: 8px; min-width: 180px; }
.chat-modal .modal-close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: none; color: rgba(255,255,255,.7);
  font-size: 22px; cursor: pointer; line-height: 1;
}
@media (hover: hover) and (pointer: fine) {
  .chat-modal .modal-close:hover { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,.9); }
}

/* ============ ПЛАВНОЕ ПОЯВЛЕНИЕ БЛОКОВ ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ УЗКИЕ ЭКРАНЫ ============ */
@media (max-width: 1120px) {
  .hero::before {
    background: linear-gradient(90deg,
      rgba(29,43,64,.85) 0%,
      rgba(29,43,64,.6) 45%,
      rgba(29,43,64,.25) 75%,
      rgba(29,43,64,.1) 100%);
  }
}
@media (max-width: 720px) {
  .nav-logo img { width: 34px; height: 34px; }
  :root { --fs: 17px; --fs-sub: 22px; --fs-btn: 17px; --pad: 18px; }
  h1, h2 { font-size: 32px; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero { min-height: 92vh; }
  /* фото укрупнено и поднято: голова сразу под меню, пустоты нет */
  .hero-photo { height: calc(100% + 70px); top: -70px; object-position: 74% top; }
  .hero::before {
    background: linear-gradient(180deg, rgba(29,43,64,.18) 0%, rgba(29,43,64,.3) 32%, rgba(29,43,64,.78) 62%, rgba(29,43,64,.95) 100%);
  }
  .hero-inner { padding: 34vh var(--pad) 40px; justify-content: flex-end; }
  /* компактное меню: помещается в две строки */
  .topnav .wrap { gap: 6px 16px; padding-top: 10px; padding-bottom: 10px; }
  .topnav a { font-size: 13px; letter-spacing: .02em; }
  .topnav a.nav-cta { padding: 6px 12px; }
  /* заголовок поднят на лоб; position:relative двигает только его, остальное на месте */
  /* заголовок в две строки, выше глаз */
  .hero-info h1 { font-size: 38px; line-height: 1.2; position: relative; top: -190px; }
  .h1-line { display: block; }
  .hero-contacts { margin-top: 34px; gap: 14px; }
  .hero-phone-num { font-size: 24px; }
  .hero-cta { min-width: 100%; }
  .hero-cta .btn { width: 100%; }
  .card .price { font-size: 28px; }
  .reviews-strip img { height: 230px; max-width: 84vw; }
  .rev-arrow { display: none; }   /* на телефоне листают пальцем */
  .doc-panel { padding: 22px 18px; font-size: 15px; }
  section { padding: 36px 0 8px; }
  .about-panel { padding: 24px 22px; }
  .cookie-bar { right: 8px; left: 8px; bottom: 8px; width: auto; padding: 12px 14px; font-size: 12.5px; }
  .cookie-bar h4 { font-size: 14px; margin-bottom: 6px; }
  .cookie-bar p { margin-bottom: 5px; }
  .cookie-actions { margin-top: 8px; }
  .cookie-actions .btn { font-size: 12.5px; padding: 6px 14px; }
}
