:root {
  --blue: #004b93;
  --red: #c9002b;
  --white: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --header-h: 64px;
  --touch: 44px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

html,
body {
  margin: 0;
  padding: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Ubuntu,
    Cantarell,
    Noto Sans,
    sans-serif;
  color: var(--text);
  background: #fff;
  -webkit-text-size-adjust: 100%;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(12px, 4vw, 24px);
}

/* ——— Header ——— */
.header {
  position: sticky;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid #e5e7eb;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-h);
  flex-wrap: nowrap;
}

.logo {
  font-weight: 700;
  color: var(--blue);
  flex-shrink: 0;
}

.nav-desktop {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 8px;
}

.nav-desktop a {
  padding: 8px 10px;
  color: var(--text);
  text-decoration: none;
  border-radius: 6px;
}

.nav-desktop a:hover {
  background: #f3f4f6;
}

.header-login-desktop {
  flex-shrink: 0;
}

.nav-mobile {
  display: none;
  position: relative;
}

.nav-mobile > summary {
  list-style: none;
}

.nav-mobile > summary::-webkit-details-marker {
  display: none;
}

.nav-mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--touch);
  height: var(--touch);
  margin: 0;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
}

.nav-mobile-toggle:hover {
  background: #f9fafb;
}

.burger {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  box-shadow:
    0 -6px 0 var(--text),
    0 6px 0 var(--text);
}

.nav-mobile-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: min(280px, calc(100vw - 32px));
  padding: 12px;
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-mobile-panel a {
  padding: 12px 14px;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
}

.nav-mobile-panel a:hover {
  background: #f3f4f6;
}

.nav-mobile-panel .btn-block {
  margin-top: 8px;
  text-align: center;
}

@media (max-width: 768px) {
  .nav-desktop,
  .header-login-desktop {
    display: none;
  }

  .nav-mobile {
    display: block;
  }
}

/* ——— Buttons ——— */
.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  text-align: center;
  line-height: 1.3;
}

.btn-outline {
  border-color: var(--blue);
  color: var(--blue);
}

.btn-primary {
  background: var(--red);
  color: #fff;
}

.btn-secondary {
  background: #e5f0ff;
  color: var(--blue);
}

.btn-lg {
  padding: 14px 24px;
  font-size: clamp(16px, 2.5vw, 18px);
}

/* ——— Hero ——— */
.hero {
  background: linear-gradient(90deg, #e7f1ff, #ffffff);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(16px, 4vw, 32px);
  align-items: center;
  min-height: min(520px, auto);
  padding-block: clamp(32px, 8vw, 64px);
}

.hero-copy h1 {
  font-size: clamp(26px, 5vw, 40px);
  line-height: 1.15;
  margin: 0 0 12px;
}

.hero-copy p {
  font-size: clamp(15px, 2.2vw, 18px);
  color: var(--muted);
  margin: 0 0 20px;
}

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

.hero-cta .btn {
  flex: 1 1 auto;
  min-width: min(100%, 200px);
}

.mockup {
  border: 8px solid #fff;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  background: #fff;
}

.mockup img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }
}

/* ——— Sections ——— */
.section {
  padding: clamp(40px, 10vw, 64px) 0;
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.section-light {
  background: #f8fafc;
}

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

h3 {
  margin: 0;
  font-size: clamp(18px, 3vw, 22px);
}

.list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: clamp(15px, 2vw, 16px);
  line-height: 1.6;
}

.list li {
  margin-bottom: 10px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px;
}

.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-left: 6px solid var(--blue);
  padding: 16px;
  border-radius: 10px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 4vw, 24px);
  align-items: center;
}

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 12px;
}

.step {
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 14px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(14px, 2vw, 15px);
}

.step span {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}

.gallery-lead {
  color: var(--muted);
  margin: 0 0 20px;
  max-width: 720px;
  font-size: clamp(14px, 2vw, 16px);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(16px, 4vw, 24px);
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.gallery-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gallery-item .mockup {
  margin: 0;
}

.gallery-item figcaption {
  font-size: clamp(14px, 2vw, 15px);
  font-weight: 600;
  color: var(--text);
}

.illu-mock {
  margin-top: 0;
}

/* ——— CTA ——— */
.cta {
  background: linear-gradient(90deg, var(--blue), #0a6ed1);
  color: #fff;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 16px;
  padding: clamp(24px, 6vw, 36px) 0;
  text-align: center;
}

.cta-inner h3 {
  color: #fff;
}

.cta-inner .btn-primary {
  align-self: center;
  max-width: 100%;
}

@media (min-width: 640px) {
  .cta-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }

  .cta-inner .btn-primary {
    align-self: auto;
    flex-shrink: 0;
  }
}

/* ——— Footer ——— */
.footer {
  background: #0b1a2b;
  color: #cbd5e1;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: clamp(24px, 5vw, 28px) 0;
  font-size: clamp(14px, 2vw, 15px);
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.muted {
  color: #94a3b8;
}
