/* QazCard AI — статический лендинг; палитра в духе флага РК: небесно-голубой + золото */

:root {
  --kaz-sky: #00afca;
  --kaz-sky-dark: #008fa8;
  --kaz-sky-deep: #006b82;
  --kaz-gold: #e6b31e;
  --kaz-gold-bright: #f5c842;
  --kaz-gold-dark: #b8890a;
  --bg: #e8f5f9;
  --bg-card: #ffffff;
  --text: #0c2d38;
  --muted: #4a6e7a;
  --primary: var(--kaz-sky);
  --primary-dark: var(--kaz-sky-dark);
  --accent: var(--kaz-gold);
  --border: #b8dce6;
  --gradient: linear-gradient(
    150deg,
    #7dcee0 0%,
    #c8ebf2 40%,
    #f0f7fa 70%,
    #fff6d9 100%
  );
  --shadow: 0 4px 24px rgba(0, 80, 100, 0.1);
  --radius: 1rem;
  --radius-lg: 1.25rem;
  --max: 72rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1rem;
}

a {
  color: var(--kaz-sky-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(230, 179, 30, 0.15);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: var(--kaz-sky-dark);
}

.logo img {
  width: 4rem;
  height: 4rem;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
}

.nav-desktop a {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav-desktop a:hover {
  color: var(--text);
  text-decoration: none;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-toggle {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.nav-panel {
  display: none;
  width: 100%;
  flex-direction: column;
  gap: 0.5rem;
  padding-bottom: 1rem;
}

.nav-panel--open {
  display: flex;
}

.nav-panel a {
  padding: 0.5rem 0;
  color: var(--text);
  font-weight: 500;
}

@media (min-width: 900px) {
  .nav-panel {
    display: none !important;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary {
  background: linear-gradient(180deg, var(--kaz-sky) 0%, var(--kaz-sky-dark) 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 111, 130, 0.25);
}

.btn--primary:hover {
  background: linear-gradient(180deg, #00b8d4 0%, var(--kaz-sky-deep) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 90, 108, 0.3);
}

.btn--secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--secondary:hover {
  background: #f2fafc;
  border-color: var(--kaz-sky);
  color: var(--kaz-sky-deep);
}

.btn--lg {
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

/* Hero */
.hero {
  background: var(--gradient);
  padding: 3.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 90% 55% at 50% 0%,
    rgba(230, 179, 30, 0.14) 0%,
    rgba(0, 175, 202, 0.08) 40%,
    transparent 70%
  );
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 48rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero__lead {
  font-size: 1.125rem;
  color: var(--muted);
  margin: 0 0 2rem;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

.hero__sub {
  margin-top: 1.5rem;
  font-size: 0.9375rem;
}

.hero__sub a {
  font-weight: 600;
}

/* Sections */
section {
  padding: 3.5rem 0;
}

section:nth-child(even) {
  background: #f6fcfe;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.section__subtitle {
  text-align: center;
  color: var(--muted);
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  font-size: 1.0625rem;
}

/* Grid cards */
.grid-3 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3--6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card--media {
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.card--media .card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #b8e4f0 0%, #e8d9a6 100%);
  overflow: hidden;
}

.card--media .card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.card--media:hover .card__media img {
  transform: scale(1.03);
}

.card--media .card__body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Steps */
.steps {
  display: grid;
  gap: 1rem;
  max-width: 50rem;
  margin: 0 auto;
  counter-reset: step;
}

.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}

.step__num {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--kaz-sky) 0%, var(--kaz-gold) 100%);
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 40, 50, 0.35);
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 100, 120, 0.2);
}

.step p {
  margin: 0;
  font-weight: 500;
  padding-top: 0.2rem;
}

/* Big CTA cards */
.grid-cta {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .grid-cta {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card--cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem;
}

.card--cta.card--media {
  padding: 0;
  align-items: stretch;
}

.card--cta .card__media {
  aspect-ratio: 16 / 11;
}

.card--cta .card__body {
  padding: 1.5rem 1.5rem 2rem;
  align-items: center;
  text-align: center;
}

.card--cta h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card--cta p {
  flex: 1;
  margin-bottom: 1.25rem;
}

/* Badges */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  max-width: 50rem;
  margin: 0 auto 1.5rem;
}

.badge {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  background: linear-gradient(180deg, #fff 0%, #f8fdff 100%);
  border: 1px solid #9fd4e0;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--kaz-sky-deep);
}

/* FAQ */
.faq {
  max-width: 40rem;
  margin: 0 auto;
}

.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 0.5rem;
  padding: 0.25rem 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.75rem 0;
  list-style: none;
}

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

.faq details[open] summary {
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.5rem;
}

.faq p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Final CTA */
.final-cta {
  text-align: center;
  background: linear-gradient(135deg, #d4f0f7 0%, #fff9e6 100%);
  border: 1px solid #7ec9d6;
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  max-width: 40rem;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.final-cta h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
}

.final-cta p {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.final-cta .btn + .btn {
  margin-top: 0.75rem;
}

@media (min-width: 480px) {
  .final-cta__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
  }
  .final-cta .btn + .btn {
    margin-top: 0;
  }
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, #003d4d 0%, #002a35 100%);
  color: #9ecad4;
  padding: 3rem 0 2rem;
  font-size: 0.875rem;
}

.site-footer a {
  color: #d4eef3;
}

.site-footer a:hover {
  color: var(--kaz-gold-bright);
}

.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  margin: 0 0 1rem;
}

.footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__links li {
  margin-bottom: 0.5rem;
}

.footer__legal {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #1a5a6b;
  text-align: center;
}

/* Audience grid */
.grid-audience {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 700px) {
  .grid-audience {
    grid-template-columns: repeat(3, 1fr);
  }
}

.audience-card {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow);
}

.audience-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #7dcee0 0%, #e6b31e 100%);
  overflow: hidden;
}

.audience-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.audience-card:hover .audience-card__media img {
  transform: scale(1.04);
}

.audience-card__text {
  margin: 0;
  padding: 1rem 0.9rem 1.2rem;
  color: var(--text);
  line-height: 1.4;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
