:root {
  --background: #0f172a;
  --surface: #111827;
  --surface-light: #f8fafc;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #fbbf24;
  --text: #0f172a;
  --muted: #64748b;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-lg: 0 28px 80px rgba(15, 23, 42, 0.22);
  --shadow-md: 0 18px 45px rgba(15, 23, 42, 0.16);
  --shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.1);
  --content-width: min(1180px, 92vw);
  --header-height: 104px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: #f1f5f9;
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--primary);
}

.page-wrapper {
  overflow-x: hidden;
}

.section-header {
  width: var(--content-width);
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-header h2 {
  margin: 1rem 0 0.75rem;
  font-size: clamp(2rem, 1.6rem + 1vw, 2.75rem);
  font-weight: 700;
  color: #0b1221;
}

.section-header p {
  margin: 0 auto;
  max-width: 620px;
  color: var(--muted);
  font-size: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  color: #fff;
  box-shadow: 0 24px 44px rgba(37, 99, 235, 0.35);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.15);
  color: #0b1221;
  border-color: rgba(15, 23, 42, 0.12);
}

.btn--ghost:hover {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.3);
  color: var(--primary-dark);
}

.link-arrow {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  font-weight: 500;
  color: var(--primary);
}

.link-arrow::after {
  content: '→';
  transition: transform 0.2s ease;
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

.site-header {
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.6), rgba(37, 99, 235, 0.05)), #0b1221;
  color: #e2e8f0;
  padding-bottom: 4rem;
  clip-path: ellipse(120% 100% at 50% 0%);
}

.top-bar {
  width: var(--content-width);
  margin: 0 auto;
  padding: 1.75rem 0 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  position: relative;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.brand-name {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-tagline {
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.75);
}

.top-bar__info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-self: end;
}

.top-bar__info > * {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.top-bar__info a {
  color: #fff;
  font-weight: 500;
}

.top-bar__cta {
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #eff6ff;
  font-weight: 600;
  transition: all 0.2s ease;
}

.top-bar__cta:hover {
  background: rgba(37, 99, 235, 0.3);
  border-color: rgba(148, 163, 184, 0.4);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 0.35rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #e2e8f0;
  margin: 5px 0;
  transition: transform 0.2s ease;
}

.navigation {
  width: var(--content-width);
  margin: 1.25rem auto 0;
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
  font-size: 0.95rem;
  color: rgba(226, 232, 240, 0.75);
}

.navigation a {
  padding-bottom: 0.6rem;
  border-bottom: 2px solid transparent;
}

.navigation a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.hero {
  width: var(--content-width);
  margin: 2.5rem auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 3rem;
  align-items: center;
  color: #e2e8f0;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.2);
  color: #bfdbfe;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 1.2rem 0 1rem;
  font-size: clamp(2.6rem, 2rem + 1.8vw, 3.4rem);
  line-height: 1.1;
  font-weight: 700;
}

.hero__sub {
  color: rgba(226, 232, 240, 0.75);
  margin-bottom: 1.75rem;
  max-width: 540px;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.hero__badges {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  color: rgba(226, 232, 240, 0.75);
}

.hero__badges strong {
  color: #fff;
  font-size: 1.1rem;
}

.hero__visual {
  display: flex;
  justify-content: flex-end;
}

.hero__card {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  width: 100%;
  max-width: 420px;
}

.hero__card h3 {
  margin-top: 0;
  font-size: 1.4rem;
  color: #fff;
}

.hero__card p {
  color: rgba(226, 232, 240, 0.8);
}

.loyalty-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.loyalty-grid div {
  background: rgba(37, 99, 235, 0.15);
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 600;
  color: #bfdbfe;
  display: flex;
  align-items: center;
}

.loyalty-grid div:nth-child(even) {
  justify-content: center;
}

.stats {
  width: var(--content-width);
  margin: 2rem auto 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.stats article {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-md);
}

.stats h3 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
}

.stats p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.services {
  padding: 4.5rem 0 3rem;
}

.services__grid {
  width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
}

.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.service-icon {
  font-size: 2rem;
  margin-bottom: 1.2rem;
}

.service-card h3 {
  margin: 0 0 0.6rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.models {
  padding: 4rem 0 3rem;
  background: #0b1221;
  color: #e2e8f0;
  position: relative;
}

.models::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.4), transparent 55%);
  opacity: 0.9;
}

.models .section-header,
.models .section-eyebrow,
.models .section-header p {
  position: relative;
}

.models .section-header h2 {
  color: #fff;
}

.models .section-header p {
  color: rgba(226, 232, 240, 0.72);
}

.models__grid {
  width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.7rem;
  position: relative;
}

.model-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.16);
  transition: transform 0.3s ease;
}

.model-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.model-card__info {
  padding: 1.4rem 1.6rem 1.6rem;
}

.model-card__info h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.model-card__info p {
  margin: 0;
  color: rgba(226, 232, 240, 0.65);
}

.model-card:hover {
  transform: translateY(-10px);
}

.advantages {
  width: var(--content-width);
  margin: 4.5rem auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 3rem;
  align-items: center;
}

.advantages__intro .section-eyebrow {
  margin-bottom: 1rem;
}

.advantages__intro h2 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 1.8rem + 1.3vw, 3rem);
}

.advantages__intro p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.advantages__list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.advantages__list li {
  margin-bottom: 0.7rem;
}

.advantages__highlights {
  display: grid;
  gap: 1.5rem;
}

.highlight-card {
  background: linear-gradient(150deg, rgba(37, 99, 235, 0.12), rgba(148, 163, 184, 0.1));
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(37, 99, 235, 0.08);
}

.highlight-card span {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.6rem;
}

.gallery {
  padding: 4rem 0 3rem;
}

.gallery__grid {
  width: var(--content-width);
  margin: 0 auto;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery__grid img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  height: 220px;
  filter: saturate(105%);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.gallery__grid img:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.pricing {
  padding: 4rem 0 3rem;
  background: #f8fafc;
}

.pricing__grid {
  width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}

.pricing-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pricing-card h3 {
  margin: 0;
  font-size: 1.3rem;
}

.pricing-card p {
  margin: 0;
  color: var(--muted);
  flex-grow: 1;
}

.pricing-card__price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
}

.cta {
  width: var(--content-width);
  margin: 4.5rem auto;
  padding: 3.2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(115deg, rgba(37, 99, 235, 0.15), rgba(37, 99, 235, 0.35)), #0b1221;
  color: #e2e8f0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.cta__content h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 1.6rem + 1vw, 2.8rem);
}

.cta__content p {
  margin: 0;
  color: rgba(226, 232, 240, 0.8);
}

.cta__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.cta__form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.cta__form input {
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.4);
  background: rgba(15, 23, 42, 0.2);
  color: #fff;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.cta__form input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.cta__form .btn {
  grid-column: span 2;
}

.cta__policy {
  grid-column: span 2;
  font-size: 0.8rem;
  color: rgba(226, 232, 240, 0.65);
  margin: 0;
}

.cta__policy a {
  color: #fff;
  text-decoration: underline;
}

.site-footer {
  background: #0f172a;
  color: #e2e8f0;
  padding: 3rem 0 2rem;
}

.footer__grid {
  width: var(--content-width);
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.footer__grid h4,
.footer__grid h3 {
  margin-top: 0;
}

.footer__grid a {
  color: rgba(226, 232, 240, 0.85);
  display: inline-block;
  margin-bottom: 0.3rem;
}

.footer__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* .footer__chips a {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.25);
  color: #fff;
  font-weight: 500;
}

.footer__chips a:hover {
  background: rgba(37, 99, 235, 0.4);
} */

.footer__legal {
  width: var(--content-width);
  margin: 0 auto;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.55);
}

a.telegram-link {
  display: inline-flex;
  align-items: center;
  /* gap: 6px; расстояние между иконкой и текстом */
  text-decoration: none;
  font-weight: 500;

  /* фон — SVG иконка */
  background-image: url("assets/img/telegram-logo.svg");
  background-repeat: no-repeat;
  background-size: 18px 18px;
  background-position: left center;
  padding-left: 24px; /* отступ под иконку */
}

a.whatsapp-link {
  display: inline-flex;
  align-items: center;
  /* gap: 6px; расстояние между иконкой и текстом */
  text-decoration: none;
  font-weight: 500;

  /* фон — SVG иконка */
  background-image: url("assets/img/whatsapp-logo.svg");
  background-repeat: no-repeat;
  background-size: 18px 18px;
  background-position: left center;
  padding-left: 24px; /* отступ под иконку */
}


@media (max-width: 900px) {
  .top-bar {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      'brand menu'
      'info info';
    row-gap: 1rem;
  }

  .brand {
    grid-area: brand;
  }

  .top-bar__info {
    grid-area: info;
    justify-self: stretch;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
  }

  .menu-toggle {
    display: block;
    grid-area: menu;
    justify-self: end;
  }

  .navigation {
    display: none;
    flex-direction: column;
    width: calc(100% - 2rem);
    margin-top: 1.2rem;
    background: rgba(15, 23, 42, 0.85);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
  }

  .navigation.open {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero__visual {
    justify-content: flex-start;
  }

  .stats {
    margin-top: 1.5rem;
  }

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

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

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

  .cta__form .btn,
  .cta__policy {
    grid-column: auto;
  }
}

@media (max-width: 600px) {
  .top-bar__info {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats {
    margin-top: 1rem;
  }

  .services,
  .gallery,
  .pricing,
  .models,
  .advantages,
  .cta {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  .models {
    padding-top: 3rem;
    padding-bottom: 2.5rem;
  }

  .hero {
    margin-top: 1rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

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

  .gallery__grid img {
    height: 180px;
  }
}
