:root {
  --accent: #f5914f;
  --accent-hover: #e77f3d;
  --blue: #0098f1;
  --text: #111111;
  --muted: #f5f5f5;
  --line: #e7e7e7;
  --dark: #111111;
  --white: #ffffff;
  --container: 1200px;
  --shadow: 0 18px 50px rgba(0,0,0,.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 30;
  height: 80px;
  background: rgba(0,0,0,.50);
  color: #fff;
}
.header-inner { height: 80px; display: flex; align-items: center; gap: 28px; }
.brand { flex: 0 0 auto; display: flex; align-items: center; }
.brand img { width: auto; max-width: 190px; max-height: 70px; height: auto; object-fit: contain; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 28px; margin: 0 auto; }
.main-nav a { font-size: 15px; font-weight: 700; white-space: nowrap; transition: opacity .2s; }
.main-nav a:hover { opacity: .72; }
.header-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 16px; }
.header-phone { font-size: 20px; font-weight: 700; white-space: nowrap; }
.header-socials { display: flex; gap: 7px; }
.header-socials a { width: 30px; height: 30px; display: block; color: #fff; }
.header-socials svg { display:block; width:30px; height:30px; }
.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; margin-left: auto; }
.menu-toggle span { display: block; width: 28px; height: 3px; margin: 5px 0; background: #fff; transition: .2s; }

.btn {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 4px;
  padding: 0 46px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { color: #fff; background: var(--accent); text-transform: uppercase; box-shadow: 0 0 20px rgba(0,0,0,.3); }
.btn-accent:hover { background: var(--accent-hover); box-shadow: 0 8px 28px rgba(0,0,0,.34); }
.btn-light { color: #000; background: #fff; }
.btn-small { min-height: 40px; border-radius: 20px; padding: 0 25px; font-size: 13px; }
.btn-form { width: 100%; color: #fff; background: var(--blue); }

.hero { position: relative; min-height: 100vh; display: grid; place-items: center; overflow: hidden; color: #fff; text-align: center; }
.hero-bg, .callback-banner-bg { position: absolute; inset: 0; background: url('../img/photo.jpg') center/cover no-repeat; transform: scale(1.02); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.60), rgba(0,0,0,.70)); }
.hero-content { position: relative; z-index: 2; max-width: 960px; padding: 130px 0 90px; }
.hero h1 { margin: 0 0 24px; font-size: clamp(42px, 6vw, 72px); line-height: 1.08; letter-spacing: .5px; }
.hero p { max-width: 860px; margin: 0 auto 42px; font-size: clamp(18px, 2vw, 22px); line-height: 1.55; font-weight: 300; }
.hero-arrow { position: absolute; z-index: 4; left: 50%; bottom: 24px; transform: translateX(-50%); font-size: 45px; line-height: 1; animation: bob 1.7s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,-8px); } }

.section { padding: 75px 0; }
.section-muted { background: var(--muted); }
.section-title { margin: 0 0 55px; text-align: center; font-size: clamp(32px, 4vw, 42px); line-height: 1.2; }
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.about-copy h2 { margin: 0 0 28px; font-size: clamp(32px, 4vw, 42px); line-height: 1.2; }
.about-copy p { margin: 0; font-size: 19px; font-weight: 300; line-height: 1.6; }
.about-collage { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.about-collage img { width: 100%; aspect-ratio: 1.32; object-fit: cover; }

.advantages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px 40px; }
.advantage { text-align: center; }
.adv-icon { min-height: 86px; display: grid; place-items: center; margin-bottom: 15px; }
.adv-icon img { width: 72px; height: 72px; }
.advantage h3 { margin: 0 0 12px; font-size: 26px; line-height: 1.2; }
.advantage p { margin: 0 auto; max-width: 330px; font-size: 15px; font-weight: 300; }

.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px 40px; }
.product-card { min-width: 0; }
.product-link { appearance: none; width: 100%; padding: 0; background: none; border: 0; text-align: center; cursor: pointer; }
.product-link > img { width: 100%; aspect-ratio: .9; object-fit: cover; transition: transform .25s, filter .25s; }
.product-link:hover > img { transform: scale(1.015); filter: brightness(.96); }
.product-body { padding: 20px 12px 0; }
.product-body h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.3; }
.product-body p { min-height: 44px; margin: 0 0 12px; font-size: 14px; font-weight: 300; color: #444; }
.product-body strong { font-size: 17px; font-weight: 400; }

.callback-banner { min-height: 560px; position: relative; display: grid; place-items: center; color: #fff; text-align: center; overflow: hidden; }
.callback-banner-bg { background-image: url('../img/blob.png'); }
.callback-banner-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.80), rgba(0,0,0,.90)); }
.callback-banner-content { position: relative; z-index: 2; padding: 70px 0; }
.callback-banner h2 { margin: 0 0 22px; font-size: clamp(38px, 5vw, 48px); line-height: 1.2; }
.callback-banner p { max-width: 650px; margin: 0 auto 34px; font-size: 23px; font-weight: 300; }

.reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 65px; }
.review { display: grid; grid-template-columns: 110px 1fr; gap: 26px; align-items: center; }
.review-avatar { width:108px; height:108px; border-radius:50%; object-fit:cover; }
.review p { margin: 0 0 12px; font-size: 15px; font-weight: 300; }
.review strong { font-size: 15px; }

.installation { padding-bottom: 0; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); }
.gallery-item { position: relative; padding: 0; border: 0; background: #111; cursor: zoom-in; overflow: hidden; }
.gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .3s, opacity .3s; }
.gallery-item:hover img { transform: scale(1.035); opacity: .88; }

.contacts { padding: 75px 0 85px; text-align: center; }
.contacts-inner { max-width: 750px; }
.contacts-kicker { margin: 0 0 18px; font-size: 14px; font-weight: 700; letter-spacing: 2px; }
.contacts h2 { margin: 0 0 24px; font-size: clamp(28px, 4vw, 36px); line-height: 1.45; }
.contacts h2 a:hover { color: var(--accent); }
.contacts > .container > p:not(.contacts-kicker) { font-size: 18px; }
.contact-socials { display:flex; justify-content:center; gap:12px; margin-top:18px; }
.contact-socials a { width:48px; height:48px; display:block; color:var(--accent); }
.contact-socials svg { width:48px; height:48px; display:block; }
.contact-socials a:hover { opacity:.75; }
.map-section { width:100%; min-height:400px; overflow:hidden; }
.legal-info { padding:15px 0 30px; }
.legal-info-inner { max-width:800px; }
.legal-info p { margin:0; font-size:14px; line-height:1.5; }
.floating-contacts { position:fixed; right:22px; bottom:22px; z-index:80; display:flex; flex-direction:column; gap:10px; }
.floating-contact { width:50px; height:50px; border-radius:50%; display:grid; place-items:center; color:#fff; font-weight:700; box-shadow:0 7px 20px rgba(0,0,0,.20); }
.floating-whatsapp { background:#27d061; }
.floating-mail { background:#168de2; font-size:22px; }
.floating-phone { background:#004d73; font-size:22px; }
.form-note { margin:8px 0 0; text-align:center; font-size:12px; color:#777; }

.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 25px; }
.modal.is-open { display: grid; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.68); backdrop-filter: blur(2px); }
.modal-card { position: relative; z-index: 1; width: min(560px, 100%); background: #fff; padding: 42px 50px 48px; border-radius: 4px; box-shadow: var(--shadow); }
.modal-close { position: absolute; right: 14px; top: 8px; border: 0; background: transparent; font-size: 38px; cursor: pointer; color: #555; }
.modal-logo { width:auto; max-width:250px; max-height:100px; object-fit:contain; margin:0 auto 24px; }
.modal-card h2 { margin: 0 0 26px; text-align: center; font-size: 27px; }
.modal-card label { display: block; margin-bottom: 14px; }
.modal-card label span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.modal-card input { width: 100%; height: 58px; border: 1px solid #c9c9c9; border-radius: 5px; padding: 0 18px; outline: none; }
.modal-card input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,152,241,.10); }
.hp-field { position: absolute !important; left: -9999px !important; }
.form-status { min-height: 22px; margin: 12px 0 0; text-align: center; font-size: 14px; }
.form-status.success { color: #14804a; }
.form-status.error { color: #b42318; }

.lightbox { position: fixed; inset: 0; z-index: 120; display: none; align-items: center; justify-content: center; padding: 30px; background: rgba(0,0,0,.88); }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1100px, 95vw); max-height: 88vh; box-shadow: 0 16px 70px rgba(0,0,0,.35); }
.lightbox-close { position: fixed; right: 24px; top: 13px; border: 0; background: transparent; color: #fff; font-size: 48px; cursor: pointer; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1120px) {
  .main-nav { gap: 17px; }
  .main-nav a { font-size: 14px; }
  .header-socials { display: none; }
  .header-phone { font-size: 18px; }
  .btn-small { padding: 0 18px; }
}

@media (max-width: 980px) {
  .site-header { position: fixed; height: 64px; background: #111; }
  .header-inner { height: 64px; }
  .brand img { max-width:145px; max-height:54px; }
  .menu-toggle { display: block; }
  .main-nav, .header-actions { display: none; }
  .site-header.menu-open { height: auto; }
  .site-header.menu-open .header-inner { height: auto; min-height: 64px; flex-wrap: wrap; padding: 10px 0 18px; }
  .site-header.menu-open .main-nav { order: 3; width: 100%; display: flex; flex-direction: column; gap: 0; align-items: stretch; text-align: center; }
  .site-header.menu-open .main-nav a { padding: 11px 0; }
  .site-header.menu-open .header-actions { order: 4; width: 100%; display: flex; flex-direction: column; gap: 10px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero-content { padding-top: 100px; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 30px, var(--container)); }
  .section { padding: 62px 0; }
  .hero { min-height: 720px; }
  .hero h1 { font-size: 42px; }
  .hero p { font-size: 18px; }
  .advantages-grid, .catalog-grid, .reviews-grid { grid-template-columns: 1fr; }
  .advantages-grid { gap: 42px; }
  .catalog-grid { gap: 50px; }
  .reviews-grid { gap: 34px; }
  .review { grid-template-columns: 80px 1fr; gap: 18px; align-items: start; }
  .review-avatar { width:78px; height:78px; }
  .callback-banner { min-height: 480px; }
  .callback-banner p { font-size: 19px; }
  .modal-card { padding: 38px 24px 30px; }
}

@media (max-width: 480px) {
  .hero { min-height: 650px; }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 16px; }
  .btn { width: 100%; padding: 0 24px; }
  .about-copy p { font-size: 17px; }
  .about-collage { gap: 4px; }
  .section-title { margin-bottom: 40px; font-size: 31px; }
  .advantage h3 { font-size: 24px; }
  .product-body h3 { font-size: 19px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .contacts h2 { font-size: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* v4: точнее повторяем отступы и интерактивные элементы исходной Tilda-страницы */
body { font-family: 'Roboto', Arial, sans-serif; font-weight: 300; }
.main-nav a, .header-phone, .btn, .advantage h3, .product-body h3, .review strong, .contacts-kicker { font-family: 'Roboto', Arial, sans-serif; }
.header-phone { font-size: 23px; }

/* В оригинале между заголовками и содержимым этих блоков больше воздуха. */
#advantages .section-title { margin-bottom: 105px; }
#catalog .section-title { margin-bottom: 100px; }
#reviews .section-title { margin-bottom: 90px; }
.advantages-grid { row-gap: 90px; }
.adv-icon { min-height: 100px; margin-bottom: 25px; }
.adv-icon img { width: 90px; height: 90px; }
.advantage h3 { margin-bottom: 25px; font-size: 30px; }
.advantage p { font-size: 16px; }
.reviews-grid { row-gap: 70px; }
.review { grid-template-columns: 100px 1fr; gap: 30px; }
.review-avatar { width: 100px; height: 100px; }

/* В Tilda заголовочный блок галереи: padding-top 105px + padding-bottom 75px,
   а у t795__title ещё 40px нижнего отступа. */
.installation { padding: 105px 0 0; }
.installation .section-title { margin-bottom: 115px; }

/* Оригинальный CTA — cover 560px с fixed parallax. */
.callback-banner {
  min-height: 560px;
  background-image: url('../img/blob.png');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.callback-banner-bg { display: none; }
.callback-banner h2 { margin-bottom: 25px; }
.callback-banner p { max-width: 600px; margin: 0 auto; font-size: 24px; }
.callback-banner .btn { margin-top: 70px; }

/* Контакты размещены поверх карты, а не отдельным блоком над ней. */
.map-contact-section { position: relative; min-height: 400px; overflow: hidden; background: #ececec; }
.map-canvas { width: 100%; min-height: 400px; }
.map-canvas > ymaps,
.map-canvas > iframe { display: block; width: 100% !important; min-height: 400px !important; }
.map-contact-overlay { position: absolute; inset: 0; pointer-events: none; }
/* Карточку не совмещаем с .reveal: его transform ломает вертикальное центрирование. */
.map-contact-card {
  position: absolute;
  top: 50%;
  left: 0;
  width: min(430px, calc(100% - 40px));
  transform: translateY(-50%);
  padding: 34px 38px 32px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 36px rgba(0,0,0,.16);
  pointer-events: auto;
  text-align: left;
}
.map-contact-card .contacts-kicker { margin: 0 0 20px; font-size: 14px; font-weight: 600; letter-spacing: 1.8px; }
.map-contact-card h2 { margin: 0 0 8px; font-size: 32px; line-height: 1.25; font-weight: 600; }
.map-contact-card > p:not(.contacts-kicker) { margin: 0 0 14px; font-size: 18px; line-height: 1.5; }
.map-contact-card a:hover { color: var(--accent); }
.map-contact-card .contact-address { margin-top: 22px !important; font-size: 16px !important; }
.map-contact-card .contact-socials { justify-content: flex-start; margin-top: 20px; }
.legal-info { padding: 15px 0 30px; }

/* Раскрывающаяся кнопка быстрых контактов, как t898 в Tilda. */
.contact-launcher {
  position: fixed;
  right: 65px;
  bottom: 50px;
  width: 60px;
  height: 60px;
  z-index: 100000;
}
.contact-launcher-toggle {
  position: absolute;
  inset: 0;
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 50%;
  background: #0088cc;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0,0,0,.30);
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
  z-index: 3;
}
.contact-launcher-toggle:hover { box-shadow: 0 0 20px rgba(0,0,0,.42); }
.launcher-icon { position: absolute; inset: 0; margin: auto; transition: opacity .22s ease, transform .22s ease; }
.launcher-icon-close { opacity: 0; transform: scale(.2) rotate(-90deg); }
.contact-launcher.is-open .contact-launcher-toggle { background: #fff; color: #333; }
.contact-launcher.is-open .launcher-icon-chat { opacity: 0; transform: scale(.2); }
.contact-launcher.is-open .launcher-icon-close { opacity: 1; transform: scale(1) rotate(0); }
.contact-launcher-links { position: absolute; inset: 0; z-index: 1; }
.contact-launcher-link {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0) scale(.85);
  box-shadow: 0 0 20px rgba(0,0,0,.28);
  transition: transform .22s ease, opacity .18s ease, visibility .18s ease;
}
.contact-launcher-link:hover { box-shadow: 0 0 20px rgba(0,0,0,.42); }
.contact-launcher-link svg { display: block; width: 50px; height: 50px; }
.contact-launcher.is-open .contact-launcher-link { opacity: 1; visibility: visible; transform: scale(1); }
.contact-launcher.is-open .contact-launcher-link:nth-child(1) { transform: translateY(-81px); transition-delay: .02s; }
.contact-launcher.is-open .contact-launcher-link:nth-child(2) { transform: translateY(-153px); transition-delay: .05s; }
.contact-launcher.is-open .contact-launcher-link:nth-child(3) { transform: translateY(-225px); transition-delay: .08s; }
.contact-tooltip {
  position: absolute;
  right: 65px;
  top: 50%;
  transform: translateY(-50%) translateX(5px);
  padding: 6px 9px;
  border-radius: 3px;
  background: #292929;
  color: #fff;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease, transform .12s ease;
}
.contact-tooltip::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #292929;
}
.contact-launcher-link:hover .contact-tooltip { opacity: .9; transform: translateY(-50%) translateX(0); }

/* Согласие в форме: checkbox всегда пустой при первом открытии. */
.modal-card .privacy-consent {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 2px 0 18px;
  cursor: pointer;
}
.modal-card .privacy-consent input[type='checkbox'] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--blue);
}
.modal-card .privacy-consent span {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  font-size: 13px;
  line-height: 1.4;
  color: #555;
}
.modal-card .privacy-consent a { color: #168de2; text-decoration: underline; text-underline-offset: 2px; }
.modal-card .privacy-consent a:hover { text-decoration: none; }

/* Cookie consent: аналитика не загружается до нажатия «Разрешить». */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 110000;
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 22px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 10px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 12px 42px rgba(0,0,0,.18);
}
.cookie-banner-text { flex: 1 1 auto; font-size: 14px; line-height: 1.5; color: #262626; }
.cookie-banner-text a { color: #168de2; text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner-actions { flex: 0 0 auto; display: flex; gap: 10px; }
.cookie-btn { min-height: 42px; border-radius: 6px; padding: 0 18px; font-weight: 600; cursor: pointer; }
.cookie-btn-primary { border: 1px solid var(--accent); background: var(--accent); color: #fff; }
.cookie-btn-secondary { border: 1px solid #d8d8d8; background: #fff; color: #222; }
.cookie-btn:hover { filter: brightness(.98); }

/* Privacy page */
.privacy-page { padding: 100px 0 80px; }
.privacy-page .privacy-shell { width: min(860px, calc(100% - 40px)); margin: 0 auto; }
.privacy-page h1 { margin: 0 0 36px; font-size: clamp(34px, 5vw, 48px); line-height: 1.15; }
.privacy-page h2 { margin: 42px 0 16px; font-size: 26px; line-height: 1.25; }
.privacy-page p, .privacy-page li { font-size: 16px; line-height: 1.65; }
.privacy-page a { color: #168de2; text-decoration: underline; }
.privacy-back { display: inline-flex; margin-bottom: 28px; font-weight: 500; }

@media (max-width: 960px) {
  #advantages .section-title { margin-bottom: 45px; }
  #catalog .section-title { margin-bottom: 60px; }
  #reviews .section-title { margin-bottom: 40px; }
  .advantages-grid { row-gap: 45px; }
  .reviews-grid { row-gap: 40px; }
  .installation { padding-top: 90px; }
  .installation .section-title { margin-bottom: 75px; }
  .callback-banner { background-attachment: scroll; }
  .callback-banner .btn { margin-top: 45px; }
  .map-contact-card { left: 20px; }
  .contact-launcher { right: 18px; bottom: 18px; }
}

@media (max-width: 640px) {
  .map-contact-section { min-height: 520px; }
  .map-canvas { min-height: 520px; }
  .map-contact-overlay { width: 100%; }
  .map-contact-card {
    top: auto;
    bottom: 18px;
    left: 20px;
    right: 20px;
    width: auto;
    transform: none;
    padding: 24px 22px 22px;
  }
  .map-contact-card h2 { font-size: 26px; }
  .map-contact-card > p:not(.contacts-kicker) { font-size: 16px; }
  .contact-launcher { right: 10px; bottom: 10px; }
  .contact-tooltip { display: none; }
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: block;
    padding: 16px;
  }
  .cookie-banner-text { font-size: 13px; }
  .cookie-banner-actions { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; }
  .cookie-btn { padding: 0 10px; font-size: 13px; }
}
