:root {
  --bg: #f7f8f5;
  --ink: #17202c;
  --muted: #5b6572;
  --panel: #ffffff;
  --line: #d8ddd4;
  --brand: #167a6a;
  --brand-dark: #0e5e53;
  --accent: #e4b84d;
  --dark: #101723;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 50;
  padding: 10px 14px;
  border-radius: 7px;
  background: var(--accent);
  color: #141006;
  font-weight: 800;
}

.skip-link:focus {
  top: 12px;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 16px clamp(16px, 4vw, 48px);
  background: rgba(247, 248, 245, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 80px;
  height: auto;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 32px;
  border-radius: 7px;
  background: var(--dark);
  color: white;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 3vw, 32px);
  font-size: 14px;
  font-weight: 700;
}

.top-nav a,
.language-links a {
  text-decoration: none;
}

.top-nav a:hover,
.language-links a:hover {
  color: var(--brand-dark);
}

.language-links {
  display: flex;
  gap: 6px;
}

.language-links a {
  display: inline-grid;
  min-width: 34px;
  min-height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
  background: white;
}

.language-links .active {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}

.hero {
  display: grid;
  min-height: 620px;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding: clamp(56px, 9vw, 104px) clamp(16px, 5vw, 72px);
  background:
    linear-gradient(120deg, rgba(16, 23, 35, 0.95), rgba(22, 122, 106, 0.78)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='700' viewBox='0 0 1200 700'%3E%3Crect width='1200' height='700' fill='%23101723'/%3E%3Cg opacity='.22' fill='none' stroke='%23f5d36b' stroke-width='2'%3E%3Cpath d='M100 120h1000v460H100z'/%3E%3Cpath d='M185 196h240v130H185zM480 196h240v130H480zM775 196h240v130H775zM185 380h240v130H185zM480 380h240v130H480zM775 380h240v130H775z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  color: white;
}

.hero-content {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1.02;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
}

h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

.hero-actions,
.cta-section {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-actions {
  margin-top: 32px;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-note span {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 700;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--accent);
  color: #15130b;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.46);
  color: white;
}

.hero-panel {
  display: grid;
  gap: 12px;
}

.hero-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
}

.hero-panel div {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
}

.hero-panel strong,
.hero-panel span {
  display: block;
}

.hero-panel strong {
  font-size: 30px;
}

.hero-panel span {
  color: rgba(255, 255, 255, 0.78);
}

.section,
.cta-section,
.form-page {
  padding: clamp(48px, 8vw, 92px) clamp(16px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.package-strip {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
  padding: 22px 24px;
  border: 1px solid rgba(22, 122, 106, 0.25);
  border-radius: var(--radius);
  background: #eef7f2;
}

.package-strip h3,
.package-strip p {
  margin: 0;
}

.package-strip .eyebrow {
  margin-bottom: 6px;
  color: var(--brand-dark);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-grid article,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.feature-grid article {
  padding: 24px;
}

.feature-grid p,
.section p,
.form-intro p {
  color: var(--muted);
}

.devices {
  background: #ecf0ea;
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.device-grid article {
  min-height: 190px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
}

.device-grid span {
  display: block;
  margin-bottom: 34px;
  color: var(--brand);
  font-weight: 900;
}

.device-grid p {
  margin-bottom: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(24px, 5vw, 72px);
  background: white;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: start;
}

.steps span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  font-weight: 900;
}

.steps p {
  margin: 5px 0 0;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
}

.faq-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.cta-section {
  justify-content: space-between;
  background: var(--dark);
  color: white;
}

.cta-section p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.78);
}

.form-page {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 1.15fr);
  gap: clamp(24px, 6vw, 80px);
  align-items: start;
}

.form-intro {
  max-width: 560px;
}

.form-intro h1 {
  color: var(--ink);
  font-size: clamp(36px, 5vw, 62px);
}

.contact-card {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.contact-card h2 {
  font-size: 22px;
}

.contact-card ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.contact-card li + li {
  margin-top: 8px;
}

.telegram-panel {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.telegram-panel h2,
.telegram-panel p {
  margin: 0;
}

.telegram-panel h2 {
  font-size: 28px;
}

.message-template {
  padding: 18px;
  border: 1px dashed rgba(22, 122, 106, 0.45);
  border-radius: var(--radius);
  background: #eef7f2;
  color: var(--ink);
  font-weight: 700;
}

.telegram-panel .button {
  width: fit-content;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(16px, 5vw, 72px);
  background: #0b1018;
  color: white;
}

.site-footer p {
  margin: 0;
  font-weight: 800;
}

.site-footer a {
  color: white;
}

.mobile-cta {
  display: none;
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .top-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .split,
  .form-page {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

  .package-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .device-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    flex-direction: column;
    padding-bottom: 92px;
  }
}

@media (max-width: 520px) {
  .site-header {
    gap: 14px;
  }

  .language-links a {
    min-width: 32px;
  }

  .hero-actions,
  .cta-section {
    align-items: stretch;
  }

  .hero-note {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .telegram-panel .button {
    width: 100%;
  }

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

  .mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 8px;
    padding: 10px;
    background: rgba(247, 248, 245, 0.96);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(12px);
  }

  .mobile-cta a {
    min-height: 46px;
    display: inline-grid;
    place-items: center;
    border-radius: 7px;
    background: var(--brand);
    color: white;
    font-weight: 900;
    text-decoration: none;
  }

  .mobile-cta a + a {
    background: var(--dark);
  }
}
