/* =============================================
   HĀSCLEAN v2 — LIGHT THEME ONLY
   Flat style, white + blue + yellow accent
   Dense, corporate, no dark mode
   ============================================= */

/* --- TOKENS --- */
:root {
  /* Brand colors */
  --c-white: #ffffff;
  --c-bg: #f5f7fa;
  --c-bg-alt: #ebf0f8;
  --c-border: #d0d9e8;
  --c-divider: #e2e8f3;

  /* Navy blue — primary */
  --c-blue-dark: #1a4f8a;
  --c-blue: #2563b0;
  --c-blue-hover: #1a4f8a;
  --c-blue-light: #dbe8f8;
  --c-blue-bg: #eef4fd;

  /* Yellow — accent CTA */
  --c-yellow: #f5b800;
  --c-yellow-hover: #dda400;
  --c-yellow-text: #2a2000;

  /* Text */
  --c-text: #1b2333;
  --c-text-mid: #4a5568;
  --c-text-muted: #718096;
  --c-text-faint: #a0aec0;

  /* Geometry */
  --radius-sm: 3px;
  --radius-md: 5px;
  --radius-lg: 8px;

  --shadow-card:
    0 1px 4px rgba(26, 50, 100, 0.1), 0 2px 12px rgba(26, 50, 100, 0.07);
  --shadow-btn: 0 2px 6px rgba(26, 50, 100, 0.18);

  /* Spacing */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;

  /* Type */
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Source Sans 3", "Arial", sans-serif;
  --text-xs: 13px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-md: 18px;
  --text-lg: 22px;
  --text-xl: 28px;
  --text-2xl: 38px;
}

/* --- RESET --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--c-text);
  background: var(--c-white);
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
}
img,
svg {
  display: block;
  max-width: 100%;
}
p {
  max-width: 72ch;
}

/* --- LAYOUT --- */
.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

.section {
  padding-block: clamp(40px, 6vw, 72px);
}

/* --- TYPOGRAPHY HELPERS --- */
.section-header {
  margin-bottom: var(--sp-8);
}
.section-header--left {
  text-align: left;
}

.section-label-bar {
  display: inline-block;
  width: 40px;
  height: 4px;
  background: var(--c-yellow);
  border-radius: 2px;
  margin-bottom: var(--sp-3);
}

.section-title {
  font-family: var(--font-head);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--c-blue-dark);
  line-height: 1.2;
  margin-bottom: var(--sp-2);
}

.section-subtitle {
  color: var(--c-text-muted);
  font-size: var(--text-base);
  margin-top: var(--sp-2);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 11px 24px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
  white-space: nowrap;
  text-transform: uppercase;
}

.btn--accent {
  background: var(--c-yellow);
  color: var(--c-yellow-text);
  border-color: var(--c-yellow);
  box-shadow: var(--shadow-btn);
}
.btn--accent:hover {
  background: var(--c-yellow-hover);
  border-color: var(--c-yellow-hover);
}

.btn--blue {
  background: var(--c-blue);
  color: var(--c-white);
  border-color: var(--c-blue);
}
.btn--blue:hover {
  background: var(--c-blue-hover);
  border-color: var(--c-blue-hover);
}

.btn--outline {
  background: transparent;
  color: var(--c-blue);
  border-color: var(--c-blue);
}
.btn--outline:hover {
  background: var(--c-blue-bg);
}

.btn--lg {
  padding: 14px 32px;
  font-size: var(--text-base);
}

/* --- HEADER --- */
.header__topbar {
  background: var(--c-blue-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-xs);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  height: 36px;
  flex-wrap: wrap;
}

.topbar__item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.topbar__item a {
  color: rgba(255, 255, 255, 0.85);
}
.topbar__item a:hover {
  color: #fff;
  text-decoration: underline;
}

.header__main {
  background: var(--c-white);
  border-bottom: 2px solid var(--c-blue-dark);
  transition: box-shadow 0.2s;
}
.header__main.scrolled {
  box-shadow: 0 2px 12px rgba(26, 50, 100, 0.13);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  height: 68px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
  text-decoration: none;
}
.logo__text-block {
  display: flex;
  flex-direction: column;
}

.logo__name-hero {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--c-blue-dark);
  line-height: 1;
}

.logo__name {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--c-white);
  line-height: 1;
}
.logo__sub {
  font-size: 11px;
  color: var(--c-text-muted);
  font-weight: 400;
  letter-spacing: 0.03em;
  margin-top: 2px;
}
.logo--sm .logo__name {
  font-size: 18px;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-inline-start: auto;
}
.nav__link {
  padding: 6px 14px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-text);
  border-radius: var(--radius-sm);
  transition:
    background 0.15s,
    color 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.nav__link:hover {
  background: var(--c-blue-bg);
  color: var(--c-blue-dark);
}

.header__cta {
  margin-inline-start: var(--sp-4);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  margin-inline-start: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-blue-dark);
  border-radius: 2px;
  transition: all 0.2s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: var(--sp-4) var(--sp-6) var(--sp-6);
  background: var(--c-white);
  border-top: 1px solid var(--c-divider);
  gap: var(--sp-1);
}
.nav-mobile.is-open {
  display: flex;
}
.nav-mobile__link {
  padding: var(--sp-3) var(--sp-2);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-divider);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --- HERO --- */
.hero {
  position: relative;
  color: white;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(420px, 56vw, 640px);
  padding-block: clamp(48px, 7vw, 100px);
  background: var(--c-blue-dark);
}

.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--c-blue-dark);
  overflow: hidden;
}

/* ПК: видео ЦЕЛИКОМ, без crop / zoom */
.hero__video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain; /* не cover */
  object-position: right center;
  transform: none; /* без scale */
}

.hero__video-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    90deg,
    var(--c-blue-dark) 0%,
    var(--c-blue-dark) 47%,
    rgba(26, 79, 138, 0.75) 55%,
    rgba(26, 79, 138, 0.2) 65%,
    rgba(26, 79, 138, 0) 70%
  );
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__text {
  max-width: 560px;
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  color: white;
  line-height: 1.1;
  margin-bottom: var(--sp-5);
}

.hero__desc {
  font-size: var(--text-md);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
  margin-bottom: var(--sp-8);
  max-width: 52ch;
}

.hero__desc strong {
  color: white;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.hero__actions .btn--outline {
  color: white;
  border-color: white;
  background: transparent;
}

.hero__actions .btn--outline:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border-color: white;
}

/* ===== ТОЛЬКО ТЕЛЕФОН / УЗКИЙ ЭКРАН ===== */
@media (max-width: 900px) {
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: auto;
    padding: 0; /* без отступов сверху — видео сразу под header */
    background: var(--c-blue-dark);
  }

  /* 1) Видео сразу после header */
  .hero__video-wrap {
    position: relative; /* больше не absolute на весь hero */
    inset: auto;
    order: 1;
    width: 100%;
    aspect-ratio: 16 / 9; /* если кадр не 16:9 — поменяйте на 4/3 и т.п. */
    flex-shrink: 0;
    background: var(--c-blue-dark);
    overflow: hidden;
  }

  .hero__video {
    width: 100%;
    height: 100%;
    object-fit: contain; /* целое видео, без приближения */
    object-position: center center;
    transform: none;
  }

  /* 2) Градиент только внизу видео (текст под видео читается на синем) */
  .hero__video-overlay {
    display: block;
    position: absolute;
    inset: auto 0 0 0;
    height: 45%; /* высота градиента — крутите 35–55% */
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
      180deg,
      rgba(26, 79, 138, 0) 0%,
      rgba(26, 79, 138, 0.55) 45%,
      var(--c-blue-dark) 100%
    );
  }

  /* 3) Текст и кнопки ПОД видео */
  .hero__inner {
    order: 2;
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 20px 16px 32px; /* было 20px 0 32px */
    background: var(--c-blue-dark);
    box-sizing: border-box;
  }

  .hero__text {
    max-width: none;
  }

  .hero__title {
    font-size: clamp(26px, 7vw, 34px);
  }

  .hero__desc {
    font-size: var(--text-base);
    margin-bottom: var(--sp-6);
  }

  .hero__actions {
    flex-direction: column;
    gap: var(--sp-3);
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* --- ABOUT --- */
.about {
  background: var(--c-white);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.about__text p {
  color: var(--c-text-mid);
  margin-bottom: var(--sp-4);
  font-size: var(--text-base);
  line-height: 1.75;
}
.about__text strong {
  color: var(--c-text);
  font-weight: 700;
}

.about__features {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.feature-item {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-4);
  border: 1px solid var(--c-divider);
  border-radius: var(--radius-md);
  background: var(--c-bg);
  align-items: flex-start;
}

.feature-item__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--c-blue-light);
  color: var(--c-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-item strong {
  display: block;
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 2px;
}

.feature-item p {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  max-width: none;
  margin: 0;
}

/* --- PRODUCTS --- */
.products {
  background: var(--c-bg);
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  margin-bottom: var(--sp-8);
}

.product-photo-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.product-photo-card__body {
  padding: var(--sp-5);
}

.product-photo-card__body h3 {
  font-family: var(--font-head);
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--c-blue-dark);
  margin-bottom: var(--sp-2);
}

.product-photo-card__body p {
  font-size: var(--text-sm);
  color: var(--c-text-mid);
  line-height: 1.65;
  max-width: none;
}

/* CTA bar below products */
.products__cta-bar {
  background: var(--c-blue-dark);
  border-radius: var(--radius-lg);
  padding: var(--sp-6) var(--sp-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  flex-wrap: wrap;
}

.products__cta-bar p {
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--text-md);
  font-weight: 400;
  max-width: none;
}

.products__cta-btns {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  flex-shrink: 0;
}

.products.section {
  padding-top: 24px;
  padding-bottom: 24px;
}

/* --- WHY US --- */
.why {
  background: var(--c-white);
  border-top: 1px solid var(--c-divider);
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}

.why-card {
  padding: var(--sp-6) var(--sp-5);
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-top: 4px solid var(--c-yellow);
  border-radius: var(--radius-md);
}

.why-card__num {
  font-family: var(--font-head);
  font-size: 38px;
  font-weight: 700;
  color: var(--c-blue-light);
  line-height: 1;
  margin-bottom: var(--sp-3);
}

.why-card h3 {
  font-family: var(--font-head);
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--c-blue-dark);
  margin-bottom: var(--sp-2);
  line-height: 1.25;
}

.why-card p {
  font-size: var(--text-sm);
  color: var(--c-text-mid);
  line-height: 1.65;
  max-width: none;
}

/* --- CONTACTS --- */
.contacts__header {
  background: var(--c-yellow);
  padding-block: var(--sp-8);
}

.contacts__title {
  font-family: var(--font-head);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--c-yellow-text);
  margin-bottom: var(--sp-2);
}

.contacts__subtitle {
  font-size: var(--text-md);
  color: var(--c-yellow-text);
  opacity: 0.8;
}

.contacts__inner {
  padding-block: clamp(32px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

.contacts__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}

.contact-card {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition:
    box-shadow 0.15s,
    transform 0.15s;
}
.contact-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-1px);
}

.contact-card--accent {
  background: var(--c-yellow);
  color: var(--c-yellow-text);
  border-color: var(--c-yellow);
  cursor: pointer;
}
.contact-card--blue {
  background: var(--c-blue);
  color: white;
  border-color: var(--c-blue);
  cursor: pointer;
}
.contact-card--light {
  background: var(--c-bg);
  border-color: var(--c-border);
}

.contact-card__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-card--light .contact-card__icon {
  background: var(--c-blue-light);
  color: var(--c-blue);
}

.contact-card__label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 4px;
}

.contact-card__value {
  display: block;
  font-size: var(--text-base);
  font-weight: 700;
}

/* Messengers */
.contacts__messengers-label {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  margin-bottom: var(--sp-3);
}

.messengers-row {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.messenger-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 700;
  color: white;
  transition:
    opacity 0.15s,
    transform 0.15s;
}
.messenger-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}
.messenger-btn--wa {
  background: #25d366;
}
.messenger-btn--tg {
  background: #229ed9;
}

/* Map */
.map-block {
}
.map-responsive {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--c-border);
}

.map-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}
.map-scale-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
}

.map-scale-inner {
  transform-origin: top left;
  width: 1235px;
  height: 400px;
}

.map-placeholder-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  height: 280px;
  background: var(--c-bg);
  border: 2px dashed var(--c-border);
  border-radius: var(--radius-lg);
  color: var(--c-text-muted);
  font-size: var(--text-sm);
  text-align: center;
  line-height: 1.5;
}

/* --- FOOTER --- */
.footer {
  background: var(--c-blue-dark);
  color: rgba(255, 255, 255, 0.75);
  padding-top: var(--sp-10);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--sp-10);
  padding-bottom: var(--sp-10);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__left p {
  font-size: var(--text-sm);
  margin-top: var(--sp-3);
  color: rgba(255, 255, 255, 0.7);
  max-width: none;
}
.footer__inn {
  font-size: var(--text-xs) !important;
  margin-top: var(--sp-2) !important;
  opacity: 0.5;
}

.footer__nav,
.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.footer__nav strong,
.footer__contacts strong {
  color: white;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}
.footer__nav a,
.footer__contacts a,
.footer__contacts span {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.15s;
}
.footer__nav a:hover,
.footer__contacts a:hover {
  color: white;
}

.footer__bottom {
  padding-block: var(--sp-5);
}
.footer__bottom .container {
  display: flex;
  justify-content: center;
}
.footer__bottom span {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .why__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contacts__cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav,
  .header__cta {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }

  .topbar__inner {
    gap: var(--sp-4);
    font-size: 12px;
  }
  .topbar__item:last-child {
    display: none;
  }

  .hero__inner {
    grid-template-columns: 1fr;
  }
  .hero__photo {
    display: none;
  }

  .about__inner {
    grid-template-columns: 1fr;
  }

  .products__grid {
    grid-template-columns: 1fr;
  }

  .why__grid {
    grid-template-columns: 1fr 1fr;
  }

  .contacts__cards {
    grid-template-columns: 1fr 1fr;
  }

  .products__cta-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }
}

@media (max-width: 520px) {
  .why__grid {
    grid-template-columns: 1fr;
  }
  .contacts__cards {
    grid-template-columns: 1fr;
  }
  .hero__actions {
    flex-direction: column;
  }
  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
}
