/* css/style.css — ПОЛНЫЙ ФАЙЛ СТИЛЕЙ ДЛЯ ВСЕГО САЙТА */
/* =============================================
   ОСНОВНЫЕ ПЕРЕМЕННЫЕ (цвета, отступы, шрифты)
   ============================================= */
:root {
  /* Цветовая палитра от логотипа */
  --color-sand:    #c8a96e;
  --color-brown:   #3b2a1a;
  --color-black:   #1a1008;
  --color-cream:   #faf6ef;
  --color-green:   #4a7c3f;
  --color-green-light: #d4ead0;
  
  /* Акцентные цвета */
  --color-primary:   var(--color-green);
  --color-primary-dark: #335a2c;
  --color-text:      var(--color-brown);
  --color-text-muted:#6b5540;
  --color-border:    #ddd0bb;
  --color-white:     #ffffff;
  
  /* Тени */
  --shadow-sm: 0 2px 8px rgba(58,42,26,0.08);
  --shadow-md: 0 6px 20px rgba(58,42,26,0.12);
  --shadow-lg: 0 12px 32px rgba(58,42,26,0.16);
  
  /* Скругления */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  
  /* Шрифты (системные) */
  --font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

/* =============================================
   ГЛОБАЛЬНЫЕ СБРОСЫ И БАЗА
   ============================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background-color: var(--color-cream);
  line-height: 1.5;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =============================================
   ТИПОГРАФИКА
   ============================================= */
.section {
  padding: 80px 0;
}

.section__header {
  text-align: center;
  margin-bottom: 48px;
}

.section__badge {
  display: inline-block;
  background: var(--color-green-light);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--color-brown);
  margin-bottom: 12px;
}

.section__subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* =============================================
   КНОПКИ
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn--primary {
  background: var(--color-primary);
  color: white;
  padding: 12px 28px;
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--large {
  padding: 16px 36px;
  font-size: 1.1rem;
}

.btn--full {
  width: 100%;
}

/* =============================================
   ХЕДЕР (ЛИПКИЙ) — увеличенная высота под логотип 150px
   ============================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: white;
  border-bottom: 2px solid var(--color-sand);
  box-shadow: var(--shadow-sm);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100px;
  padding-top: 12px;
  padding-bottom: 12px;
}

/* Логотип 150x150px */
.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.header__logo-img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  border-radius: 50%;
}

/* Бренд (текст рядом с логотипом) */
.header__brand {
  display: flex;
  flex-direction: column;
}

.header__brand-name {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--color-brown);
  white-space: nowrap;
}

.header__brand-name span {
  color: var(--color-primary);
}

.header__brand-tagline {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Десктопная навигация */
.nav {
  display: flex;
  gap: 12px;
  margin: 0 20px;
}

.nav__link {
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--color-text);
  transition: background 0.2s, color 0.2s;
  font-size: 1rem;
}

.nav__link:hover {
  background: var(--color-green-light);
  color: var(--color-primary);
}

/* Правая панель: мессенджеры + телефон */
.header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

/* Мессенджеры */
.messengers {
  display: flex;
  align-items: center;
  gap: 10px;
}

.messengers__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: transform 0.2s;
}

.messengers__link:hover {
  transform: scale(1.05);
}

.icon {
  width: 28px;
  height: 28px;
}

.icon--tg { color: #229ED9; }
.icon--wa { color: #25D366; }

/* Защищённый номер телефона */
.phone-protected {
  display: flex;
  align-items: center;
}

.phone-protected__btn {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.phone-protected__btn:hover {
  background: var(--color-primary-dark);
}

.phone-protected__link {
  font-weight: 700;
  color: var(--color-primary-dark);
  text-decoration: none;
  font-size: 1rem;
  white-space: nowrap;
}

.hidden {
  display: none !important;
}

/* Бургер-меню (мобильное) */
.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: 12px;
}

.burger__line {
  width: 28px;
  height: 3px;
  background: var(--color-brown);
  transition: 0.2s;
  border-radius: 2px;
}

.burger.open .burger__line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.burger.open .burger__line:nth-child(2) {
  opacity: 0;
}

.burger.open .burger__line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Мобильное меню */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: white;
  border-top: 1px solid var(--color-border);
  padding: 20px;
  position: absolute;
  width: 100%;
  left: 0;
  box-shadow: var(--shadow-md);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-menu__link {
  font-weight: 600;
  font-size: 1.1rem;
  padding: 12px 8px;
  text-decoration: none;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-sand);
}

.mobile-menu__messengers {
  display: flex;
  gap: 24px;
  margin-top: 20px;
  justify-content: center;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.mobile-menu__messengers a {
  text-decoration: none;
  font-weight: 600;
  color: var(--color-primary);
}

/* =============================================
   ГЕРОЙ (HERO)
   ============================================= */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-black) 0%, var(--color-brown) 100%);
  color: white;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: url('https://picsum.photos/id/104/1920/800') center/cover no-repeat;
  opacity: 0.25;
  mix-blend-mode: overlay;
}

.hero__container {
  position: relative;
  z-index: 2;
}

.hero__title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero__title span {
  color: var(--color-sand);
}

.hero__subtitle {
  font-size: 1.2rem;
  margin-bottom: 32px;
  opacity: 0.9;
  max-width: 600px;
}

.hero__features {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

/* =============================================
   УСЛУГИ (SERVICES)
   ============================================= */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.service-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-card__icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.service-card__title {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--color-brown);
}

.service-card__desc {
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.service-card__list {
  list-style: none;
  padding-left: 0;
}

.service-card__list li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.service-card__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* =============================================
   ЦЕНЫ (PRICING)
   ============================================= */
.pricing {
  background: var(--color-brown);
  color: white;
}

.pricing .section__title,
.pricing .section__subtitle {
  color: white;
}

.pricing .section__badge {
  background: rgba(74,124,63,0.3);
  color: var(--color-green-light);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.price-card {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.12);
  transition: transform 0.2s, background 0.2s;
}

.price-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.12);
}

.price-card__service {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.price-card__price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-sand);
  margin: 12px 0 4px;
}

.price-card__note {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-bottom: 16px;
}

.price-card__details {
  list-style: none;
  font-size: 0.85rem;
  opacity: 0.85;
}

.price-card__details li {
  margin-bottom: 6px;
  padding-left: 18px;
  position: relative;
}

.price-card__details li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-sand);
}

.pricing__disclaimer {
  text-align: center;
  background: rgba(0,0,0,0.2);
  padding: 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
}

/* =============================================
   ПОРТФОЛИО (ДО/ПОСЛЕ) + ЛАЙТБОКС
   ============================================= */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.compare-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.compare-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.compare-card__images {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.compare-card__before,
.compare-card__after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.compare-card__after {
  opacity: 0;
}

.compare-card:hover .compare-card__after {
  opacity: 1;
}

.compare-card__caption {
  padding: 12px;
  font-weight: 600;
  text-align: center;
  background: white;
}

/* Лайтбокс */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  visibility: hidden;
  opacity: 0;
  transition: 0.2s;
}

.lightbox.active {
  visibility: visible;
  opacity: 1;
}

.lightbox__image {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  transition: transform 0.2s;
}

.lightbox__close:hover {
  transform: scale(1.1);
}

.lightbox__caption {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  color: white;
  background: rgba(0,0,0,0.6);
  padding: 8px;
  width: fit-content;
  margin: 0 auto;
  border-radius: 40px;
}

/* =============================================
   ТЕХНИКА (EQUIPMENT)
   ============================================= */
.equipment__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.equipment-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s, transform 0.2s;
}

.equipment-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.equipment-card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.equipment-card__body {
  padding: 20px;
}

.equipment-card__title {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--color-brown);
}

.equipment-card__spec {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* =============================================
   КОНТАКТЫ И ФОРМА
   ============================================= */
.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contacts__title {
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: var(--color-brown);
}

.contacts__desc {
  margin-bottom: 28px;
  color: var(--color-text-muted);
}

.contacts__messengers {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.contacts__messenger-link {
  display: flex;
  align-items: baseline;
  gap: 12px;
  background: white;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  border: 1px solid var(--color-border);
  transition: border-color 0.2s, transform 0.2s;
}

.contacts__messenger-link:hover {
  border-color: var(--color-primary);
  transform: translateX(4px);
}

.contacts__messenger-link span {
  font-weight: 700;
  color: var(--color-primary);
}

.contacts__phone {
  margin-bottom: 24px;
}

.contacts__hours {
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Форма */
.form {
  background: white;
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: opacity 0.3s;
}

.form.hidden {
  display: none;
}

.form__group {
  margin-bottom: 20px;
}

.form__group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.85rem;
  color: var(--color-brown);
}

.form__group input,
.form__group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  transition: border-color 0.2s;
}

.form__group input:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(74,124,63,0.1);
}

.form__note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 16px;
}

.form-success {
  text-align: center;
  padding: 32px;
  background: var(--color-green-light);
  border-radius: var(--radius-lg);
  font-weight: 700;
  color: var(--color-primary-dark);
}

.form-success.hidden {
  display: none;
}

/* =============================================
   ФУТЕР
   ============================================= */
.footer {
  background: var(--color-black);
  color: rgba(255,255,255,0.6);
  padding: 48px 0 32px;
}

.footer__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.2rem;
  color: white;
}

.footer__brand img {
  border-radius: 50%;
}

.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--color-sand);
}

.footer__legal p {
  margin-bottom: 6px;
  font-size: 0.75rem;
}

/* =============================================
   ПЛАВАЮЩАЯ КНОПКА (опционально)
   ============================================= */
.floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}

.floating-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s;
}

.floating-btn:hover {
  transform: scale(1.1);
}

.floating-btn--tg {
  background: #229ED9;
}

.floating-btn--wa {
  background: #25D366;
}

.floating-btn svg {
  width: 28px;
  height: 28px;
  fill: white;
}

/* =============================================
   АДАПТИВНОСТЬ (ПЛАНШЕТЫ И ТЕЛЕФОНЫ)
   ============================================= */
@media (max-width: 1024px) {
  .nav {
    gap: 8px;
    margin: 0 12px;
  }
  
  .nav__link {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
  
  .header__brand-name {
    font-size: 1.2rem;
  }
  
  .header__brand-tagline {
    font-size: 0.7rem;
  }
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }
  
  .burger {
    display: flex;
  }
  
  .header__container {
    min-height: 120px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  
  .header__logo-img {
    width: 100px;
    height: 100px;
  }
  
  .header__brand {
    display: none;
  }
  
  .header__actions {
    gap: 12px;
  }
  
  .messengers {
    gap: 6px;
  }
  
  .messengers__link {
    width: 38px;
    height: 38px;
  }
  
  .icon {
    width: 22px;
    height: 22px;
  }
  
  .phone-protected__btn {
    padding: 8px 14px;
    font-size: 0.85rem;
  }
  
  .contacts__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer__grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer__links {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .header__container {
    min-height: 90px;
  }
  
  .header__logo-img {
    width: 70px;
    height: 70px;
  }
  
  .messengers {
    display: none;
  }
  
  .phone-protected__btn {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
  
  .hero__features {
    justify-content: center;
    text-align: center;
  }
  
  .hero__title {
    text-align: center;
  }
  
  .hero__subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  
  .btn--large {
    width: 100%;
    text-align: center;
  }
  
  .services__grid {
    gap: 20px;
  }
  
  .service-card {
    padding: 20px;
  }
  
  .pricing__grid {
    gap: 16px;
  }
  
  .price-card {
    padding: 20px;
  }
  
  .form {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .header__logo-img {
    width: 55px;
    height: 55px;
  }
  
  .phone-protected__btn {
    padding: 5px 10px;
    font-size: 0.7rem;
  }
  
  .section__title {
    font-size: 1.4rem;
  }
  
  .portfolio__grid {
    grid-template-columns: 1fr;
  }
  
  .equipment__grid {
    grid-template-columns: 1fr;
  }
}