:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #ff6b00;
  --accent-dark: #0f4c81;
  --line: #e5e7eb;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 76, 129, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

.header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  text-decoration: none;
  color: var(--text);
  letter-spacing: 0.2px;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-main {
  font-weight: 800;
}

.logo-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.logo span {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: 10px;
}

.nav a:hover {
  background: #eff6ff;
}

.header-contacts {
  border-top: 1px solid var(--line);
  padding: 8px 0;
  font-size: 14px;
  color: var(--muted);
}

.header-contacts a {
  color: var(--accent-dark);
  text-decoration: none;
}

.btn {
  display: inline-block;
  border: 0;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 16px;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.92;
}

.btn-secondary {
  background: var(--accent-dark);
  color: #fff;
}

.hero {
  padding: 46px 0 26px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.panel {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.1;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 32px);
}

p {
  margin: 0 0 12px;
}

.muted {
  color: var(--muted);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}

.badge {
  font-size: 14px;
  border: 1px solid #dbeafe;
  background: #eef6ff;
  color: var(--accent-dark);
  border-radius: 999px;
  padding: 7px 11px;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

section {
  padding: 18px 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.card {
  background: var(--surface);
  border: 1px solid #edf2f7;
  border-radius: 12px;
  padding: 16px;
}

.card h3 {
  margin: 0 0 7px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.step {
  background: var(--surface);
  border: 1px solid #edf2f7;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.step b {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  margin-bottom: 6px;
}

label {
  font-size: 14px;
  font-weight: 600;
}

.form-telegram-hint {
  margin: -2px 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #bae6fd;
  border-left: 4px solid #0ea5e9;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
  color: #0c4a6e;
}

.form-telegram-hint a {
  color: #0369a1;
  font-weight: 700;
  text-decoration: none;
}

.form-telegram-hint a:hover {
  text-decoration: underline;
}

.consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin: 4px 0 10px;
}

.consent input[type="checkbox"] {
  width: auto;
  margin: 3px 0 0;
}

input,
textarea {
  width: 100%;
  margin-top: 6px;
  margin-bottom: 10px;
  padding: 11px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font: inherit;
}

textarea {
  resize: vertical;
  min-height: 84px;
}

.ok {
  color: #15803d;
  font-weight: 700;
  display: none;
}

.err {
  color: #b91c1c;
  font-weight: 700;
  display: none;
}

.cta {
  background: linear-gradient(135deg, var(--accent-dark), #1e78c2);
  color: #fff;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.works-slider {
  margin-top: 8px;
  position: relative;
}

.works-slider img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
}

.works-caption {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

.slider-arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 76, 129, 0.82);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.slider-arrow:hover {
  background: rgba(15, 76, 129, 1);
}

.slider-arrow-left {
  left: 12px;
}

.slider-arrow-right {
  right: 12px;
}

.slider-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: #cbd5e1;
  cursor: pointer;
  padding: 0;
}

.slider-dot.active {
  background: var(--accent);
}

.discount-page {
  margin-top: 20px;
}

.discount-steps {
  margin: 0;
  padding-left: 20px;
}

.discount-steps li {
  margin-bottom: 10px;
}

.discount-table-wrap {
  overflow-x: auto;
  margin-top: 10px;
}

.discount-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: 10px;
  overflow: hidden;
}

.discount-table th,
.discount-table td {
  border: 1px solid #e2e8f0;
  padding: 10px 12px;
  vertical-align: top;
  text-align: left;
}

.discount-table th {
  background: #f1f5f9;
  font-weight: 700;
}

.qa-list .card {
  margin-bottom: 10px;
}

.qa-list .question {
  font-weight: 700;
  margin-bottom: 6px;
}

.footer {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding: 22px 0 30px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero-grid,
  .cards,
  .steps,
  .cta {
    grid-template-columns: 1fr;
    display: grid;
  }
}
