/* ══════════════════════════════════════════════════
   GNature Казань — Тема: бледно-зелёный / органика
   Шрифты: Lora (заголовки) + Raleway (текст)
   ══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Nunito:wght@300;400;500;600;700&display=swap');

/* ── Глобальный сброс шрифта на кириллический ── */
* {
  font-family: 'Nunito', sans-serif;
}

/* ── CSS-переменные (розовая палитра) ── */
:root {
  --g-primary:    #d4558a;   /* основной розовый */
  --g-primary-h:  #b44d78;   /* hover */
  --g-btn-from:   #d4558a;
  --g-btn-to:     #fc6970;
  --g-btn-h-from: #b44d78;
  --g-btn-h-to:   #e4474f;
  --g-light:      #bffffd;   /* оригинальный голубой акцент */
  --g-pale:       #f8f8f8;   /* нейтральный светлый фон */
  --g-dark:       #4b4b4b;   /* тёмные секции */
  --g-dark-nav:   #4d4b4a;   /* навбар при скролле */
}

/* ════════════════════════
   ШРИФТЫ
   ════════════════════════ */

.body,
.body-2 {
  font-family: 'Nunito', sans-serif;
  line-height: 1.65;
}

.heading,
.headeruslugi,
.header,
.header-black,
.company-bold,
.formheader,
.sale-1-header,
.form-head,
.form-head-cost,
.heading-2,
.heading-3 {
  font-family: 'Lora', serif;
  letter-spacing: -0.01em;
}

/* ════════════════════════
   КНОПКИ: розовый → зелёный
   ════════════════════════ */

.button-3,
.button-3.f,
.projects,
.buttonuslugi,
.button-sale,
.button-sale.f {
  background-image: linear-gradient(90deg, var(--g-btn-from), var(--g-btn-to));
  -webkit-background-image: linear-gradient(90deg, var(--g-btn-from), var(--g-btn-to));
  border-radius: 4px;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.button-3:hover,
.button-3.f:hover,
.projects:hover,
.buttonuslugi:hover,
.button-sale:hover,
.button-sale.f:hover {
  background-image: linear-gradient(90deg, var(--g-btn-h-from), var(--g-btn-h-to));
  -webkit-background-image: linear-gradient(90deg, var(--g-btn-h-from), var(--g-btn-h-to));
  color: #fff;
}

/* lightbox-link (кружок play в галерее) */
.lightbox-link {
  background-image: linear-gradient(180deg, var(--g-btn-from), var(--g-btn-to));
}

/* кнопка «цвета красок» */
.button-color:hover {
  border-color: var(--g-primary);
  background-image: linear-gradient(90deg, var(--g-btn-from), var(--g-btn-to));
  color: #fff;
}

/* кнопка отправки в формах */
.call-submit-button {
  background-color: var(--g-primary);
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.call-submit-button:hover {
  background-color: var(--g-primary-h);
}

/* ════════════════════════
   АКЦЕНТНЫЕ ЦВЕТА
   ════════════════════════ */

/* цена */
.price {
  color: var(--g-primary);
}

/* «светло-зелёный» текст (бывший #cef1f0) */
.green {
  color: var(--g-light);
}

/* процент выгоды */
.percents {
  color: var(--g-primary);
}

/* sale-offer */
.sale-offer {
  color: var(--g-light);
}

/* иконки в контактах */
.iconsc {
  color: var(--g-primary);
}

/* логотип — фон кружка */
.div-block-3 {
  background-color: var(--g-primary);
}

/* text-block-11 (число в слайдере) */
.text-block-11 {
  color: var(--g-light);
}

/* рамка «официальный представитель» */
.official {
  border-color: var(--g-light);
}

/* рамка «2 слоя» */
.text-block-16 {
  border-color: var(--g-light);
}

/* акцентная рамка в sale-блоке */
.text-block-26 {
  border-color: var(--g-light);
}

/* ════════════════════════
   ТЁМНЫЕ СЕКЦИИ
   (замена #4b4b4b / #31302f)
   ════════════════════════ */

.section-4  { background-color: var(--g-dark); }
.section-6  { background-color: var(--g-dark); }
.section-9  { background-color: var(--g-dark); }
.section-11 { background-color: #1f2e24; }
.column-5   { background-color: var(--g-dark); }
.contacts   { background-color: var(--g-dark); }

/* кружки характеристик */
.circle1 {
  background-color: var(--g-dark);
}
.circle1.woods {
  background-color: #3d5e48;
}

/* ════════════════════════
   НАВИГАЦИОННАЯ ПАНЕЛЬ
   (при скролле)
   ════════════════════════ */

.navigation-bar2 {
  background-color: var(--g-dark-nav);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.navigation-bar2.dark {
  background-color: rgba(31, 46, 36, 0.97);
}

/* мобильное выпадающее меню */
.navigation-menu._2 {
  background-color: var(--g-dark-nav);
}

/* ════════════════════════
   HOVER ССЫЛКИ
   ════════════════════════ */

.navigation-link:hover,
.btncall:hover,
.navigation-text:hover,
.link:hover,
.social:hover {
  color: var(--g-light);
}

/* ════════════════════════
   НАВИГАЦИЯ-ТОЧКИ НА HERO
   ════════════════════════ */

.div-block-4  { background-color: rgba(166, 197, 176, 0.22); }
.div-block-6  { background-color: rgba(166, 197, 176, 0.45); }
.div-block-7  { background-color: var(--g-light); }
.div-block-8  { background-color: var(--g-light); }
.div-block-10 { background-color: var(--g-light); }

/* ════════════════════════
   ФОРМЫ
   ════════════════════════ */

.form-field:focus {
  box-shadow: 0 0 0 2px var(--g-primary);
  outline: none;
}

.success-message,
.success-message-2 {
  background-color: #c6e8cc;
  color: #1a3b22;
}

/* ════════════════════════
   ВКЛАДКИ (герметизация)
   ════════════════════════ */

.tab-link.w--current {
  border-top-color: var(--g-primary);
  color: var(--g-primary);
}

/* ════════════════════════
   СЛАЙДЕР — кнопки
   ════════════════════════ */

.custom-prev2,
.custom-next2 {
  border-color: var(--g-light);
}

.custom-prev2 > svg > path,
.custom-next2 > svg > path {
  fill: var(--g-light);
}

/* ════════════════════════
   HERO OVERLAY — новое фото
   ════════════════════════ */

.section-2 {
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0.36), rgba(0,0,0,0.36)),
    url('../images/hero.jpg');
  background-position: 0 0, 50% 40%;
  background-size: auto, cover;
}

@supports (background-image: url('../images/hero.webp')) {
  .section-2 {
    background-image:
      linear-gradient(180deg, rgba(0,0,0,0.36), rgba(0,0,0,0.36)),
      url('../images/hero.webp');
  }
}

@media (max-width: 479px) {
  .section-2 {
    background-position: 0 0, 60% 40%;
  }
}

/* ════════════════════════
   ТИКЕР ЦИФР (мобилка)
   ════════════════════════ */

.numbers-ticker {
  display: none;
  background: #d4558a;
  overflow: hidden;
  padding: 14px 0;
}

@media (max-width: 991px) {
  .numbers-ticker { display: block; }
}

.numbers-ticker__track {
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  white-space: nowrap;
  animation: gnTicker 18s linear infinite;
}

@keyframes gnTicker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.numbers-ticker__item {
  color: #fff;
  font-size: 14px;
  font-family: 'Nunito', sans-serif;
}

.numbers-ticker__item b {
  font-size: 17px;
  font-weight: 700;
  margin-right: 3px;
}

.numbers-ticker__dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  flex-shrink: 0;
}

/* ════════════════════════
   HERO — офер со скидкой
   ════════════════════════ */

.hero-offer {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(166, 197, 176, 0.55);
  border-radius: 6px;
  backdrop-filter: blur(4px);
  clear: left;
  float: left;
}

.hero-offer__badge {
  display: inline-block;
  padding: 3px 10px;
  background: var(--g-primary);
  border-radius: 4px;
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.hero-offer__text {
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

@media (max-width: 479px) {
  .hero-offer {
    float: none;
    display: flex;
    width: calc(100% - 32px);
    margin-top: 16px;
    text-align: left;
  }
}

/* ════════════════════════
   HERO — дополнительные
   визуальные улучшения
   ════════════════════════ */

.heading {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

/* ════════════════════════════════════════════
   TRUST STRIP
   ════════════════════════════════════════════ */

.trust-strip {
  background: var(--g-pale);
  border-top: 1px solid #e6e6e6;
  border-bottom: 1px solid #e6e6e6;
  padding: 28px 0;
}
.trust-strip__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.trust-item { flex: 1; text-align: center; }
.trust-item__num {
  font-family: 'Lora', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--g-primary);
  line-height: 1.1;
}
.trust-item__label {
  font-size: 13px;
  color: #6b6b6b;
  margin-top: 4px;
  line-height: 1.3;
}
.trust-divider { width: 1px; height: 40px; background: #ddd; flex-shrink: 0; }
@media (max-width: 767px) {
  .trust-strip__grid { flex-wrap: wrap; gap: 20px; }
  .trust-item { flex: 1 1 40%; }
  .trust-divider { display: none; }
}
@media (max-width: 479px) { .trust-item { flex: 1 1 100%; } }

/* ════════════════════════════════════════════
   КАК МЫ РАБОТАЕМ
   ════════════════════════════════════════════ */

.section-process { padding: 90px 0 80px; background: #fff; }
.process-title {
  font-family: 'Lora', serif;
  font-size: 32px;
  font-weight: 700;
  color: #2a2a2a;
  text-align: center;
  margin: 0 0 52px;
}
.process-steps { display: flex; align-items: flex-start; }
.process-step {
  flex: 1;
  padding: 32px 28px;
  background: var(--g-pale);
  border: 1px solid #e6e6e6;
  border-radius: 8px;
}
.process-num {
  font-family: 'Lora', serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--g-light);
  line-height: 1;
  margin-bottom: 16px;
}
.process-name { display: block; font-size: 16px; font-weight: 700; color: #2a2a2a; margin-bottom: 10px; }
.process-desc { font-size: 14px; color: #6b6b6b; line-height: 1.6; margin: 0; }
.process-arrow { flex-shrink: 0; width: 40px; text-align: center; font-size: 22px; color: var(--g-light); padding-top: 52px; }
@media (max-width: 767px) {
  .process-steps { flex-direction: column; gap: 16px; }
  .process-arrow { transform: rotate(90deg); width: 100%; padding-top: 0; text-align: center; }
  .section-process { padding: 60px 0; }
  .process-title { font-size: 26px; margin-bottom: 32px; }
}

/* ════════════════════════════════════════════
   CTA: ПОЛУЧИТЬ РАСЧЁТ
   ════════════════════════════════════════════ */

.section-cta { background: var(--g-dark); padding: 80px 0; }
.cta-inner { display: flex; gap: 60px; align-items: center; }
.cta-left { flex: 1; }
.cta-title { font-family: 'Lora', serif; font-size: 36px; font-weight: 700; color: #fff; line-height: 1.25; margin: 0 0 16px; }
.cta-sub { color: #a6c5b0; font-size: 15px; line-height: 1.6; margin: 0 0 24px; }
.cta-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.cta-list li { color: #d4eadb; font-size: 14px; padding-left: 22px; position: relative; }
.cta-list li::before { content: '✓'; position: absolute; left: 0; color: var(--g-btn-to); font-weight: 700; }
.cta-right { flex: 0 0 380px; }
.cta-form { background: rgba(255,255,255,0.06); border: 1px solid rgba(166,197,176,0.3); border-radius: 10px; padding: 32px 28px; }
.cta-form-label { color: #a6c5b0; font-size: 12px; margin: 0 0 18px; text-align: center; text-transform: uppercase; letter-spacing: 0.8px; }
.cta-input {
  display: block; width: 100%; box-sizing: border-box;
  padding: 13px 16px; margin-bottom: 12px;
  border: 1px solid rgba(166,197,176,0.35); border-radius: 6px;
  background: rgba(255,255,255,0.08); color: #fff;
  font-family: 'Nunito', sans-serif; font-size: 15px;
  outline: none; transition: border-color 0.2s;
}
.cta-input::placeholder { color: rgba(255,255,255,0.4); }
.cta-input:focus { border-color: var(--g-light); }
.cta-btn {
  display: block; width: 100%; padding: 15px; margin-top: 4px;
  background: linear-gradient(90deg, var(--g-btn-from), var(--g-btn-to));
  border: none; border-radius: 6px; color: #fff;
  font-family: 'Nunito', sans-serif; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: opacity 0.2s;
}
.cta-btn:hover { opacity: 0.88; }
.cta-privacy { margin: 14px 0 0; font-size: 11px; color: rgba(255,255,255,0.35); text-align: center; line-height: 1.5; }
.cta-privacy a { color: rgba(255,255,255,0.5); text-decoration: underline; }
@media (max-width: 991px) {
  .cta-inner { gap: 36px; }
  .cta-right { flex: 0 0 300px; }
  .cta-title { font-size: 28px; }
}
@media (max-width: 767px) {
  .cta-inner { flex-direction: column; gap: 32px; }
  .cta-right { flex: 0 0 auto; width: 100%; }
  .section-cta { padding: 60px 0; }
  .cta-title { font-size: 24px; }
}

/* ════════════════════════════════════════════
   ЛАЙТБОКС (proekty.html)
   ════════════════════════════════════════════ */

#gnlb {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
}
#gnlb-backdrop { position: absolute; inset: 0; background: rgba(12,20,14,0.93); }
#gnlb-content { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; }
#gnlb-img {
  max-width: 80vw; max-height: 88vh;
  border-radius: 4px; object-fit: contain;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6); display: block;
}
#gnlb-close, #gnlb-prev, #gnlb-next {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%; color: #fff; cursor: pointer;
  font-size: 20px; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background 0.2s; user-select: none;
}
#gnlb-close:hover, #gnlb-prev:hover, #gnlb-next:hover { background: rgba(255,255,255,0.25); }
#gnlb-close { position: absolute; top: -52px; right: 0; font-size: 26px; }
@media (max-width: 479px) {
  #gnlb-img { max-width: 96vw; }
  #gnlb-prev, #gnlb-next { display: none; }
}

/* ════════════════════════════════════════════
   АДАПТИВНОСТЬ
   ════════════════════════════════════════════ */

/* ── Планшет ── */
@media (max-width: 991px) {
  .section-3,
  .section-5,
  .section-7,
  .section-8 {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .section-4 {
    padding-top: 60px;
    padding-bottom: 70px;
  }

  .textblock {
    font-size: 20px;
    line-height: 32px;
  }

  .paddingsft {
    padding: 60px 40px 60px 30px;
  }

  .paddingsft._2,
  .paddingsft._3 {
    padding-right: 40px;
    padding-left: 30px;
  }
}

/* ── Мобильный (≤767px) ── */
@media (max-width: 767px) {
  .section-3  { padding-top: 70px; padding-bottom: 70px; }
  .section-4  { padding-top: 50px; padding-bottom: 60px; }
  .section-5  { padding-top: 70px; padding-bottom: 70px; }
  .section-7  { padding-top: 70px; padding-bottom: 70px; }
  .section-8  { padding-top: 80px; padding-bottom: 70px; }
  .section-f2 { padding-bottom: 70px; }

  .textblock {
    font-size: 18px;
    line-height: 28px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .paddingsft,
  .paddingsft._2,
  .paddingsft._3 {
    padding: 50px 24px 50px 24px;
    max-width: 100%;
    margin-left: 0;
    float: none;
  }

  .headeruslugi {
    font-size: 26px;
    line-height: 36px;
  }

  .price {
    font-size: 22px;
    margin-top: 28px;
    margin-bottom: 28px;
  }

  .buttonuslugi {
    padding-left: 24px;
    text-align: left;
  }

  /* секция «о компании» */
  .column {
    padding-left: 24px;
    padding-top: 30px;
  }

  /* раздел сравнения GNature vs обычная краска */
  .row-2 {
    height: auto;
    flex-direction: column;
  }

  .column-7,
  .column-8 {
    min-height: 260px;
    border: none;
  }

  /* герметизация — колонки */
  .column-9 {
    height: auto;
    padding-bottom: 40px;
  }
  .column-10 {
    height: auto;
    padding-bottom: 40px;
  }

  .paragraph-3 {
    margin-right: 0;
    margin-left: 0;
    position: static;
    float: none;
    max-width: 100%;
  }

  /* footer */
  .column-17 {
    padding-top: 30px;
  }
}

/* ── Малые мобильные (≤479px) ── */
@media (max-width: 479px) {
  .heading {
    font-size: 24px;
    line-height: 34px;
  }

  .paragraph {
    font-size: 15px;
    line-height: 24px;
  }

  .section-3  { padding-top: 60px; padding-bottom: 60px; }
  .section-4  { padding-top: 40px; padding-bottom: 50px; }
  .section-7  { padding-top: 60px; padding-bottom: 60px; }
  .section-8  { padding-top: 60px; padding-bottom: 60px; }

  .textblock {
    font-size: 16px;
    line-height: 26px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .paddingsft,
  .paddingsft._2,
  .paddingsft._3 {
    padding: 36px 16px;
  }

  .headeruslugi {
    font-size: 22px;
    line-height: 32px;
  }

  .price {
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  /* скрыть тяжёлые декоративные кружки на телефоне */
  .circle1._3-1,
  .circle1._3-2,
  .circle1._3-3,
  .circle1._3-4,
  .circle1.middle,
  .circle1._4-1,
  .circle1._4-2,
  .circle1._4-3 {
    display: none;
  }

  .sale {
    padding-top: 30px;
  }

  .sale-1-header {
    font-size: 24px;
    line-height: 32px;
  }

  .form-head-cost {
    font-size: 18px;
    line-height: 26px;
  }

  .width {
    padding-right: 12px;
    padding-left: 12px;
  }

  /* контакты на малом экране */
  .contacts {
    padding: 30px 20px;
  }

  .map {
    height: 300px;
  }
}

/* ── Минимальный touch-target для навигации ── */
.navigation-link,
.btncall,
.buttonuslugi,
.button-3,
.button-sale,
.projects,
.call-submit-button {
  min-height: 44px;
}

/* ── Плавные переходы для интерактивных элементов ── */
.navigation-link,
.btncall,
.link,
.social,
.navigation-text,
.button-color {
  transition: color 0.2s ease;
}

/* ════════════════════════
   ШИРОКАЯ СЕТКА
   1190px → 1400px
   ════════════════════════ */

/* Основной контейнер */
.width {
  max-width: 1400px;
  padding-right: 40px;
  padding-left: 40px;
}

/* Героический текстовый блок — больше простора слева */
.div-block-2 {
  margin-left: 120px;
  max-width: 760px;
}

/* Боковые элементы hero — немного правее */
.navigation {
  margin-right: 80px;
}

.official {
  margin-right: 80px;
}

/* На планшете возвращаем стандартные отступы контейнера */
@media (max-width: 991px) {
  .width {
    padding-right: 24px;
    padding-left: 24px;
  }

  .div-block-2 {
    margin-left: 30px;
    max-width: 100%;
  }

  .navigation {
    margin-right: 30px;
  }

  .official {
    margin-right: 30px;
  }
}

@media (max-width: 767px) {
  .width {
    padding-right: 16px;
    padding-left: 16px;
  }

  .div-block-2 {
    width: 90%;
    margin-left: 20px;
  }
}

@media (max-width: 479px) {
  .width {
    padding-right: 12px;
    padding-left: 12px;
  }

  .div-block-2 {
    width: 100%;
    margin-left: 0;
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ── prefers-reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
