/* ============================= */
/*            BASE               */
/* ============================= */
body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: #ffffff;
}

/* ============================= */
/*            HERO               */
/* ============================= */
header.hero {
  height: 90vh;              /* ❗ НЕ min-height */
  max-height: 100vh;
  background: url("nero/hero.jpg") center / cover no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;          /* ❗ КРИТИЧНО */
}

header.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.35) 45%,
    rgba(0,0,0,0.0) 75%
  );
  z-index: 1;
}

.hero-inner {
  max-width: 1100px;
  margin: auto;
  padding: 120px 20px 80px;
  color: #ffffff;
  position: relative;
  z-index: 2;
}

/* ============================= */
/*        HERO BRAND LINE         */
/* ============================= */
.hero-brandline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.hero-logo {
  height: 94px;
  width: auto;
}

.hero-brand-text {
  font-weight: 700;
  font-size: 52px;
  letter-spacing: 0.6px;
  line-height: 1.1;
  color: #e6c27a;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-phone {
  color: #ffd400;
  font-weight: 600;
  font-size: 28px;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255,255,255,0.85);
  text-shadow: 0 2px 6px rgba(0,0,0,0.45);
}

/* ============================= */
/*           HERO TEXT            */
/* ============================= */
.hero h1 {
  font-size: 42px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  max-width: 600px;
}

/* ============================= */
/*            BUTTONS             */
/* ============================= */
.hero-buttons {
  margin-top: 30px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  margin-right: 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.btn.primary {
  background: #d6a653;
  color: #000;
}

.btn.secondary {
  border: 2px solid #d6a653;
  color: #ffffff;
  background: rgba(0,0,0,0.35);
}

.btn.secondary:hover {
  background: #d6a653;
  color: #000;
}

/* ============================= */
/*       BACKGROUND SECTIONS      */
/* ============================= */
.section-bg {
  padding: 80px 20px;
  background-size: cover;
  background-position: center;
  color: #fff;
}

.section-bg .content {
  background: rgba(0, 0, 0, 0.45);
  padding: 32px 36px;
  border-radius: 12px;
  backdrop-filter: blur(2px);
}

.bg-why {
  background-image: url("images/photo5.jpg");
}

.bg-process {
  background-image: url("images/photo6.jpg");
}

/* ============================= */
/*        TARIFFS – PREMIUM      */
/* ============================= */
.tariffs {
  padding: 100px 20px;
  background: #0f1113;
  text-align: center;
}

.tariffs h2 {
  font-size: 36px;
  color: #ffffff;
  margin-bottom: 14px;
}

.tariff-grid {
  max-width: 1200px;
  margin: 50px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.tariff-card {
  padding: 38px 32px;
  border-radius: 22px;
  text-align: left;
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(145deg, #1a1d20, #0d0f11);
  box-shadow:
    0 30px 70px rgba(0,0,0,0.6),
    inset 0 0 0 1px rgba(255,255,255,0.05);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.tariff-card:hover {
  transform: translateY(-6px);
}

.tariff-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.tariff-card .price {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 14px;
  color: #d6a653;
}

.tariff-card p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
}

/* ============================= */
/*        REQUEST FORM            */
/* ============================= */
.request-section {
  padding: 80px 20px;
  background-color: #f5f1e8;
}

.request-container {
  max-width: 720px;
  margin: 0 auto;
  background: #ffffff;
  padding: 50px 40px;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

/* ============================= */
/*        VIDEO WORKS             */
/* ============================= */
.works {
  position: relative;
  padding: 90px 20px;
  background: #0f1113;
  text-align: center;
  color: #ffffff;
}

.works-video {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 56.25%;
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
}

.works-video img,
.works-video video,
.works-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================= */
/*        REQUEST FORM – FIX     */
/* ============================= */

.request-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.request-form input,
.request-form textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #dcdcdc;
  color: #1a1a1a;
  background: #ffffff;
}

.request-form textarea {
  min-height: 120px;
  resize: vertical;
}

.request-button {
  width: fit-content;
  padding: 14px 28px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 8px;
  background: #d6a653;
  color: #000;
  border: none;
  cursor: pointer;
}

.request-title {
  color: #1a1a1a;
}

.request-subtitle,
.request-instant {
  color: #333333;
}


/* ============================= */
/*        VIDEO WORKS – FIX      */
/* ============================= */

.works {
  position: relative;
  overflow: hidden;
}

.works::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(255,255,255,0.04) 0%,
    rgba(0,0,0,0.9) 70%
  );
  pointer-events: none;
}

.works > * {
  position: relative;
  z-index: 1;
}

.works-video {
  box-shadow:
    0 35px 80px rgba(0,0,0,0.75),
    inset 0 0 0 1px rgba(255,255,255,0.06);
}

/* Play button */
.play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #d6a653;
  border: none;
  cursor: pointer;
  box-shadow: 0 12px 35px rgba(214,166,83,0.45);
}

.play-btn::before {
  content: "";
  position: absolute;
  left: 34px;
  top: 26px;
  border-style: solid;
  border-width: 16px 0 16px 24px;
  border-color: transparent transparent transparent #000;
}

/* Mobile */
@media (max-width: 768px) {
  .works-video {
    padding-top: 62%;
  }
  .play-btn {
    width: 64px;
    height: 64px;
  }
  .play-btn::before {
    left: 26px;
    top: 20px;
    border-width: 12px 0 12px 18px;
  }
}

/* ============================= */
/*      CONTACTS FINAL BLOCK     */
/* ============================= */

.contacts-final {
  padding: 90px 20px;
  background: #0b0d10;
  color: #ffffff;
}

.contacts-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.contacts-logo {
  height: 80px;
  margin-bottom: 16px;
}

.contacts-brand h3 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #d6a653;
}

.contacts-desc {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
}

.contacts-info {
  text-align: center;
}

.contacts-phone a {
  font-size: 28px;
  font-weight: 700;
  color: #ffd400;
  text-decoration: none;
}

.contacts-note {
  margin-top: 14px;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
}

.contacts-masters h4 {
  font-size: 22px;
  margin-bottom: 12px;
}

.contacts-masters p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 18px;
  color: rgba(255,255,255,0.8);
}

/* Mobile */
@media (max-width: 900px) {
  .contacts-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .contacts-masters {
    margin-top: 20px;
  }
}

/* ============================= */
/*   MOBILE (FINAL & CLEAN)     */
/* ============================= */
@media (max-width: 768px) {

  html, body {
    overflow-x: hidden;
  }

  /* HERO */
  header.hero {
    min-height: auto;
  }

  .hero-inner {
    max-width: 100%;
    padding: 32px 16px 40px;
  }

  .hero-brandline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    margin-bottom: 20px;
  }

  .hero-logo {
    height: 56px;
  }

  .hero-brand-text {
    font-size: 22px;
    line-height: 1.2;
    white-space: normal;
  }

  .hero-phone {
    font-size: 16px;
    white-space: nowrap;
  }

  header.hero h1 {
    font-size: 26px;
    line-height: 1.3;
    margin-bottom: 16px;
  }

  /* BUTTONS — КЛЮЧ */
  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin-right: 0;
    text-align: center;
  }

  /* TARIFFS */
  .tariff-grid {
    grid-template-columns: 1fr;
  }

  /* FORMS */
  .request-container {
    padding: 24px 16px;
  }

  .request-form input,
  .request-form textarea,
  .request-button {
    width: 100%;
  }

  /* CONTACTS */
  .contacts-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* ============================= */
/*  MOBILE GRID KILL FIX (SAFE) */
/* ============================= */
@media (max-width: 768px) {

  /* 🔥 ТАРИФЫ — УБИВАЕМ GRID НА МОБИЛКЕ */
  .tariff-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .tariff-card {
    width: 100% !important;
  }
}

/* ============================= */
/*   MOBILE HERO EMERGENCY FIX   */
/* ============================= */
@media (max-width: 768px) {
  
  /* СБРАСЫВАЕМ ВСЕ ФЛЕКСЫ И ГРИДЫ В ГЕРОЕ */
  header.hero .hero-inner {
    display: block !important;
    width: 100% !important;
  }
  
  /* 1. БРЕНД-ЛИНИЯ - ЖЕСТКИЙ ФИКС */
  .hero-brandline {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 24px !important;
  }
  
  .hero-logo {
    display: block !important;
    margin: 0 auto 12px !important;
    height: 60px !important;
    max-width: 100% !important;
  }
  
  .hero-brand-text {
    display: block !important;
    font-size: 24px !important;
    line-height: 1.3 !important;
    margin-bottom: 8px !important;
    text-align: center !important;
    width: 100% !important;
  }
  
  .hero-phone {
    display: block !important;
    font-size: 18px !important;
    text-align: center !important;
    margin-top: 4px !important;
  }
  
  /* 2. ЗАГОЛОВОК И ТЕКСТ */
  .hero h1 {
    display: block !important;
    width: 100% !important;
    font-size: 28px !important;
    line-height: 1.4 !important;
    margin: 20px 0 16px !important;
    text-align: center !important;
  }
  
  .hero p {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    margin-bottom: 24px !important;
  }
  
  /* 3. КНОПКИ - ОКОНЧАТЕЛЬНЫЙ ФИКС */
  .hero-buttons {
    display: block !important;
    width: 100% !important;
    margin-top: 30px !important;
  }
  
  .hero-buttons a.btn {
    display: block !important;
    width: 100% !important;
    margin: 0 0 12px 0 !important;
    padding: 18px 20px !important;
    font-size: 18px !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
  
  /* УДАЛЯЕМ ВСЕ ПРАВЫЕ ОТСТУПЫ У КНОПОК */
  .hero-buttons a.btn:last-child {
    margin-bottom: 0 !important;
  }
}

/* ============================= */
/*  FORCE MOBILE LAYOUT (SUPREME)*/
/* ============================= */
@media (max-width: 768px) {
  /* НУЛЕВАЕМ ВСЕ ВОЗМОЖНЫЕ КОНФЛИКТЫ */
  header.hero,
  header.hero *,
  .hero-inner,
  .hero-inner * {
    float: none !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  
  /* ГАРАНТИРУЕМ БЛОЧНОСТЬ */
  .hero-brandline,
  .hero h1,
  .hero p,
  .hero-buttons {
    float: none !important;
    clear: both !important;
    display: block !important;
  }
  
  /* ЦЕНТРИРОВАНИЕ ВСЕГО */
  .hero-brandline > *,
  .hero h1,
  .hero p,
  .hero-buttons {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* ============================= */
/*   MOBILE HERO FINAL (HTML FIX) */
/* ============================= */
@media (max-width: 768px) {
  /* ЖЁСТКИЙ СБРОС */
  .hero-inner {
    max-width: 100% !important;
    padding: 32px 16px 40px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  
  /* БРЕНД-ЛИНИЯ */
  .hero-brandline {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    text-align: center !important;
    width: 100% !important;
    margin-bottom: 24px !important;
  }
  
  .hero-logo {
    height: 56px !important;
    max-width: 100% !important;
  }
  
  .hero-brand-text {
    font-size: 22px !important;
    line-height: 1.3 !important;
    text-align: center !important;
    width: 100% !important;
  }
  
  .hero-phone {
    font-size: 16px !important;
    text-align: center !important;
  }
  
  /* КНОПКИ */
  .hero-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    margin-top: 24px !important;
    align-items: center !important;
  }
  
  .hero-buttons .btn {
    width: 100% !important;
    max-width: 300px !important;
    margin: 0 !important;
    text-align: center !important;
    padding: 16px 20px !important;
  }
}

/* ============================= */
/* ANDROID FINAL FIX (CRITICAL)  */
/* ============================= */
@media (max-width: 768px) {

  /* 🔥 ГАСИМ ANDROID-ПЕРЕПОЛНЕНИЕ */
  body {
    overflow-x: hidden !important;
  }

  /* ТАРИФЫ — ТОЛЬКО КОЛОНКА */
  .tariff-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .tariff-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
}

/* ============================= */
/* ANDROID ABSOLUTE FINAL FIX    */
/* ============================= */
@media (max-width: 768px) {

  body {
    overflow-x: hidden !important;
  }

  /* ТАРИФЫ — УБИВАЕМ GRID */
  .tariff-grid {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* КАРТОЧКА — ЖЁСТКАЯ ШИРИНА */
  .tariff-card {
    display: block !important;
    width: calc(100vw - 32px) !important; /* 🔥 КЛЮЧ */
    max-width: calc(100vw - 32px) !important;
    margin: 0 auto 16px !important;
    box-sizing: border-box !important;
  }
}

/* ============================= */
/* CHROME ANDROID TARIFF FIX     */
/* ============================= */
@media (max-width: 768px) {

  /* Chrome Android bugfix */
  html, body {
    overflow-x: hidden;
  }

  /* УБИРАЕМ GRID ТОЛЬКО НА МОБИЛЕ */
  .tariff-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    padding: 0 16px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .tariff-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
}

