/* ===== Базовые стили ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #002347;
  color: #FFFFFF;
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

a { color: #F95200; text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .85; }

img { max-width: 100%; height: auto; display: block; }

/* ===== Контейнер ===== */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ===== Header ===== */
.site-header {
  background: #00346B;
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: 1240px; margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 38px; width: auto; }

.main-nav { display: flex; gap: 28px; align-items: center; }
.main-nav a {
  color: #FFFFFF; font-weight: 500; font-size: 15px;
  position: relative; padding: 6px 0;
}
.main-nav a:hover { color: #F95200; }
.main-nav a.active { color: #F95200; }

.header-buttons { display: flex; gap: 10px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; font-weight: 700; font-size: 14px;
  border: none; cursor: pointer; text-transform: uppercase;
  letter-spacing: .4px; transition: filter .2s, transform .1s;
  border-radius: 0; /* квадратные углы */
  color: #FFFFFF; white-space: nowrap;
}
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: translateY(1px); }

.btn-primary { background: #F95200; color: #fff; }
.btn-login { background: #4B95E5; color: #fff; }
.btn-lg { padding: 16px 36px; font-size: 16px; }

.mobile-toggle {
  display: none; background: none; border: none; color: #fff;
  font-size: 26px; cursor: pointer;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #002347 0%, #003266 60%, #00346B 100%);
  padding: 90px 0 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; top: -120px; right: -100px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(249,82,0,.22), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px;
  align-items: center; position: relative; z-index: 1;
}
.hero h1 {
  font-size: 54px; line-height: 1.1; font-weight: 800;
  margin-bottom: 22px; letter-spacing: -.5px;
}
.hero h1 .accent { color: #F95200; }
.hero-lead {
  font-size: 18px; color: #cfd8e3; margin-bottom: 30px; max-width: 560px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-image { text-align: center; }
.hero-image img {
  max-width: 100%;
  max-height: 560px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 25px 45px rgba(0,0,0,.45));
}

/* ===== Sections ===== */
section { padding: 70px 0; }
.section-alt { background: #003266; }
.section-title {
  font-size: 36px; font-weight: 800; margin-bottom: 14px;
  line-height: 1.2;
}
.section-title .accent { color: #F95200; }
.section-sub { color: #b8c4d2; font-size: 17px; margin-bottom: 40px; max-width: 760px; }

/* ===== Features Grid ===== */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.feature-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  padding: 28px 24px;
  transition: transform .25s, background .25s;
}
.feature-card:hover { background: rgba(255,255,255,.07); transform: translateY(-4px); }
.feature-icon {
  width: 54px; height: 54px;
  background: #F95200; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 24px; margin-bottom: 16px;
}
.feature-card h3 { font-size: 20px; margin-bottom: 10px; color: #fff; }
.feature-card p { color: #b8c4d2; font-size: 15px; }

/* ===== Game / Promo grid ===== */
.promo-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.promo-card {
  background: #003266; padding: 0; overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
}
.promo-card img { width: 100%; height: auto; display: block; }

/* ===== Steps ===== */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px;
}
.step {
  background: #002a5c;
  border-left: 4px solid #F95200;
  padding: 26px 24px;
  position: relative;
}
.step-num {
  position: absolute; top: -18px; left: 20px;
  width: 40px; height: 40px; background: #F95200; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; margin-top: 8px; }
.step p { color: #b8c4d2; font-size: 15px; }

/* ===== Content blocks ===== */
.content-block {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px;
  align-items: center; margin: 50px 0;
}
.content-block.reverse { grid-template-columns: 1fr 1.4fr; }
.content-block.reverse .content-text { order: 2; }
.content-block img { max-width: 100%; margin: 0 auto; }
.content-block .img-wrap { text-align: center; }
.content-block .img-wrap.phone img { max-height: 480px; filter: drop-shadow(0 18px 30px rgba(0,0,0,.4)); }

.content-text h2 { font-size: 30px; margin-bottom: 16px; line-height: 1.25; }
.content-text h3 { font-size: 22px; margin: 22px 0 10px; color: #F95200; }
.content-text p { color: #d4dde8; margin-bottom: 14px; font-size: 16px; }
.content-text ul { margin: 14px 0 14px 20px; }
.content-text ul li { color: #d4dde8; margin-bottom: 8px; font-size: 16px; }
.content-text strong { color: #fff; }

/* ===== Article (большие тексты) ===== */
.article-section {
  background: #002347;
  padding: 60px 0;
}
.article-section h2 {
  font-size: 30px; margin: 36px 0 16px; line-height: 1.25; color: #fff;
}
.article-section h2:first-child { margin-top: 0; }
.article-section h3 {
  font-size: 22px; margin: 26px 0 12px; color: #F95200; line-height: 1.3;
}
.article-section p {
  color: #dde5ee; margin-bottom: 14px; font-size: 16px; line-height: 1.75;
}
.article-section ul, .article-section ol {
  margin: 14px 0 18px 26px;
}
.article-section li {
  color: #dde5ee; margin-bottom: 8px; font-size: 16px;
}
.article-section .article-img {
  margin: 36px auto; text-align: center;
  max-width: 720px;
}
.article-section .article-img img {
  margin: 0 auto; max-width: 100%; height: auto;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 6px;
  display: block;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
/* Узкие (вертикальные) скриншоты — ограничение по высоте */
.article-section .article-img.portrait {
  max-width: 340px;
}
.article-section .article-img.portrait img {
  max-height: 560px;
}
/* Широкие баннеры — full-width, не обрезаются по высоте */
.article-section .article-img.wide {
  max-width: 100%;
}
.article-section .article-img.wide img {
  width: 100%; height: auto; max-height: none;
  object-fit: contain;
}
/* Картинки с большим квадратным контентом (ios-steps) */
.article-section .article-img.square {
  max-width: 560px;
}
.article-section .info-box {
  background: linear-gradient(135deg, #003266, #002a5c);
  border-left: 4px solid #F95200;
  padding: 22px 26px; margin: 24px 0;
}
.article-section .info-box p { margin-bottom: 0; color: #fff; }

/* ===== TOC ===== */
.toc {
  background: #003266;
  border: 1px solid rgba(255,255,255,.08);
  padding: 24px 28px;
  margin-bottom: 36px;
}
.toc h2 { font-size: 20px; margin-bottom: 14px; color: #fff; }
.toc ol { margin-left: 22px; }
.toc li { margin-bottom: 6px; color: #cfd8e3; }
.toc a { color: #4B95E5; }
.toc a:hover { color: #F95200; text-decoration: underline; }

/* ===== Table ===== */
.compare-table {
  width: 100%; border-collapse: collapse; margin: 24px 0;
  background: #003266;
}
.compare-table th, .compare-table td {
  padding: 14px 16px; text-align: left;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 15px;
}
.compare-table th {
  background: #00346B; color: #F95200; font-weight: 700;
  text-transform: uppercase; font-size: 13px; letter-spacing: .5px;
}
.compare-table td { color: #dde5ee; }
.compare-table tr:hover td { background: rgba(255,255,255,.03); }

/* ===== Promo banner ===== */
.cta-banner {
  background: linear-gradient(120deg, #00346B 0%, #003266 100%);
  border: 1px solid rgba(249,82,0,.3);
  padding: 48px 40px; text-align: center;
  margin: 40px 0;
  position: relative; overflow: hidden;
}
.cta-banner::after {
  content: ""; position: absolute; bottom: -80px; right: -80px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(249,82,0,.25), transparent 70%);
}
.cta-banner h2 { font-size: 32px; margin-bottom: 14px; }
.cta-banner p { color: #cfd8e3; margin-bottom: 24px; font-size: 17px; }
.cta-banner .promo-code {
  display: inline-block; padding: 10px 22px;
  background: #002347; color: #F95200; font-weight: 800;
  font-size: 22px; letter-spacing: 2px; margin: 14px 0 22px;
  border: 2px dashed #F95200;
}

/* ===== FAQ ===== */
.faq-item {
  background: #003266; border-left: 4px solid #4B95E5;
  margin-bottom: 12px; padding: 18px 24px;
  transition: border-color .2s;
}
.faq-item:hover { border-left-color: #F95200; }
.faq-item h3 { font-size: 18px; margin-bottom: 8px; color: #fff; }
.faq-item p { color: #cfd8e3; font-size: 15px; }

/* ===== Footer ===== */
.site-footer {
  background: #001a36;
  padding: 50px 0 24px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 36px;
}
.footer-col h4 {
  font-size: 14px; text-transform: uppercase;
  letter-spacing: .8px; color: #F95200; margin-bottom: 16px;
}
.footer-col p, .footer-col a {
  color: #9fb0c5; font-size: 14px; display: block; margin-bottom: 8px;
}
.footer-col a:hover { color: #F95200; }
.footer-col img { height: 36px; margin-bottom: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06); padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: #7a8a9e; font-size: 13px;
}

/* ===== Decorative star ===== */
.star-mark {
  display: inline-block; width: 28px; height: 28px;
  vertical-align: middle; margin-right: 8px;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-inner, .content-block, .content-block.reverse { grid-template-columns: 1fr; }
  .content-block.reverse .content-text { order: initial; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 40px; }
  .hero-image img { max-height: 380px; max-width: 100%; width: auto; height: auto; }
}
@media (max-width: 720px) {
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: #00346B; padding: 18px 24px; gap: 14px; }
  .main-nav.open { display: flex; }
  .mobile-toggle { display: inline-block; }
  .header-buttons .btn { padding: 10px 14px; font-size: 12px; }
  .header-buttons .btn-login { display: none; }
  .hero { padding: 60px 0 50px; }
  .hero h1 { font-size: 32px; }
  .hero-lead { font-size: 16px; }
  .section-title { font-size: 26px; }
  .features-grid, .promo-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { justify-content: center; text-align: center; }
  section { padding: 50px 0; }
  .cta-banner { padding: 30px 20px; }
  .cta-banner h2 { font-size: 24px; }
  .article-section h2 { font-size: 24px; }
  .article-section h3 { font-size: 18px; }
  .compare-table { font-size: 14px; }
  .compare-table th, .compare-table td { padding: 10px; }
}
