/* ============================================================
   KazDeclaration — styles.css
   Font: Inter | green #2e7941 | lime #cadc07 | text #2b2d33
   ============================================================ */

/* --- @font-face --- */
/* Cyrillic-ext variable (covers Kazakh + extended Cyrillic for all weights) */
@font-face { font-family:'Inter'; font-style:normal; font-weight:100 900; font-display:swap;
  src:url('../assets/fonts/inter_cyrillic-ext.woff2') format('woff2');
  unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
/* Latin-ext variable */
@font-face { font-family:'Inter'; font-style:normal; font-weight:100 900; font-display:swap;
  src:url('../assets/fonts/inter_latin-ext.woff2') format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
/* Static subsets for main weights */
@font-face { font-family:'Inter'; font-style:normal; font-weight:300; font-display:swap;
  src:url('../assets/fonts/inter_300_cyrillic.woff2') format('woff2'); unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:300; font-display:swap;
  src:url('../assets/fonts/inter_300_latin.woff2') format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:400; font-display:swap;
  src:url('../assets/fonts/inter_400_cyrillic.woff2') format('woff2'); unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:400; font-display:swap;
  src:url('../assets/fonts/inter_400_latin.woff2') format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:500; font-display:swap;
  src:url('../assets/fonts/inter_500_cyrillic.woff2') format('woff2'); unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:500; font-display:swap;
  src:url('../assets/fonts/inter_500_latin.woff2') format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:600; font-display:swap;
  src:url('../assets/fonts/inter_600_cyrillic.woff2') format('woff2'); unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:600; font-display:swap;
  src:url('../assets/fonts/inter_600_latin.woff2') format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:700; font-display:swap;
  src:url('../assets/fonts/inter_700_cyrillic.woff2') format('woff2'); unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:700; font-display:swap;
  src:url('../assets/fonts/inter_700_latin.woff2') format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* --- Variables --- */
:root {
  --green:        #2e7941;
  --green-d:      #256b39;
  --green-hover:  #36914e;
  --lime:         #cadc07;
  --lime-hover:   #b8c906;
  --lime-card:    #f3faa4;
  --lime-kgd:     #f1f8a8;
  --cream:        #fdfff0;
  --gray-card:    #f3f3f3;
  --text:         #2b2d33;
  --text-2:       #6a6d73;
  --bg-footer:    #ececec;
  --dark-btn:     #2b2d33;
  --font:         'Inter', Arial, sans-serif;
  --container:    1200px;
  --header-h:     74px;
  --ease:         .2s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { background: none; border: none; cursor: pointer; font-family: var(--font); }
::selection { background: var(--lime); color: var(--text); }

/* WCAG 2.4.7 — focus visible for keyboard users */
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: var(--green); color: #fff;
  padding: 10px 18px; border-radius: 0 0 8px 8px;
  font-size: 14px; font-weight: 600; z-index: 9999;
  transition: top .15s;
}
.skip-link:focus { top: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 40px; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease);
  text-align: center;
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn--green  { background: var(--green); color: #fff; border-color: var(--green); }
.btn--green:hover  { background: var(--green-hover); border-color: var(--green-hover); }
.btn--lime   { background: var(--lime); color: var(--text); border-color: var(--lime); }
.btn--lime:hover   { background: var(--lime-hover); border-color: var(--lime-hover); }
.btn--dark   { background: var(--dark-btn); color: #fff; border-color: var(--dark-btn); }
.btn--dark:hover   { background: #000; border-color: #000; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: #fff;
  box-shadow: 0 1px 10px rgba(0,0,0,.06);
}
.site-header .container {
  display: flex; align-items: center; height: 100%;
}
.site-header__logo { flex-shrink: 0; }
.site-header__logo img { height: 42px; width: auto; }

/* Nav centered between logo and right block */
.site-header__nav {
  flex: 1;
  display: flex; justify-content: center; gap: 32px;
}
.site-header__nav a {
  font-size: 15px; font-weight: 400; color: var(--text);
  transition: color var(--ease);
  padding-bottom: 3px;
}
.site-header__nav a:hover { color: var(--green); }
.site-header__nav a.active {
  border-bottom: 1.5px solid var(--green);
  color: var(--green);
}

/* Right block — social icons + CTA button */
.site-header__right { flex-shrink: 0; display: flex; align-items: center; gap: 8px; }
.site-header__social { display: flex; gap: 8px; align-items: center; margin-right: 12px; }
.social-circle {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: transform var(--ease), opacity var(--ease);
}
.social-circle:hover { transform: translateY(-2px); opacity: .75; }
.social-circle img { width: 36px; height: 36px; display: block; }

.site-header__cta { flex-shrink: 0; padding: 10px 24px; }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; margin-left: auto; }
.hamburger span { display: block; width: 26px; height: 2px; background: var(--text); border-radius: 2px; }

/* MOBILE MENU */
.mobile-menu {
  position: fixed; inset: 0; background: #fff; z-index: 200;
  display: flex; flex-direction: column; padding: 22px 26px 36px;
  transform: translateX(100%); transition: transform .3s ease;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 50px; }
.mobile-menu__logo img { height: 38px; }
.mobile-menu__close { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; }
.mobile-menu__nav { display: flex; flex-direction: column; align-items: center; gap: 30px; flex: 1; justify-content: center; }
.mobile-menu__nav a { font-size: 22px; font-weight: 500; }
.mobile-menu__social { display: flex; gap: 16px; justify-content: center; }
.mobile-menu__social .social-circle img { width: 48px; height: 48px; }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 199; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.overlay.is-open { opacity: 1; pointer-events: all; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(108deg, #2c7d44 0%, #389651 52%, #84b526 86%, #cadc07 100%);
  min-height: 540px;
  display: flex; align-items: center;
}
.hero__inner { position: relative; width: 100%; padding: 80px 0; z-index: 2; }
.hero__content { max-width: 600px; color: #fff; }
.hero__title { font-size: 56px; font-weight: 700; line-height: 1.05; margin-bottom: 28px; }
.hero__lead { font-size: 18px; font-weight: 500; line-height: 1.55; margin-bottom: 18px; color: #f1f8a8; }
.hero__text { font-size: 15px; font-weight: 400; line-height: 1.7; margin-bottom: 32px; max-width: 560px; }
.hero__leaf {
  position: absolute;
  top: 50%;
  right: 8%;
  transform: translateY(-50%);
  z-index: 2;
  pointer-events: none;
}
.hero__leaf svg { display: block; }

/* ============================================================
   SECTION HELPERS
   ============================================================ */
.section-title { font-size: 32px; font-weight: 700; text-align: center; margin-bottom: 48px; color: var(--text); }
.section-title--upper { text-transform: uppercase; letter-spacing: .06em; }

/* ============================================================
   SERVICES  #nashy-uslugi
   ============================================================ */
.services { padding: 78px 0; background: #fff; }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 40px 30px 34px;
  border-radius: 16px;
  background: #fff;
  /* fix #4: no border */
  box-shadow: 0 6px 26px rgba(0,0,0,.05);
  transition: box-shadow var(--ease), transform var(--ease);
}
.service-card:hover { box-shadow: 0 12px 38px rgba(0,0,0,.1); transform: translateY(-4px); }
.service-card__icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--lime-card);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.service-card__icon img { width: 32px; height: 32px; }
.service-card__title { font-size: 19px; font-weight: 700; margin-bottom: 14px; }
.service-card__text { font-size: 14px; line-height: 1.65; color: var(--text-2); flex: 1; margin-bottom: 26px; }
.service-card .btn { font-size: 12px; white-space: nowrap; width: fit-content; }

/* ============================================================
   FORM 270
   ============================================================ */
.form270 {
  background: #fff url('../assets/images/form-270.webp') left center / auto 100% no-repeat;
  padding: 80px 0;
}
.form270__text-col {
  margin-left: auto;
  width: 50%;
  display: flex; flex-direction: column;
}
.form270__title { font-size: 42px; font-weight: 700; margin-bottom: 22px; letter-spacing: .04em; }
.form270__text { font-size: 16px; line-height: 1.7; color: var(--text-2); margin-bottom: 32px; max-width: 420px; }
.form270 .btn { align-self: flex-start; }

/* ============================================================
   KGD NOTICE   (lime bg, left aligned)
   ============================================================ */
.kgd-notice { background: var(--lime-kgd); padding: 64px 0; }
.kgd-notice__title { font-size: 34px; font-weight: 700; margin-bottom: 20px; }
.kgd-notice__text { font-size: 16px; line-height: 1.7; color: #4b4e54; max-width: 620px; margin-bottom: 32px; }

/* ============================================================
   EXPERTS  #expert   (photo left, gray card right)
   ============================================================ */
.experts { background: #fff; padding: 70px 0; }
.expert { padding: 22px 0; }
.expert__inner { display: grid; grid-template-columns: 0.85fr 1fr; gap: 36px; align-items: stretch; }
.expert__photo img {
  width: 100%; height: 100%; min-height: 380px;
  object-fit: cover; object-position: center top;
  border-radius: 22px; background: #111;
}
.expert__card {
  background: var(--gray-card);
  border-radius: 22px;
  padding: 44px 48px;
  display: flex; flex-direction: column; justify-content: center;
}
.expert__role { font-size: 15px; color: var(--text-2); margin-bottom: 14px; }
.expert__name-first { font-size: 26px; font-weight: 700; color: var(--green); line-height: 1.1; }
.expert__name-last { font-size: 40px; font-weight: 700; color: var(--text); letter-spacing: .08em; line-height: 1.1; margin-bottom: 28px; }
.expert__bio { display: flex; flex-direction: column; gap: 20px; }
.expert__bio li { font-size: 20px; line-height: 1.5; color: var(--text-2); padding-left: 38px; position: relative; }
.expert__bio li::before {
  content: ''; position: absolute; left: 0; top: 3px;
  width: 24px; height: 24px;
  background: url('../assets/images/icon-check.svg') center/contain no-repeat;
}
.expert__bio b { color: var(--green); font-weight: 700; }

/* ============================================================
   CONSULTATION STEPS  (timeline)
   ============================================================ */
.consult-steps { background: var(--cream); padding: 78px 0; }
.consult-steps__title { font-size: 30px; font-weight: 700; text-align: center; margin: 0 auto 56px; max-width: 520px; line-height: 1.25; }
.timeline { position: relative; max-width: 940px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 8px; bottom: 8px; width: 2px; background: #d3dbb3; transform: translateX(-50%); }
.tl-item { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 56px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-item__dot {
  position: absolute; left: 50%; top: 4px; transform: translateX(-50%);
  width: 22px; height: 22px; border-radius: 3000px;
  background: linear-gradient(0deg, rgba(44,121,65,1) 0%, rgba(56,150,81,1) 100%);
  box-shadow: 0px 10px 30px 0px rgba(48,121,68,1);
  z-index: 2;
}
.tl-item__content {
  padding: 0 56px;
  opacity: 0;
  transition: transform .6s cubic-bezier(.22,.68,0,1.2), opacity .5s ease;
}
.tl-item--left  .tl-item__content { grid-column: 1; text-align: right; transform: translateX(60px); }
.tl-item--right .tl-item__content { grid-column: 2; text-align: left;  transform: translateX(-60px); }
.tl-item--visible .tl-item__content { opacity: 1; transform: translateX(0); }
.tl-item__title { font-size: 19px; font-weight: 700; color: var(--green); margin-bottom: 12px; line-height: 1.25; }
.tl-item__text { font-size: 14px; line-height: 1.6; color: var(--text-2); }

/* ============================================================
   LETTERS  (gray container + slider, no dots)
   ============================================================ */
.letters { background: #fff; padding: 40px 0 78px; }
.letters__box {
  background: var(--gray-card); border-radius: 26px; padding: 54px 48px 60px;
  will-change: transform;
  transform-origin: center center;
}
.letters .section-title { margin-bottom: 40px; }

/* shared slider */
.slider-wrap { position: relative; }
.slider-viewport { overflow: hidden; }
.slider-track { display: flex; gap: 24px; transition: transform .45s cubic-bezier(.25,.46,.45,.94); }
.slider-track .slide { flex: 0 0 calc((100% - 48px) / 3); min-width: 0; }
.letters .slide img {
  width: 100%; border-radius: 0; box-shadow: 0 4px 22px rgba(0,0,0,.1); background:#fff;
  cursor: zoom-in;
}
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.slider-dots button { width: 9px; height: 9px; border-radius: 50%; background: #cfd2d6; transition: background var(--ease); }
.slider-dots button.active { background: var(--green); }

/* ============================================================
   CASES  #keisy   (lime cards slider + arrows in header)
   ============================================================ */
.cases { background: #fff; padding: 70px 0 78px; }
.cases__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.cases__title { font-size: 32px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.cases__nav { display: flex; gap: 14px; }
.slider-arrow {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid #c9ccd0; background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--ease), background var(--ease);
}
.slider-arrow:hover { border-color: var(--green); background: var(--green); }
.slider-arrow:hover svg path { stroke: #fff; }
.slider-arrow svg { width: 20px; height: 20px; }
.cases .slider-track .slide { flex: 0 0 calc((100% - 48px) / 3); }
.case-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 30px 28px;
  height: 100%;
  font-size: 14px; line-height: 1.6; color: #3a3d42;
}
.case-card::before {
  content: attr(data-n);
  position: absolute;
  top: 24px; left: 24px;
  font-size: 100px; font-weight: 700; line-height: 1;
  color: #307944; opacity: .1;
  pointer-events: none; user-select: none;
}
.cases .slide:nth-child(odd)  .case-card { background: var(--lime-card); }
.cases .slide:nth-child(even) .case-card { background: #fbffd2; }

/* ============================================================
   MATERIALS  #poleznye-materialy
   ============================================================ */
.materials { background: #fff; padding: 30px 0 80px; }
.materials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 30px; }
.article-card { display: block; transition: transform var(--ease); cursor: pointer; }
.article-card:hover { transform: translateY(-3px); }
.article-card__img {
  aspect-ratio: 4 / 3;
  border-radius: 12px; overflow: hidden; margin-bottom: 16px;
  box-shadow: 0 6px 22px rgba(0,0,0,.08);
}
.article-card__img img { width: 100%; height: 100%; object-fit: cover; }
.article-card__title { font-size: 15px; font-weight: 500; line-height: 1.45; color: var(--text); transition: color var(--ease); }
.article-card:hover .article-card__title { color: var(--green); }
.article-card--hidden { display: none; }
@keyframes fadeUp { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:translateY(0); } }
.article-card--hidden.is-visible { display: block; animation: fadeUp .45s ease both; }
.materials__more { text-align: center; margin-top: 46px; }
.materials__more-btn {
  color: #fff;
  background: linear-gradient(0turn, #2c7941 0%, #389651 100%);
  border: none; border-radius: 10px;
  padding: 14px 36px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  cursor: pointer;
  transition: opacity .2s ease;
}
.materials__more-btn:hover { opacity: .85; }

/* ============================================================
   CONTACT  #kontakty
   ============================================================ */
.contact { background: #fff; padding: 30px 0 80px; }
.contact__grid { display: grid; grid-template-columns: 0.8fr 1fr; gap: 60px; align-items: center; }
.contact__card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 42px;
  box-shadow: 0 8px 40px rgba(0,0,0,.10);
}
.contact__card-title { font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 28px; }
.contact__row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.contact__row:last-child { margin-bottom: 0; }
.contact__row img { width: 24px; height: 24px; flex-shrink: 0; }
.contact__row a { font-size: 17px; font-weight: 500; transition: color var(--ease); }
.contact__row a:hover { color: var(--green); }
.contact__cta-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.contact__cta-head img { width: 28px; height: 28px; }
.contact__cta-title { font-size: 22px; font-weight: 700; }
.contact__cta-sub { font-size: 15px; color: var(--text-2); line-height: 1.6; margin-bottom: 26px; max-width: 380px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--bg-footer); padding: 50px 0 40px; }
.site-footer__top { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 48px; align-items: start; }
.site-footer__logo { height: 40px; width: auto; margin-bottom: 20px; }
.site-footer__legal { font-size: 13px; line-height: 1.7; color: #6a6d73; }
.site-footer__legal span { display: block; }
.site-footer__legal .copy { margin-bottom: 12px; color: var(--text); }
.site-footer__nav { display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
.site-footer__nav a { font-size: 14px; transition: color var(--ease); }
.site-footer__nav a:hover { color: var(--green); }
.site-footer__right { display: flex; flex-direction: column; align-items: flex-end; gap: 22px; }
.site-footer__social { display: flex; gap: 10px; }
.site-footer__raem { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #6a6d73; }
.site-footer__raem img { height: 20px; }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(0,0,0,.22);
  transition: transform var(--ease), box-shadow var(--ease);
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(0,0,0,.28); }
.wa-float img { width: 32px; height: 32px; filter: brightness(0) invert(1); }

/* ============================================================
   ARTICLE MODAL
   ============================================================ */
.art-modal {
  position: fixed; inset: 0; z-index: 400;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.art-modal.is-open { opacity: 1; pointer-events: all; }
.art-modal__overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
}
.art-modal__panel {
  position: relative; z-index: 1;
  background: #fff; border-radius: 20px;
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,.22);
  transform: translateY(16px);
  transition: transform .25s ease;
}
.art-modal.is-open .art-modal__panel { transform: translateY(0); }
.art-modal__close {
  position: sticky; top: 16px; float: right;
  margin: 16px 16px 0 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gray-card); color: var(--text);
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; flex-shrink: 0;
  transition: background var(--ease);
}
.art-modal__close:hover { background: #e2e2e2; }
.art-modal__body { padding: 0 48px 48px; }
.art-modal__body::after { content: ''; display: table; clear: both; }
.art-modal__img {
  width: 100%; border-radius: 14px;
  margin-bottom: 28px;
  box-shadow: 0 6px 28px rgba(0,0,0,.1);
}
.art-modal__title {
  font-size: 24px; font-weight: 700; line-height: 1.25;
  margin-bottom: 24px; color: var(--text);
}
.art-modal__text { font-size: 15px; line-height: 1.75; color: #4b4e54; }
.art-modal__text p { margin-bottom: 16px; }
.art-modal__text p:last-child { margin-bottom: 0; }
.art-modal__text strong { color: var(--text); font-weight: 600; }
.art-modal__text .art-num { color: var(--green); font-weight: 700; }

@media (max-width: 640px) {
  .art-modal__body { padding: 0 20px 32px; }
  .art-modal__title { font-size: 20px; }
  .art-modal__text { font-size: 14px; }
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,.88);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
  cursor: pointer;
}
.lightbox.is-open { opacity: 1; pointer-events: all; }
.lightbox__img {
  max-width: 90vw; max-height: 90vh;
  border-radius: 8px; object-fit: contain;
  cursor: default;
  box-shadow: 0 20px 80px rgba(0,0,0,.5);
}
.lightbox__close {
  position: absolute; top: 20px; right: 28px;
  color: #fff; font-size: 42px; line-height: 1;
  background: none; border: none; cursor: pointer; opacity: .7;
  font-family: var(--font);
}
.lightbox__close:hover { opacity: 1; }

/* ============================================================
   RESPONSIVE — ≤ 980px
   ============================================================ */
@media (max-width: 980px) {
  .container { padding: 0 24px; }
  .site-header__nav, .site-header__right { display: none; }
  .hamburger { display: flex; }

  .hero { min-height: 460px; }
  .hero__title { font-size: 40px; }
  .hero__lead { font-size: 16px; }
  .hero__leaf { display: none; }

  .services__grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }

  .form270__text-col { width: 100%; background: rgba(255,255,255,.82); backdrop-filter: blur(4px); border-radius: 12px; padding: 36px 28px; }
  .form270__title { font-size: 34px; }
  .form270 .btn { white-space: normal; text-align: center; }

  .expert__inner { grid-template-columns: 1fr; gap: 24px; }
  .expert__photo img { min-height: 320px; max-height: 420px; }
  .expert__card { padding: 36px 32px; }
  .expert__bio li { font-size: 17px; }

  .timeline::before { left: 18px; }
  .tl-item { grid-template-columns: 1fr; }
  .tl-item__dot { left: 18px; }
  .tl-item__content,
  .tl-item--left .tl-item__content,
  .tl-item--right .tl-item__content { grid-column: 1; text-align: left; padding: 0 0 0 52px; transform: none; opacity: 1; }

  .slider-track .slide,
  .cases .slider-track .slide { flex: 0 0 calc((100% - 24px) / 2); }

  .materials__grid { grid-template-columns: 1fr 1fr; }

  .contact__grid { grid-template-columns: 1fr; gap: 32px; }

  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .site-footer__right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ============================================================
   RESPONSIVE — ≤ 640px
   ============================================================ */
@media (max-width: 640px) {
  :root { --header-h: 62px; }
  .container { padding: 0 16px; }
  .site-header__logo img { height: 34px; }
  .section-title--upper { letter-spacing: .02em; font-size: 21px; }

  .hero { min-height: auto; }
  .hero__inner { padding: 52px 0; }
  .hero__title { font-size: 32px; }
  .hero__lead { font-size: 15px; }
  .services { padding: 50px 0; }
  .section-title { font-size: 24px; margin-bottom: 32px; }

  .form270__title { font-size: 28px; }

  .kgd-notice { padding: 44px 0; }
  .kgd-notice__title { font-size: 26px; }

  .experts { padding: 44px 0; }
  .expert__name-last { font-size: 32px; }
  .expert__card { padding: 30px 24px; }
  .expert__bio li { font-size: 15px; }

  .consult-steps { padding: 50px 0; }
  .consult-steps__title { font-size: 22px; margin-bottom: 40px; }
  .tl-item { margin-bottom: 40px; }

  .letters { padding: 24px 0 50px; }
  .letters__box { padding: 36px 20px 40px; border-radius: 18px; }

  .cases { padding: 44px 0 50px; }
  .cases__head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .cases__title { font-size: 26px; }
  .cases .slider-track .slide { flex: 0 0 88%; }

  .materials { padding: 20px 0 50px; }
  .materials__grid { grid-template-columns: 1fr; gap: 28px; }

  .contact { padding: 20px 0 50px; }
  .contact__card { padding: 30px 24px; }

  .site-footer { padding: 40px 0 28px; }
  .site-footer__top { grid-template-columns: 1fr; gap: 28px; }
  .site-footer__right { flex-direction: column; align-items: flex-start; gap: 18px; }

  .wa-float { width: 50px; height: 50px; bottom: 18px; right: 14px; }
  .wa-float img { width: 28px; height: 28px; }
}
