/* Блоки, вынесенные из инлайн-стилей index.html (01.11.2026), порядок сохранён. Подключается сразу после style.min.css. */

/* ===== REVIEW HOOK ===== */
.review-hook { padding: 60px 16px; text-align: center; background: linear-gradient(180deg, #1D1D1D 0%, #232323 100%); border-top: 1px solid rgba(245,197,24,.22); font-family: 'Open Sans', sans-serif; }
.review-hook .container { max-width: 600px; background: rgba(255,255,255,.045); border: 1px solid rgba(245,197,24,.16); border-radius: 22px; padding: 44px 34px; }
.review-hook .review-hook-stars { color: #F5C518; font-size: 36px; letter-spacing: 6px; line-height: 1; margin-bottom: 16px; }
.review-hook h2 { font-size: 30px; font-weight: 800; color: #fff; margin: 0 0 10px; line-height: 1.25; }
.review-hook p { font-size: 17px; color: #b9b9b9; line-height: 1.55; margin: 0 auto 28px; max-width: 560px; }
.review-hook-btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 40px; border-radius: 50px; font-size: 18px; font-weight: 700; text-decoration: none; background: #F5C518; color: #1D1D1D; box-shadow: 0 6px 18px rgba(245,197,24,.30); transition: transform .16s ease, box-shadow .16s ease; min-height: 54px; }
.review-hook-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(245,197,24,.42); color: #1D1D1D; }
.review-hook-platforms { margin-top: 18px; font-size: 13px; color: #8a8a8a; display: flex; align-items: center; justify-content: center; gap: 8px; }
.review-hook-platforms .rh-badge { display: inline-flex; align-items: center; gap: 5px; }
@media (max-width: 540px) { .review-hook { padding: 48px 16px; } .review-hook h2 { font-size: 24px; } .review-hook p { font-size: 15px; } .review-hook-btn { width: 100%; justify-content: center; } }

/* ===== FAQ styles ===== */
.faq { padding: 60px 0; background: #f8f9fa; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: #fff; border-radius: 8px; margin-bottom: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); overflow: hidden; }
.faq-question { width: 100%; padding: 18px 50px 18px 20px; border: none; background: none; text-align: left; font-size: 16px; font-weight: 600; cursor: pointer; position: relative; color: #333; font-family: inherit; }
.faq-question::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; color: #F5C518; transition: transform 0.3s; }
.faq-item.active .faq-question::after { content: '\2212'; }
/* плавное раскрытие без ограничения высоты: grid-template-rows 0fr -> 1fr (раньше max-height 300px обрезал длинные ответы) */
.faq-answer { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 0.35s ease, padding 0.35s ease, visibility 0s linear 0.35s; }
.faq-item.active .faq-answer { grid-template-rows: 1fr; padding: 0 20px 18px; visibility: visible; transition: grid-template-rows 0.35s ease, padding 0.35s ease, visibility 0s; }
.faq-answer p { color: #555; line-height: 1.6; margin: 0; overflow: hidden; min-height: 0; }
.faq-answer a { color: #F5C518; }

/* ===== Telegram Bot Widget ===== */
#tg-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, rgba(255, 210, 100, 0.7), rgba(180, 120, 0, 0.6));
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 10px 30px rgba(180, 120, 0, 0.55),
    0 3px 8px rgba(0, 0, 0, 0.25),
    inset 0 4px 8px rgba(255, 255, 255, 0.42),
    inset 0 -6px 12px rgba(0, 0, 0, 0.38);
  cursor: pointer;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.8s ease;
}
#tg-widget:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow:
    0 16px 40px rgba(180, 120, 0, 0.65),
    0 5px 12px rgba(0, 0, 0, 0.28),
    inset 0 4px 8px rgba(255, 255, 255, 0.50),
    inset 0 -6px 12px rgba(0, 0, 0, 0.42);
}
#tg-tooltip {
  position: fixed;
  bottom: 92px;
  right: 24px;
  z-index: 9998;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #333;
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  border-left: 3px solid rgba(180, 120, 0, 0.7);
  font-size: 14px;
  max-width: 220px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

/* ===== WAVE4: fluid типографика + живость ===== */
/* Fluid типографика (clamp) */
.hero h1 { font-size: clamp(1.9rem, 6.2vw, 4.6rem) !important; line-height: 1.08; letter-spacing: -0.015em; }
.section-title { font-size: clamp(1.7rem, 3.8vw, 2.7rem) !important; line-height: 1.15; }
.hero-subtitle { font-size: clamp(1.02rem, 2.3vw, 1.55rem) !important; }
.stat-number { font-size: clamp(2.1rem, 5vw, 3.75rem) !important; }
.foundations-intro { font-size: clamp(.98rem, 1.6vw, 1.12rem); }
/* SVG-иконки преимуществ + микроинтеракция */
.adv-card .adv-icon { color: #F5C518; background: #1D1D1D; border-radius: 50%; padding: 16px; display: inline-block; transition: transform .35s cubic-bezier(.34,1.56,.64,1), color .3s ease, background .3s ease; }
.adv-card:hover .adv-icon { transform: scale(1.1) rotate(-5deg); color: #1D1D1D; background: #F5C518; }
/* Вход hero и пульсация кнопки перенесены в css/motion.css (01.11.2026) */
/* Animated underline в меню */
.nav a { position: relative; }
.nav a::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: #F5C518; transition: width .28s ease; }
.nav a:hover::after { width: 100%; }
/* Усиленный hover карточек */
.adv-card, .offer-card { transition: transform .3s ease, box-shadow .3s ease; }
.adv-card:hover, .offer-card:hover { transform: translateY(-6px); }
/* a11y: уважать reduced-motion */
/* Решение Андрея 01.11.2026: полный motion у всех, html.force-motion (ставит скрипт в head) отключает эти reduce-правила */
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) .adv-card:hover .adv-icon, html:not(.force-motion) .adv-card:hover, html:not(.force-motion) .offer-card:hover { transform: none !important; }
  html:not(.force-motion) .fade-up { transition: none !important; }
  html:not(.force-motion) .nav a::after { transition: none !important; }
  html:not(.force-motion) .stats { background-attachment: scroll !important; }
  html:not(.force-motion) * { scroll-behavior: auto !important; }
}

/* ===== WAVE1: hero-trust + sticky CTA ===== */
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.hero-trust-item { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 50px; font-size: 14px; font-weight: 600; color: #fff; background: rgba(255,255,255,.13); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.28); }
.hero-trust-item svg { flex-shrink: 0; opacity: .9; }
@media (max-width: 480px) { .hero-trust-item { font-size: 12px; padding: 7px 12px; gap: 6px; } }
.sticky-cta { display: none; }
@media (max-width: 768px) {
  .sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999; display: flex; box-shadow: 0 -4px 16px rgba(0,0,0,.28); }
  .sticky-cta-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 8px; font-size: 16px; font-weight: 700; text-decoration: none; min-height: 56px; }
  .sticky-cta-call { background: #F5C518; color: #1D1D1D; }
  .sticky-cta-tg { background: #2AABEE; color: #fff; }
  body { padding-bottom: 56px; }
  #tg-widget { display: none !important; }
}

/* ===== WAVE3: брендовые тени + hover (#F5C518) ===== */
.adv-card:hover, .offer-card:hover, .stage-card:hover { box-shadow: 0 12px 32px rgba(245,197,24,.28); }
.faq-item { transition: transform .25s ease, box-shadow .25s ease; }
.faq-item:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,197,24,.20); }

/* ===== WAVE7: шрифт меню (десктоп - крупнее и воздушнее) ===== */
@media (min-width: 769px) {
  .nav { gap: 26px; }
  .nav a { font-size: 14px; letter-spacing: 1px; }
}

/* ===== WAVE6: карточки "Виды фундаментов" ===== */
.fnd-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 10px; }
.fnd-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.08); transition: transform .3s ease, box-shadow .3s ease; display: flex; flex-direction: column; }
.fnd-card:hover { transform: translateY(-6px); box-shadow: 0 16px 38px rgba(245,197,24,.28); }
.fnd-img { position: relative; height: 210px; overflow: hidden; background: #e9e9e9; }
.fnd-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; display: block; }
.fnd-card:hover .fnd-img img { transform: scale(1.07); }
.fnd-badge { position: absolute; top: 14px; left: 14px; background: #F5C518; color: #1D1D1D; font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 50px; box-shadow: 0 3px 10px rgba(0,0,0,.18); }
.fnd-body { padding: 26px 26px 24px; display: flex; flex-direction: column; flex: 1; }
.fnd-h3 { display: flex; align-items: center; gap: 11px; font-size: 21px; font-weight: 700; margin-bottom: 12px; line-height: 1.25; }
.fnd-h3 .fnd-ic { flex-shrink: 0; width: 40px; height: 40px; background: #1D1D1D; color: #F5C518; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.fnd-desc { color: #555; font-size: 14.5px; line-height: 1.55; margin-bottom: 16px; }
.fnd-plus { list-style: none; padding: 0; margin: 0 0 16px; }
.fnd-plus li { display: flex; align-items: flex-start; gap: 9px; font-size: 14.5px; color: #333; margin-bottom: 8px; line-height: 1.4; }
.fnd-plus li svg { flex-shrink: 0; color: #F5C518; margin-top: 2px; }
.fnd-more { margin-bottom: 16px; }
.fnd-more summary { cursor: pointer; color: #1D1D1D; font-weight: 600; font-size: 14px; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.fnd-more summary::-webkit-details-marker { display: none; }
.fnd-more summary::-moz-list-bullet { display: none; }
.fnd-more summary::before { content: '+'; color: #F5C518; font-weight: 800; font-size: 17px; line-height: 1; }
.fnd-more[open] summary::before { content: '\2212'; }
.fnd-more p { margin-top: 10px; font-size: 13.5px; color: #666; line-height: 1.55; }
.fnd-cta { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; background: #F5C518; color: #1D1D1D; font-weight: 700; font-size: 15px; padding: 11px 26px; border-radius: 50px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.fnd-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(245,197,24,.4); color: #1D1D1D; }
@media (max-width: 760px) { .fnd-grid { grid-template-columns: 1fr; } }

/* ===== WAVE5: единые скругления (умеренно-мягкий: блоки 14px, кнопки pill, иконки круг) ===== */
/* Карточки / контейнеры / модалка -> 14px */
.adv-card, .offer-card, .stage-card, .faq-item, .calc-modal-content, .review-hook .container { border-radius: 14px !important; }
/* Карта -> 14px (обрезаем iframe через wrapper) */
.contacts-map { border-radius: 14px; overflow: hidden; }
.contacts-map iframe { border-radius: 14px; }
/* Кнопки -> pill */
.btn, .btn-yellow, #submit-btn { border-radius: 50px !important; }
/* Поля форм -> 10px */
.cta-form input, .cta-form textarea, .calc-form input, .calc-form select, .calc-form textarea { border-radius: 10px !important; }


/* ===== 01.11.2026: правки под motion-слой ===== */
/* без JS блоки .fade-up не прячем (html.js ставит скрипт в head) */
html:not(.js) .fade-up { opacity: 1; transform: none; }
/* фон hero вынесен в отдельный слой (оседает при входе, см. motion.css); parallax fixed у hero убран */
.hero { overflow: hidden; background-attachment: scroll; }
.hero::before { content: ''; position: absolute; inset: 0; background: url('../images/bg/hero-bg.webp') center / cover no-repeat; }
@media (max-width: 768px) { .hero::before { background-image: url('../images/bg/hero-bg-960.webp'); } }
/* модалка калькулятора выше sticky-панели телефона и Telegram-виджета (z-index 9999) */
.calc-modal { z-index: 10001; }
.calc-modal-content:focus { outline: none; }
/* меню из 8 пунктов: на десктопе уменьшаем шрифт и отступы (8 пунктов при прежних 14 px / 26 px не помещаются даже в контейнер 1200 px), до 1020 px (планшет) меню уходит в бургер, как на телефоне; строка не переносится */
@media (min-width: 1181px) { .nav { gap: 18px; } .nav a { font-size: 13px; letter-spacing: .5px; } }
.logo { flex-shrink: 0; white-space: nowrap; }
@media (min-width: 1021px) and (max-width: 1180px) { .nav { gap: 12px; } .nav a { font-size: 12px; letter-spacing: .2px; } }
@media (min-width: 769px) and (max-width: 1020px) {
    .burger { display: block; }
    .nav { display: flex; position: fixed; top: 0; right: -100%; width: 70%; max-width: 300px; height: 100vh; background: #fff; flex-direction: column; padding: 80px 30px 30px; gap: 0; box-shadow: -5px 0 15px rgba(0,0,0,0.2); transition: right 0.3s ease; z-index: 150; }
    .nav.open { right: 0; }
    .nav a { font-size: 16px; letter-spacing: .5px; padding: 15px 0; border-bottom: 1px solid #eee; }
}
