:root {
  --bg: #f5f5f5;
  --surface: #ffffff;
  --dark: #111111;
  --text: #111111;
  --muted: #6e6e73;
  --border: rgba(17, 17, 17, 0.1);
  --border-dark: rgba(255, 255, 255, 0.12);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --container: 1320px;
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  line-height: 1.5;
}

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.brand, .menu-toggle {
  pointer-events: auto;
  background: rgba(245, 245, 245, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(245, 245, 245, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px;
  height: 44px;
}

.lang-btn {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: var(--transition);
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.active {
  background: var(--dark);
  color: #fff;
}

.menu-toggle {
  width: 48px;
  height: 44px;
  padding: 0;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.8px;
  background: var(--dark);
  transition: var(--transition);
}

.menu-toggle.active span:first-child {
  transform: translateY(3.4px) rotate(45deg);
}

.menu-toggle.active span:last-child {
  transform: translateY(-3.4px) rotate(-45deg);
}

.menu-overlay {
  position: fixed;
  top: 74px;
  right: 24px;
  width: 300px;
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  visibility: hidden;
  transition: var(--transition);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
}

.menu-overlay.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.menu-overlay nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-dark);
}

.menu-overlay nav a {
  font-size: 18px;
  font-weight: 500;
  transition: opacity 0.2s;
}

.menu-overlay nav a:hover {
  opacity: 0.65;
}

.menu-bottom {
  margin-top: 18px;
  font-size: 13px;
  color: #9e9ea4;
}

.tg-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease;
}

.tg-float:hover {
  transform: scale(1.06);
}

/* HERO */
.hero {
  padding: 120px 24px 40px;
  max-width: var(--container);
  margin: 0 auto;
}

.hero-card {
  background: var(--dark);
  color: #fff;
  border-radius: 32px;
  padding: 56px;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-image: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08), transparent 45%);
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.hero h1 {
  font-size: clamp(42px, 6.5vw, 84px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero h1 span {
  color: #8e8e93;
}

.hero-services {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
  color: #d1d1d6;
}

.hero-services li::before {
  content: "+ ";
  color: #8e8e93;
}

.hero-crosses {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.25);
  font-size: 18px;
  margin: 48px 0;
  user-select: none;
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}

.hero-copy {
  max-width: 540px;
}

.hero-brand-mark {
  width: 210px;
  height: 210px;
  padding: 26px;
  border-radius: 32px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.01) 70%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  user-select: none;
  transition: var(--transition);
}

.hero-brand-mark:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 75%);
  transform: translateY(-4px) scale(1.02);
}

.hero-brand-mark svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
}

.hero-desc {
  font-size: 18px;
  line-height: 1.45;
  margin-bottom: 28px;
}

.hero-desc span {
  color: #8e8e93;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  background: #fff;
  color: var(--dark);
  padding: 15px 24px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 15px;
  transition: transform 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 15px 24px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 15px;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* TRUST STRIP */
.trust-strip {
  max-width: var(--container);
  margin: 0 auto 80px;
  padding: 0 24px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.trust-strip li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  font-size: 14px;
  font-weight: 500;
}

/* SECTIONS */
section {
  max-width: var(--container);
  margin: 0 auto 120px;
  padding: 0 24px;
}

.section-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title {
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.035em;
  max-width: 820px;
}

.section-title .muted {
  color: #8e8e93;
}

/* ADVANTAGES */
.advantages-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 40px;
  align-items: center;
}

.iphone-stage {
  display: flex;
  justify-content: center;
}

.iphone-frame {
  width: 340px;
  height: 650px;
  background: #141414;
  border-radius: 48px;
  padding: 12px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18), inset 0 0 0 2px #333;
}

.iphone-screen {
  background: #f2f2f7;
  width: 100%;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.iphone-status {
  padding: 12px 22px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.85);
}

.dynamic-island {
  width: 90px;
  height: 24px;
  background: #000;
  border-radius: 20px;
}

.chat-header {
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.chat-back {
  color: #007aff;
  font-size: 14px;
  font-weight: 500;
}

.chat-contact {
  text-align: center;
}

.chat-contact strong {
  display: block;
  font-size: 14px;
}

.chat-contact small {
  font-size: 11px;
  color: #34c759;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}

.chat-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-day {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
}

.msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 13.5px;
  line-height: 1.38;
  opacity: 0;
  transform: translateY(10px);
  animation: msgIn 0.4s ease forwards;
}

.msg.in {
  background: #ffffff;
  color: #111;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.msg.out {
  background: #111111;
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

@keyframes msgIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-composer {
  padding: 10px 14px 20px;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  color: #8e8e93;
  font-size: 13px;
}

.composer-input {
  border: 1px solid #e5e5ea;
  border-radius: 20px;
  padding: 7px 14px;
}

.benefits-box {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.statement {
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.35;
  color: var(--muted);
}

.statement span {
  color: var(--text);
  font-weight: 500;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
}

.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.stat-top strong {
  font-size: clamp(44px, 4vw, 60px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-index {
  font-size: 13px;
  color: var(--muted);
}

.stat-details h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
}

.stat-details p {
  font-size: 14.5px;
  color: var(--muted);
}

/* PRICING & MOBILE TABS */
.pricing-tabs {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  background: rgba(24, 25, 29, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 5px;
  margin-top: 36px;
  margin-bottom: 20px;
  position: relative;
}

.pricing-tab {
  position: relative;
  padding: 13px 10px;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 500;
  color: #a1a1a6;
  text-align: center;
  transition: var(--transition);
  white-space: nowrap;
}

.pricing-tab.active {
  background: #ffffff;
  color: #111111;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.tab-badge-rec {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: #4f46e5;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 11px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.45);
  pointer-events: none;
}

.pricing-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.price-card {
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.price-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.price-head h3 {
  font-size: 26px;
}

.badge-rec {
  background: #4f46e5;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.price-desc {
  font-size: 15px;
  color: #a1a1a6;
  min-height: 44px;
  margin-bottom: 24px;
  line-height: 1.45;
}

.price-val {
  font-size: 52px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 10px;
}

.price-val.custom-price {
  font-size: 36px;
  padding: 5px 0;
}

.price-val small {
  font-size: 16px;
  font-weight: 400;
  color: #8e8e93;
}

.price-scope {
  font-size: 14px;
  color: #8e8e93;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-dark);
  margin-bottom: 24px;
}

.price-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 15px;
  color: #e5e5ea;
  margin-bottom: 32px;
  flex: 1;
}

.price-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.4;
}

.price-list li::before {
  content: "+";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #d1d1d6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  flex-shrink: 0;
  margin-top: 1px;
}

.price-delivery {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #8e8e93;
  margin-bottom: 18px;
}

.price-delivery span:last-child {
  color: #fff;
  font-weight: 500;
}

.price-btn {
  display: block;
  text-align: center;
  background: #fff;
  color: var(--dark);
  padding: 15px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
}

/* FAQ */
.faq-wrap {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 48px;
}

.faq-subtitle {
  color: var(--muted);
  margin-top: 16px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

details.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

details.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 500;
  font-size: 17px;
  cursor: pointer;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item[open] summary span:last-child {
  transform: rotate(45deg);
}

details.faq-item summary span:last-child {
  font-size: 22px;
  transition: transform 0.2s;
  flex-shrink: 0;
}

details.faq-item p {
  margin-top: 14px;
  font-size: 15px;
  color: var(--muted);
}

/* CONTACT */
.contact-card {
  background: var(--dark);
  color: #fff;
  border-radius: 32px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-title {
  color: #fff;
}

.contact-subtitle {
  color: #a1a1a6;
  margin-top: 16px;
  font-size: 17px;
}

.contact-form {
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form h3 {
  font-size: 22px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  resize: vertical;
}

.field textarea::placeholder {
  color: #6e6e73;
}

/* CUSTOM SELECT (ФОРМАТ САЙТА) */
.custom-select {
  position: relative;
  user-select: none;
}

.custom-select-trigger {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.custom-select.open .custom-select-trigger {
  border-color: var(--text);
}

.cs-trigger-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cs-trigger-text strong {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}

.cs-trigger-text small {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}

.cs-chevron {
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: var(--text);
}

.custom-select.open .cs-chevron {
  transform: rotate(180deg);
}

.custom-select-menu {
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.custom-select.open .custom-select-menu {
  display: flex;
}

.cs-option {
  padding: 12px 14px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.18s;
}

.cs-option:hover,
.cs-option.selected {
  background: rgba(128, 128, 135, 0.14);
}

.cs-opt-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cs-opt-info strong {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.cs-opt-info small {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}

.cs-opt-right {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
}

.submit-btn {
  background: var(--dark);
  color: #fff;
  padding: 16px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 15px;
  margin-top: 6px;
  transition: opacity 0.2s;
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-status {
  font-size: 13.5px;
  color: #34c759;
  display: none;
}

.form-status.error {
  color: #ff453a;
}

/* FOOTER */
footer {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px 60px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 14px;
  color: var(--muted);
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .advantages-grid, .pricing-grid, .faq-wrap, .contact-card {
    grid-template-columns: 1fr;
  }
  .trust-strip, .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-card, .contact-card {
    padding: 32px 24px;
  }
  .hero-brand-mark {
    width: 150px;
    height: 150px;
    padding: 20px;
  }

  /* Табы тарифов на мобильных */
  .pricing-tabs {
    display: grid;
  }
  .pricing-grid {
    margin-top: 16px;
  }
  .price-card {
    display: none;
    padding: 28px 24px;
  }
  .price-card.mobile-active {
    display: flex;
    animation: msgIn 0.3s ease forwards;
  }
  .price-card .badge-rec {
    display: none;
  }
}

@media (max-width: 680px) {
  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-brand-mark {
    display: none;
  }
}

@media (max-width: 600px) {
  .header {
    padding: 14px 16px;
  }
  .brand {
    padding: 8px 14px;
    font-size: 13.5px;
  }
  .lang-btn {
    padding: 5px 9px;
    font-size: 12px;
  }
  .trust-strip, .stats-grid {
    grid-template-columns: 1fr;
  }
  .iphone-frame {
    width: 100%;
    max-width: 340px;
  }
}