/* ==========================================================================
   SystemAPK – landing
   ========================================================================== */

:root {
  --accent: #bb29bb;
  --accent-dark: #9a1f9a;
  --navy: #001589;
  --navy-deep: #0b0b3b;
  --violet: #2b0089;
  --text: #333;
  --muted: #666;
  --line: #e6e6ee;
  --bg: #fff;
  --bg-alt: #f6f6fa;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(11, 11, 59, .08);
  --header-h: 72px;
  --container: 1200px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font: 400 16px/1.65 "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { color: var(--navy-deep); line-height: 1.25; margin: 0 0 .6em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 500; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 880px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--navy); color: #fff; padding: 8px 14px;
}
.skip-link:focus { left: 10px; top: 10px; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit; font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 15px 36px; font-size: 1.05rem; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* Check list ------------------------------------------------------------- */
.check-list { list-style: none; padding: 0; margin: 0 0 1.5em; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: .55em; }
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: .3em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s, border-color .2s;
}
.site-header.is-scrolled { box-shadow: 0 2px 16px rgba(0, 0, 0, .08); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.brand img { width: 234px; }

.main-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 8px 12px;
  color: var(--navy-deep); text-decoration: none; font-weight: 500; font-size: .95rem;
  border-radius: 6px;
  position: relative;
}
.main-nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transition: transform .2s;
}
.main-nav a:hover,
.main-nav a.is-active { color: var(--accent); }
.main-nav a.is-active::after,
.main-nav a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; padding: 10px;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--navy-deep); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative;
  color: #fff;
  background: url("../img/hero-bg.jpg") center / cover no-repeat;
  padding: 80px 0 90px;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(0, 21, 137, .92) 0%, rgba(43, 0, 137, .85) 55%, rgba(187, 41, 187, .75) 100%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 5fr 6fr; gap: 50px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 5vw, 3.75rem); font-weight: 700; margin-bottom: .1em; }
.hero-lead { font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 300; margin-bottom: .4em; }
.hero-sub { font-size: 1.1rem; margin-bottom: 1.4em; }
.hero .check-list li::before { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23bb29bb' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E"); }

/* Slider ----------------------------------------------------------------- */
.slider {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
  overflow: hidden;
}
.slider-chrome { display: flex; gap: 6px; padding: 10px 12px; background: #ececf2; }
.slider-chrome i { width: 10px; height: 10px; border-radius: 50%; background: #c9c9d4; }
.slider-chrome i:nth-child(1) { background: #ff5f57; }
.slider-chrome i:nth-child(2) { background: #febc2e; }
.slider-chrome i:nth-child(3) { background: #28c840; }
.slider-track { position: relative; aspect-ratio: 1439 / 672; }
.slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .8s ease;
}
.slide.is-active { opacity: 1; }
.slider-dots { display: flex; justify-content: center; gap: 8px; padding: 10px; background: #fff; }
.slider-dots button {
  width: 10px; height: 10px; padding: 0; border-radius: 50%;
  border: 0; background: #d5d5e0; cursor: pointer;
}
.slider-dots button[aria-selected="true"] { background: var(--accent); }

/* Sections --------------------------------------------------------------- */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-head h2 { text-transform: uppercase; letter-spacing: .02em; }
.section-head h2::after {
  content: ""; display: block; width: 60px; height: 3px; margin: 16px auto 0;
  background: var(--accent); border-radius: 2px;
}
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* Features --------------------------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 48px; }
.feature { display: flex; gap: 20px; align-items: flex-start; }
.feature h3 { text-transform: uppercase; font-size: 1.05rem; margin-bottom: .4em; }
.feature p { color: var(--muted); margin: 0; }
.feature-icon {
  flex: 0 0 56px; width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}
.feature-icon svg { width: 28px; height: 28px; fill: var(--accent); }

/* Video + quote ---------------------------------------------------------- */
.video-row { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; inset: 0; padding: 0; border: 0; cursor: pointer; background: none; }
.video-play img { width: 100%; height: 100%; object-fit: cover; }
.video-play-icon { position: absolute; left: 50%; top: 50%; width: 72px; transform: translate(-50%, -50%); transition: transform .2s; }
.video-play:hover .video-play-icon { transform: translate(-50%, -50%) scale(1.1); }

.quote { margin: 0; }
.quote h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
.quote p { font-style: italic; color: var(--muted); font-size: .97rem; }
.quote footer { font-weight: 500; color: var(--navy-deep); }
.quote footer::before { content: "— "; color: var(--accent); }

/* About ------------------------------------------------------------------ */
.about-row { display: grid; grid-template-columns: 3fr 2fr; gap: 50px; align-items: center; }
.about-text p { font-size: 1.15rem; color: var(--muted); }
.about-text h2::after { content: ""; display: block; width: 60px; height: 3px; margin-top: 16px; background: var(--accent); }
.about-img { margin: 0; justify-self: center; }
.about-img img { border-radius: var(--radius); box-shadow: var(--shadow); max-height: 520px; width: auto; }

/* FAQ -------------------------------------------------------------------- */
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  transition: box-shadow .2s;
}
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  position: relative;
  padding: 18px 56px 18px 22px;
  font-weight: 500; color: var(--navy-deep);
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; line-height: 24px; text-align: center;
  border-radius: 50%; border: 1px solid var(--accent); color: var(--accent);
  font-size: 18px;
}
.faq details[open] summary::after { content: "−"; background: var(--accent); color: #fff; }
.faq details[open] summary { color: var(--accent); }
.faq details p { padding: 0 22px; color: var(--muted); }
.faq details p:last-child { padding-bottom: 8px; }

/* Plans ------------------------------------------------------------------ */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }
.plan {
  display: flex; flex-direction: column;
  padding: 36px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan h3 { font-size: 1.4rem; font-weight: 700; }
.plan-desc { color: var(--muted); min-height: 5em; }
.plan-price { font-size: 3rem; font-weight: 700; color: var(--accent); line-height: 1.1; }
.plan-note { color: var(--muted); font-size: .9rem; min-height: 3em; }
.plan .check-list { text-align: left; flex: 1; }
.plan .btn { align-self: center; }
.plan-featured { border: 2px solid var(--accent); box-shadow: var(--shadow); position: relative; }

/* Contact ---------------------------------------------------------------- */
.section-dark { background: linear-gradient(135deg, var(--navy) 0%, var(--violet) 100%); color: #e8e8f5; }
.section-dark h2 { color: #fff; }
.section-dark a { color: #fff; }
.contact-row { display: grid; grid-template-columns: 2fr 3fr; gap: 60px; }
.contact-info p { margin-bottom: 1.3em; }

.contact-form {
  background: #fff; color: var(--text);
  padding: 34px; border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 500; margin-bottom: 6px; color: var(--navy-deep); }
.field input,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  font: inherit; color: inherit;
  border: 1px solid #d5d5e0; border-radius: 6px;
  background: #fafafd;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(187, 41, 187, .15); background: #fff; }
.field.has-error input,
.field.has-error textarea { border-color: #d93025; }
.field-error { display: block; min-height: 1em; color: #d93025; font-size: .85rem; margin-top: 4px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 16px 0 0; padding: 12px 14px; border-radius: 6px; }
.form-status.is-success { background: #e8f6ec; color: #1e7a3a; }
.form-status.is-error { background: #fdecea; color: #b3261e; }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--navy-deep); color: #aab; padding: 26px 0; font-size: .9rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-inner p { margin: 0; }
.footer-inner img { background: #fff; padding: 6px 10px; border-radius: 6px; box-sizing: content-box; }
.to-top { color: #fff; text-decoration: none; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1080px) {
  .main-nav a { padding: 8px 8px; font-size: .9rem; }
  .brand img { width: 190px; }
}

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .08);
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; padding: 10px 20px 16px; gap: 0; }
  .main-nav a { padding: 12px 0; font-size: 1rem; }
  .main-nav a::after { left: 0; right: auto; width: 30px; }

  .hero-inner,
  .video-row,
  .about-row,
  .contact-row { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 70px; }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .plan-desc,
  .plan-note { min-height: 0; }
}

@media (max-width: 680px) {
  .section { padding: 64px 0; }
  .features { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 18px; }
  .footer-inner { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
