/* ==========================================================================
   zhainamaz.kz — Электронды жайнамаз
   Mobile-first. Breakpoint-тар: 576px, 976px.
   Бір ғана қаріп отбасы: system font stack (сыртқы қаріп жүктелмейді).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Айнымалылар (токендер)
   -------------------------------------------------------------------------- */
:root {
  /* Негізгі түстер */
  --green:        #1B7865;   /* негізгі */
  --green-dark:   #12594B;
  --green-darker: #0D4238;
  --green-mid:    #4BA18F;   /* градиент акценті */
  --cta:          #29B99C;   /* CTA батырма */
  --cta-dark:     #1FA085;

  --green-050:    #F1F8F6;
  --green-100:    #DCEDE8;

  --ink:          #16211E;
  --ink-soft:     #3B4B46;
  --ink-muted:    #62726C;

  --bg:           #FBFAF7;
  --surface:      #FFFFFF;
  --line:         #E5E2DA;

  --whatsapp:     #25D366;

  /* Пішін */
  --radius:       16px;
  --radius-lg:    24px;
  --radius-pill:  999px;

  --shadow-sm:    0 1px 2px rgba(15, 68, 56, .06), 0 4px 12px rgba(15, 68, 56, .05);
  --shadow-md:    0 2px 8px rgba(15, 68, 56, .08), 0 16px 40px rgba(15, 68, 56, .10);

  --wrap:         1140px;
  --pad:          1.25rem;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
}

/* --------------------------------------------------------------------------
   2. Негіз
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }

h1, h2, h3 {
  margin: 0 0 .6em;
  line-height: 1.22;
  color: var(--green-darker);
  font-weight: 700;
  letter-spacing: -.01em;
}
h1 { font-size: 1.95rem; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.12rem; }

p  { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-inline-start: 1.3em; }
li { margin-bottom: .4em; }

:focus-visible {
  outline: 3px solid var(--cta);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection { background: var(--green-100); color: var(--green-darker); }

/* Көмекші кластар */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.section { padding-block: 3rem; }
.center  { text-align: center; }
.page    { display: flex; flex-direction: column; min-height: 100vh; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: .75rem 1.25rem;
  background: var(--green);
  color: #fff;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Батырмалар
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .95rem 1.75rem;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease,
              color .2s ease, box-shadow .2s ease;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg    { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }

.btn--cta {
  background: var(--cta);
  color: #08312A;
  box-shadow: var(--shadow-sm);
}
.btn--cta:hover {
  background: var(--cta-dark);
  color: #08312A;
  box-shadow: var(--shadow-md);
}

.btn--light { background: #fff; color: var(--green-dark); }
.btn--light:hover { background: var(--green-050); color: var(--green-darker); }

.btn--outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .65); }
.btn--outline:hover { background: #fff; color: var(--green-dark); border-color: #fff; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  align-items: center;
}
.btn-row--center { justify-content: center; }

/* --------------------------------------------------------------------------
   4. Хедер
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--green);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  min-height: 64px;
}

.brand { flex: none; display: inline-flex; align-items: center; }
.brand img { width: 118px; height: auto; }

.site-nav { margin-inline-start: auto; }
.site-nav ul {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav li { margin: 0; }
.site-nav a {
  display: block;
  padding: .5rem .7rem;
  font-size: .92rem;
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, .88);
  font-weight: 500;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.site-nav a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, .2);
  color: #fff;
  font-weight: 600;
}

/* Тіл ауыстырғыш */
.lang {
  flex: none;
  display: flex;
  gap: .15rem;
  padding: .2rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, .18);
}
.lang a {
  display: block;
  padding: .35rem .55rem;
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, .8);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.lang a:hover { color: #fff; }
.lang a[aria-current="true"] { background: #fff; color: var(--green-dark); }

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 55%, var(--green-mid) 100%);
}

/* Геометриялық өрнек — тек безендіру үшін */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .14;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.2'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30 Z'/%3E%3Cpath d='M30 12 L48 30 L30 48 L12 30 Z'/%3E%3C/g%3E%3C/svg%3E");
}

.hero .wrap {
  position: relative;
  z-index: 2;
  padding-block: 2.5rem 3rem;
}

.hero h1 { color: #fff; margin-bottom: .5rem; }

.hero__lead {
  margin-bottom: 1.75rem;
  color: rgba(255, 255, 255, .93);
  font-size: 1.1rem;
}

.hero__media { margin-bottom: 2rem; }
.hero__media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 20px 50px rgba(6, 42, 34, .3);
}

/* Декоративті жапырақтар */
.leaf {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  opacity: .9;
}
.leaf--1 { top: 12%;  right: -70px; width: 150px; }
.leaf--2 { bottom: -30px; left: -60px; width: 150px; }
.leaf img { width: 100%; height: auto; }

/* --------------------------------------------------------------------------
   6. Ерекшеліктер
   -------------------------------------------------------------------------- */
.features { background: var(--surface); }

.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

.feature {
  padding: 1.6rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.feature:hover {
  transform: translateY(-3px);
  border-color: var(--green-100);
  box-shadow: var(--shadow-md);
}

.feature__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 16px;
  background: var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature__icon svg { width: 27px; height: 27px; fill: var(--green); }

.feature h3 { margin: 0; }

/* --------------------------------------------------------------------------
   7. Callout
   -------------------------------------------------------------------------- */
.callout {
  position: relative;
  overflow: hidden;
  padding-block: 3rem;
  color: #fff;
  background: linear-gradient(90deg, var(--green-mid) 0%, var(--green) 100%);
  text-align: center;
}
.callout::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .12;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23fff' stroke-width='1'%3E%3Ccircle cx='20' cy='20' r='14'/%3E%3Ccircle cx='0' cy='20' r='14'/%3E%3Ccircle cx='40' cy='20' r='14'/%3E%3C/g%3E%3C/svg%3E");
}
.callout .wrap { position: relative; z-index: 1; }
.callout h2 { color: #fff; }

/* --------------------------------------------------------------------------
   8. Соцжелілер
   -------------------------------------------------------------------------- */
.socials { padding-block: 2.5rem; text-align: center; }
.socials h2 { font-size: 1.25rem; }

.socials__list {
  display: flex;
  justify-content: center;
  gap: .85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.socials__list li { margin: 0; }
.socials__list a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--green-100);
  transition: background .2s ease, transform .2s ease;
}
.socials__list a:hover { background: var(--cta); transform: translateY(-3px); }
.socials__list svg { width: 23px; height: 23px; fill: var(--green-dark); }
.socials__list a:hover svg { fill: #fff; }

/* --------------------------------------------------------------------------
   9. Ішкі беттер (сертификат)
   -------------------------------------------------------------------------- */
.page-head {
  padding-block: 2.25rem;
  background: var(--green-050);
  border-bottom: 1px solid var(--green-100);
}
.page-head p:last-child { margin-bottom: 0; }

.breadcrumbs { padding-block: 1rem; font-size: .88rem; color: var(--ink-muted); }
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.breadcrumbs li { display: flex; align-items: center; gap: .4rem; margin: 0; }
.breadcrumbs li + li::before { content: "/"; color: var(--line); }
.breadcrumbs a { color: var(--ink-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--green); text-decoration: underline; }

.cert { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
.cert__img {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-md);
}
.cert__img img { width: 100%; height: auto; }
.cert__body p:last-child { margin-bottom: 0; }

.note {
  margin: 0 0 1.5rem;
  padding: 1.15rem 1.35rem;
  border-inline-start: 4px solid var(--cta);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--green-050);
}
.note p:last-child { margin-bottom: 0; }
.note strong { color: var(--green-darker); }

/* --------------------------------------------------------------------------
   10. Футер
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  background: var(--green-darker);
  color: rgba(255, 255, 255, .78);
}
.site-footer a { color: rgba(255, 255, 255, .88); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  padding-block: 2.5rem;
}
.footer-grid h2 { margin-bottom: .8rem; color: #fff; font-size: 1.02rem; }
.footer-grid p  { margin-bottom: .45rem; font-size: .95rem; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid li { margin-bottom: .45rem; }

.footer__brand img { width: 160px; height: auto; margin-bottom: 1rem; }

.footer__phone { font-size: 1.15rem; font-weight: 700; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  justify-content: space-between;
  padding-block: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .87rem;
  color: rgba(255, 255, 255, .62);
}

/* --------------------------------------------------------------------------
   11. Қалқымалы WhatsApp батырмасы
   -------------------------------------------------------------------------- */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--whatsapp);
  box-shadow: 0 8px 24px rgba(4, 52, 32, .28);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* --------------------------------------------------------------------------
   12. ≥ 576px
   -------------------------------------------------------------------------- */
@media (min-width: 576px) {
  :root { --pad: 1.75rem; }

  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.85rem; }

  .section { padding-block: 3.75rem; }

  .hero .wrap    { padding-block: 3rem 3.5rem; }
  .hero__lead    { font-size: 1.2rem; }
  .hero__media   { max-width: 420px; margin-inline: auto; }

  .site-header .wrap { gap: .75rem; }
  .brand img       { width: 150px; }
  .site-nav a      { padding: .5rem .9rem; font-size: .97rem; }
  .lang a          { padding: .35rem .7rem; font-size: .82rem; }

  .features__grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }

  .leaf--1 { width: 190px; right: -60px; }
  .leaf--2 { width: 190px; left: -50px; }

  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

/* --------------------------------------------------------------------------
   13. ≥ 976px
   -------------------------------------------------------------------------- */
@media (min-width: 976px) {
  :root { --pad: 2rem; }

  body { font-size: 17px; }

  h1 { font-size: 3.1rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.2rem; }

  .section  { padding-block: 5rem; }
  .callout  { padding-block: 4.5rem; }

  .site-header .wrap { min-height: 76px; }
  .brand img { width: 180px; }

  /* Hero — екі бағанды */
  .hero .wrap {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 3.5rem;
    align-items: center;
    padding-block: 5rem;
  }
  .hero__body  { grid-column: 1; }
  .hero__media { grid-column: 2; margin: 0; max-width: none; }
  .hero__lead  { max-width: 34ch; font-size: 1.3rem; }

  .features__grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

  .leaf--1 { width: 267px; top: 18%; right: -90px; }
  .leaf--2 { width: 267px; bottom: -60px; left: -80px; }

  .cert { grid-template-columns: minmax(0, 420px) 1fr; gap: 3rem; }

  .page-head { padding-block: 3rem; }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }

  .wa-float { right: 24px; bottom: 24px; width: 58px; height: 58px; }
  .wa-float svg { width: 30px; height: 30px; }
}

/* --------------------------------------------------------------------------
   14. Қолжетімділік / басып шығару
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .btn:hover, .feature:hover, .wa-float:hover, .socials__list a:hover {
    transform: none;
  }
}

@media print {
  .site-header, .site-footer, .wa-float, .callout, .btn-row, .leaf { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .feature, .cert__img { box-shadow: none; }
}
