@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700;800;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #8c969d;
  --primary-light: rgba(140,150,157,0.10);
  --white: #ffffff;
  --gray-50: #f9fafb;
  --muted: #6b7280;
  --border: #e5e7eb;
  --font: 'Raleway', sans-serif;
  --container: 1200px;
}

html { overflow-x: hidden; }

body {
  font-family: var(--font);
  color: var(--primary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* ─── HEADER ─────────────────────────────────────────── */
.ds-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  border-bottom: 1px solid var(--border);
  width: 100%;
}

.ds-topbar {
  background: var(--primary);
  color: #fff;
  padding: .45rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ds-topbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: .35rem;
  white-space: nowrap;
}

.ds-topbar__label {
  color: rgba(255,255,255,.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ds-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
  gap: 1rem;
}

.ds-logo {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.ds-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.ds-nav a {
  text-decoration: none;
  color: #374151;
  font-size: .85rem;
  font-weight: 600;
  transition: color .2s;
  white-space: nowrap;
}

.ds-nav a:hover,
.ds-nav a.accent { color: var(--primary); }

.ds-btn-call {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: .55rem 1.2rem;
  font-family: var(--font);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity .2s;
}

.ds-btn-call:hover { opacity: .85; }

/* ─── HERO ────────────────────────────────────────────── */
.ds-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  width: 100%;
}

.ds-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(.72) contrast(1.02) saturate(.85);
}

.ds-hero__overlay-h {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.72) 0%, rgba(0,0,0,.42) 55%, rgba(0,0,0,.05) 100%);
}

.ds-hero__overlay-v {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.28) 0%, transparent 60%);
}

.ds-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 5rem 1.5rem 4rem;
}

.ds-hero__content { max-width: 680px; }

.ds-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem 1rem;
  border-radius: 9999px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.3);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.5rem;
}

.ds-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

.ds-hero__title {
  font-size: clamp(2rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 1.25rem;
  letter-spacing: -.02em;
}

.ds-hero__title em {
  font-style: italic;
  color: rgba(255,255,255,.8);
}

.ds-hero__desc {
  font-size: clamp(.95rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,.75);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-weight: 300;
  max-width: 540px;
}

.ds-hero__btns {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-bottom: 3rem;
}

.ds-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: .85rem 1.75rem;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .2s;
  letter-spacing: .02em;
}

.ds-btn-primary:hover { opacity: .85; }

.ds-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: rgba(255,255,255,.05);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 9999px;
  padding: .85rem 1.75rem;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s;
  letter-spacing: .02em;
}

.ds-btn-ghost:hover { background: rgba(255,255,255,.12); }

.ds-hero__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,.2);
  max-width: 400px;
}

.ds-stat__value {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: .2rem;
}

.ds-stat__label { font-size: .78rem; color: rgba(255,255,255,.6); }

/* ─── ABOUT ───────────────────────────────────────────── */
.ds-about { padding: 5rem 0; background: var(--white); }

.ds-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.ds-section-title {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
  letter-spacing: -.01em;
  line-height: 1.2;
}

.ds-accent-line {
  width: 4rem;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin-bottom: 1.75rem;
}

.ds-accent-line--center { margin-left: auto; margin-right: auto; }

.ds-about__text p {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.ds-about__text strong { color: #111827; }
.ds-about__text a { color: var(--primary); font-weight: 700; }

.ds-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.ds-feature { display: flex; gap: .85rem; align-items: flex-start; }

.ds-feature__icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ds-feature__title { font-weight: 700; font-size: .9rem; color: #111827; margin-bottom: .2rem; }
.ds-feature__desc { font-size: .78rem; color: var(--muted); }

.ds-how-card {
  background: var(--gray-50);
  border-radius: 1.5rem;
  padding: 2.25rem;
  border: 1px solid var(--border);
}

.ds-how-card__title { font-size: 1.1rem; font-weight: 800; color: var(--primary); margin-bottom: 1.5rem; }

.ds-steps { display: flex; flex-direction: column; gap: 1.4rem; }

.ds-step { display: flex; gap: .85rem; align-items: flex-start; }

.ds-step__num {
  width: 2.4rem;
  height: 2.4rem;
  background: var(--primary);
  border-radius: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: .78rem;
  flex-shrink: 0;
}

.ds-step__title { font-weight: 700; font-size: .9rem; color: #111827; margin-bottom: .2rem; }
.ds-step__desc { font-size: .78rem; color: var(--muted); }

/* ─── PRODUCTS ────────────────────────────────────────── */
.ds-products {
  padding: 5rem 0;
  background: var(--gray-50);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ds-section-header { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.ds-section-header p { font-size: .95rem; color: var(--muted); margin-top: .5rem; }

.ds-products__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
}

.ds-product-card {
  position: relative;
  overflow: hidden;
  border-radius: .875rem;
  min-height: 260px;
  cursor: pointer;
}

.ds-product-card--wide {
  min-height: 300px;
  grid-column: span 2;
}

.ds-product-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.ds-product-card:hover img { transform: scale(1.04); }

.ds-product-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.42) 0%, rgba(0,0,0,.18) 55%, transparent 100%);
}

.ds-product-card__content {
  position: relative;
  z-index: 2;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-height: 260px;
}

.ds-product-card--wide .ds-product-card__content {
  min-height: 300px;
}

.ds-product-card__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: .4rem;
  line-height: 1.3;
}

.ds-product-card__desc {
  font-size: .78rem;
  color: rgba(255,255,255,.7);
  line-height: 1.6;
  max-width: 300px;
}

/* ─── BRANDS ──────────────────────────────────────────── */
.ds-brands {
  padding: 4.5rem 0;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.ds-brands__title {
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: .6rem;
}

.ds-brands__sub { text-align: center; font-size: .85rem; color: var(--muted); margin-bottom: 2.5rem; }

.ds-brands__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .65rem;
}

.ds-brand-tag {
  padding: .65rem 1.3rem;
  border-radius: 9999px;
  border: 2px solid rgba(26,39,68,.15);
  color: var(--primary);
  font-weight: 600;
  font-size: .82rem;
  font-family: var(--font);
  cursor: default;
  background: none;
}

.ds-brand-tag--accent {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ─── WHY US ──────────────────────────────────────────── */
.ds-why {
  padding: 5rem 0;
  background: var(--gray-50);
  border-top: 1px solid var(--border);
}

.ds-why__title {
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
}

.ds-why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.ds-why-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem;
}

.ds-why-item__icon {
  width: 4.5rem;
  height: 4.5rem;
  background: var(--primary);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.ds-why-item__icon svg { width: 2.2rem; height: 2.2rem; }
.ds-why-item:nth-child(odd) .ds-why-item__icon { transform: rotate(3deg); }
.ds-why-item:nth-child(even) .ds-why-item__icon { transform: rotate(-3deg); }

.ds-why-item__title { font-size: 1rem; font-weight: 800; color: var(--primary); margin-bottom: .6rem; }
.ds-why-item__desc { font-size: .82rem; color: var(--muted); line-height: 1.65; }

/* ═══════════════════════════════════════════════════════
   АДАПТАЦИЯ ДЛЯ ПЛАНШЕТОВ (до 1024px)
═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .ds-why__grid { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════════
   АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ (до 768px)
═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Topbar */
  .ds-topbar { padding: .4rem 1rem; }
  .ds-topbar__label { display: none; }
  .ds-topbar a { display: none; }

  /* Navbar */
  .ds-navbar { padding: .75rem 1rem; }
  .ds-nav { display: none; }
  .ds-logo { font-size: 1.05rem; }

  /* Hero */
  .ds-hero { min-height: 100svh; align-items: flex-end; }
  .ds-hero__inner { padding: 2rem 1rem 2.5rem; }
  .ds-hero__overlay-h {
    background: linear-gradient(to bottom, rgba(0,0,0,.3) 0%, rgba(0,0,0,.85) 60%, rgba(0,0,0,.95) 100%);
  }
  .ds-hero__content { max-width: 100%; }
  .ds-badge { font-size: .65rem; padding: .35rem .85rem; margin-bottom: 1rem; }
  .ds-hero__title { font-size: 2.1rem; margin-bottom: 1rem; }
  .ds-hero__desc { font-size: .9rem; margin-bottom: 1.5rem; }
  .ds-hero__btns { flex-direction: column; gap: .7rem; }
  .ds-btn-primary,
  .ds-btn-ghost { width: 100%; justify-content: center; padding: .9rem 1.5rem; font-size: .9rem; }
  .ds-hero__stats { max-width: 100%; gap: 1rem; margin-top: 1.5rem; }
  .ds-stat__value { font-size: 1.4rem; }

  /* About */
  .ds-about { padding: 3rem 0; }
  .ds-about__grid { grid-template-columns: 1fr; gap: 2rem; }
  .ds-features { grid-template-columns: 1fr; gap: 1rem; }

  /* Products */
  .ds-products { padding: 3rem 0; }
  .ds-products__grid { grid-template-columns: 1fr; gap: .75rem; }
  .ds-product-card--wide { grid-column: span 1; }
  .ds-product-card { min-height: 200px; }
  .ds-product-card__content { min-height: 200px; padding: 1.25rem; }
  .ds-product-card__title { font-size: .95rem; }
  .ds-product-card__desc { max-width: 100%; }

  /* Brands */
  .ds-brands { padding: 3rem 0; }
  .ds-brand-tag { padding: .55rem 1.1rem; font-size: .78rem; }

  /* Why */
  .ds-why { padding: 3rem 0; }
  .ds-why__grid { grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
  .ds-why-item { padding: .85rem; }
  .ds-why-item__icon { width: 3.5rem; height: 3.5rem; }
  .ds-why-item__icon svg { width: 1.75rem; height: 1.75rem; }
  .ds-why-item__title { font-size: .9rem; }

  /* How card */
  .ds-how-card { padding: 1.5rem; }
}

/* ═══════════════════════════════════════════════════════
   АДАПТАЦИЯ ДЛЯ МАЛЕНЬКИХ ТЕЛЕФОНОВ (до 380px)
═══════════════════════════════════════════════════════ */
@media (max-width: 380px) {
  .ds-hero__title { font-size: 1.75rem; }
  .ds-why__grid { grid-template-columns: 1fr; }
  .ds-logo { font-size: .95rem; }
  .ds-btn-call { font-size: .75rem; padding: .5rem .9rem; }
}

/* ===================== FOOTER ===================== */
.ds-footer {
  background-color: #f1f5f9;
  color: #1e293b;
  border-top: 1px solid #cbd5e1;
}
.ds-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
}
.ds-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 768px) {
  .ds-footer__grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
.ds-footer__logo {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: .04em;
  margin-bottom: .75rem;
  color: var(--primary);
}
.ds-footer__desc {
  font-size: .82rem;
  color: #64748b;
  line-height: 1.6;
}
.ds-footer__heading {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid #cbd5e1;
}
.ds-footer__nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.ds-footer__nav a {
  font-size: .85rem;
  color: #64748b;
  text-decoration: none;
  transition: color .2s;
}
.ds-footer__nav a:hover { color: var(--primary); }
.ds-footer__phone {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  margin-bottom: .5rem;
  transition: opacity .2s;
}
.ds-footer__phone:hover { opacity: .8; }
.ds-footer__sub {
  font-size: .75rem;
  color: #94a3b8;
}
.ds-footer__bottom {
  border-top: 1px solid #cbd5e1;
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .72rem;
  color: #94a3b8;
}

/* ===================== CATALOG CTA ===================== */
.ds-catalog-cta {
  background-color: #f1f5f9;
  border-top: 1px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
  padding: 4rem 2rem;
}
.ds-catalog-cta__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.ds-catalog-cta__title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: .4rem;
}
.ds-catalog-cta__desc {
  font-size: .95rem;
  color: #64748b;
}
.ds-catalog-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  padding: 1rem 2rem;
  border-radius: .75rem;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .2s;
  flex-shrink: 0;
}
.ds-catalog-cta__btn:hover { opacity: .88; }
@media (max-width: 640px) {
  .ds-catalog-cta__inner { flex-direction: column; align-items: flex-start; }
  .ds-catalog-cta__btn { width: 100%; justify-content: center; }
}
