:root{--container:1100px;--soft:#F6F6FB;--accent:#B8D8D8;--muted:#6B7280;--radius:10px}
*{box-sizing:border-box}body{font-family:Inter, Arial, sans-serif;color:#223;line-height:1.45;background:var(--soft);margin:0}
.container{max-width:var(--container);margin:0 auto;padding:2rem}
.header__inner{display:flex;align-items:center;justify-content:space-between}
.logo img{height:36px}
.nav__list{display:flex;gap:1rem;list-style:none;padding:0;margin:0}
.nav__link{color:var(--muted);text-decoration:none}
.hero{padding:3rem 0;background:linear-gradient(180deg,#FFF,#FBFCFF)}
.hero__inner{display:flex;gap:2rem;align-items:center}
.hero__content{flex:1}
.hero__title{font-size:2rem;margin:0 0 .5rem}
.hero__lead{color:var(--muted);margin-bottom:1rem}
.btn{display:inline-block;padding:.6rem 1rem;border-radius:8px;background:#fff;border:1px solid #E6E9EE;color:#223;text-decoration:none}
.btn--primary{background:var(--accent);border-color:transparent;color:#fff}
.cards{display:grid;gap:1rem}
.cards--3up{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.cards--4up{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}
.card{background:#fff;padding:1rem;border-radius:var(--radius);box-shadow:0 1px 6px rgba(34,34,34,.05)}
.icon-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;list-style:none;padding:0}
.icon-list__item{background:#fff;padding:1rem;border-radius:8px}
.stat{background:#fff;padding:1rem;border-radius:8px;text-align:center}
.numbered-steps{list-style:none;padding:0;margin:0;display:grid;gap:.8rem}
.timeline__list{list-style:none;padding:0;margin:0}
.testimonials-carousel{display:grid;gap:1rem}
.faq-accordion__item{background:#fff;border-radius:8px;padding:.6rem;margin-bottom:.6rem}
.feature-masonry{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem}
.logo-wall{display:flex;gap:1rem;align-items:center}
.zebra-list{list-style:none;padding:0;margin:0}
.form{display:grid;gap:.6rem}
.form label{display:block}
.footer__inner{display:flex;gap:1rem;align-items:center;justify-content:space-between;padding:2rem 0}
.img{display:block;margin-top:1rem}
.img img{width:100%;height:auto;border-radius:8px;display:block}
/* accessibility helpers */
.sr-only{position:absolute;left:-10000px}


/* ===== Cookie consent modal ===== */
.cookie-consent {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: end;
  padding: 24px;
  background: rgba(0,0,0,.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 9999;
}

.cookie-consent.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.cookie-consent__card {
  width: min(460px, 100%);
  background: #fff;
  color: #111;
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,.25);
  padding: 26px 26px 20px;
  transform: translateY(14px);
  opacity: 0;
  animation: cookieUp .35s ease forwards;
  сolor:black;
}

.cookie-consent.is-hiding .cookie-consent__card {
  animation: cookieDown .25s ease forwards;
}

.cookie-consent__header{
  display:flex;
  align-items:center;
  gap: 14px;
  margin-bottom: 10px;
}

.cookie-consent__icon{
  width: 38px;
  height: 38px;
  display:grid;
  place-items:center;
  border-radius: 12px;
  background: rgba(0,0,0,.06);
  font-size: 20px;
}

.cookie-consent__title{
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.cookie-consent__text{
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.55;
  opacity: .92;
}

.cookie-consent__actions{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 6px 0 14px;
}

.cookie-consent__btn{
  height: 56px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.18);
  background: #f6f6f6;
  color: #111;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.cookie-consent__btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
}

.cookie-consent__btn--primary{
  background: #2b66d9;
  border-color: #2b66d9;
  color: #fff;
}

.cookie-consent__btn--primary:hover{
  box-shadow: 0 14px 26px rgba(43,102,217,.28);
}

.cookie-consent__more{
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,.08);
  font-size: 16px;
  opacity: .9;
}

.cookie-consent__link{
  color: #2b66d9;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@keyframes cookieUp{
  to { transform: translateY(0); opacity: 1; }
}

@keyframes cookieDown{
  to { transform: translateY(10px); opacity: 0; }
}

@media (max-width: 520px){
  .cookie-consent { padding: 14px; }
  .cookie-consent__card { padding: 18px; border-radius: 14px; }
  .cookie-consent__btn { min-width: 100%; }
  .cookie-consent__text { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce){
  .cookie-consent, .cookie-consent__card { transition: none; animation: none; }
  .cookie-consent__card { transform: none; opacity: 1; }
}


/* ===== Block reveal animation ===== */
main > section {
  opacity: 0;
  transform: translateY(18px);
  animation: blockFadeUp .55s ease-out forwards;
  will-change: transform, opacity;
}

/* stagger (покрокова затримка для перших секцій) */
main > section:nth-of-type(1) { animation-delay: .04s; }
main > section:nth-of-type(2) { animation-delay: .08s; }
main > section:nth-of-type(3) { animation-delay: .12s; }
main > section:nth-of-type(4) { animation-delay: .16s; }
main > section:nth-of-type(5) { animation-delay: .20s; }
main > section:nth-of-type(6) { animation-delay: .24s; }
main > section:nth-of-type(7) { animation-delay: .28s; }
main > section:nth-of-type(8) { animation-delay: .32s; }
main > section:nth-of-type(9) { animation-delay: .36s; }
main > section:nth-of-type(10){ animation-delay: .40s; }
main > section:nth-of-type(11){ animation-delay: .44s; }
main > section:nth-of-type(12){ animation-delay: .48s; }
main > section:nth-of-type(13){ animation-delay: .52s; }
main > section:nth-of-type(14){ animation-delay: .56s; }
main > section:nth-of-type(15){ animation-delay: .60s; }

@keyframes blockFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* optional: легкий hover для “карток/блоків”, якщо такі є */
.card, article, .feature, .pricing-card, .testimonial, .faq-item, .service, .benefit {
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover, article:hover, .feature:hover, .pricing-card:hover, .testimonial:hover, .faq-item:hover, .service:hover, .benefit:hover {
  transform: translateY(-2px);
}

/* accessibility */
@media (prefers-reduced-motion: reduce) {
  main > section { animation: none; opacity: 1; transform: none; }
  .card, article, .feature, .pricing-card, .testimonial, .faq-item, .service, .benefit { transition: none; }
}



:root{
  --bg: #fffef8;
  --surface: #ffffff;
  --text: #101010;
  --muted: #444;
  --primary: #111827;
  --accent: #ef4444;
  --radius: 8px;
  --shadow: 6px 6px 0 #101010;
  --border: 2px solid #101010;
  --font-ui: "Space Grotesk", ui-sans-serif, system-ui;
  --space-1:0.250rem; --space-2:0.500rem; --space-3:0.750rem; --space-4:1.000rem;
  --space-5:1.500rem; --space-6:2.000rem; --space-7:3.000rem;
  --mxw:1280px;

  /* медіа-змінні */
  --media-max-w: 640px;
  --media-max-h: 420px;
  --media-max-w-hero: 520px;
  --media-max-h-hero: 380px;
  --media-max-w-portrait: 420px;
  --media-max-h-portrait: 520px;
}
:root{ color-scheme: light; }
body{
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
}



/* ---------- Base & frame ---------- */
*,
*::before,
*::after{
  box-sizing:border-box;
}

html,body{
  margin:0;
  padding:0;
}

body{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

main{
  flex:1 0 auto;
}

footer{
  margin-top: var(--space-6);
}

/* після футеру нічого не показуємо (якщо модель щось допише — ховаємо) */
footer ~ *{
  display:none !important;
}

/* ---------- Layout ---------- */
.container{
  max-width: var(--mxw);
  margin-inline:auto;
  padding-inline:16px;
}
section{
  padding-block: var(--space-6);
}
@media (min-width: 992px){
  section{ padding-block: calc(var(--space-7) + .5rem); }
}

/* глобальний контроль кольору тексту */
body :where(h1,h2,h3,h4,h5,h6,p,li,span,small,strong,td,th){
  color: var(--text);
}
body :where(.muted,.text-muted,.eyebrow,.section-eyebrow){
  color: var(--muted);
}

/* ---------- Header / Nav ---------- */
header.header,
header{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter:saturate(180%) blur(8px);
  background: color-mix(in oklab, var(--bg), var(--surface) 55%);
  border-bottom: 1px solid color-mix(in oklab, var(--border), transparent 40%);
  color: var(--text);
}

/* усе, що в хедері, успадковує коректний текстовий колір */
header a,
header .logo,
header nav,
header nav a{
  color: var(--text);
}

header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1.5rem;
  padding-block:.75rem;
}

.logo{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  text-decoration:none;
}
.logo img{
  height:50px;
  width:50px;
  display:block;
  object-fit:contain;
  padding:4px;
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--border), transparent 40%);
}

nav.nav{
  display:flex;
  gap:.75rem;
  flex-wrap:wrap;
}
nav.nav a{
  font-size:.95rem;
  opacity:.9;
  text-decoration:none;
}
nav.nav a:hover{
  opacity:1;
  text-decoration:underline;
}

/* посилання */
a{
  color: var(--accent);
}
a:hover{
  color: var(--accent);
  text-decoration: underline;
}

/* ---------- HERO / двоколонки ---------- */
.hero{ background: radial-gradient(30% 30% at 20% 20%, color-mix(in oklab, var(--accent), transparent 82%), transparent 60%); }


/* на десктопі: текст ліворуч, медіа праворуч */
@media (min-width: 992px){
  .hero .container{
    grid-template-columns: 1.15fr .85fr;
  }
  .auto-two > .container{
    grid-template-columns: 1fr 1fr;
  }
  .hero .container > :not(figure),
  .auto-two > .container > :not(figure){
    grid-column: 1;
  }
  .hero .container > figure,
  .auto-two > .container > figure{
    grid-column: 2;
    justify-self: end;
  }
  .hero figure.img,
  .auto-two figure.img{
    max-width: var(--media-max-w-hero);
    max-height: var(--media-max-h-hero);
  }
}

/* ---------- Універсальний стиль для зображень ---------- */
figure.img,
.img{
  width: 100%;
  max-width: var(--media-max-w);
  margin-inline: auto;
  margin-block: 0;
  border-radius: var(--radius) !important; /* захист від дивних форм */
  overflow: hidden;
  display: block;
  background: #111827; /* легкий фон, якщо нема картинки */
}

figure.img img,
.img img{
  width: 100%;
  height: auto;
  max-height: var(--media-max-h);
  object-fit: cover;
  display: block;
}

/* квадратні */
figure.img.img--square,
.img.img--square{
  max-width: min(var(--media-max-w), 420px);
  max-height: min(var(--media-max-h), 420px);
}

/* портретні */
figure.img.img--portrait,
.img.img--portrait{
  
  max-width: var(--media-max-w-portrait);
  max-height: var(--media-max-h-portrait);
}

/* невеликі відступи від тексту */
figure.img + *{ margin-top: 1.25rem; }
* + figure.img{ margin-top: 1.25rem; }

/* ---------- Cards / Grids ---------- */
.cards,
.features,
.portfolio,
.benefits,
.pricing-plans,
.instructors{
  display:grid;
  gap:20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card{
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
  padding: 1rem;
  height:100%;
}
.card:hover{ transform: translateY(-2px); }

/* ---------- Typography & section headers ---------- */
h1{
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem);
  line-height:1.15;
  margin:.3em 0 .4em;
}
h2{
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  line-height:1.2;
  margin:.2em 0 .4em;
}
p{ margin:.6em 0; }

.section-eyebrow,
.eyebrow{
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:.75rem;
  color: var(--muted);
}
.section-title{
  max-width: 32rem;
}
.lead,
.hero p{
  font-size:1.05rem;
  color: var(--muted);
}

/* ---------- Buttons (варіанти) ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  background: var(--primary);
  color:#fff;
  text-decoration:none;
  border:0;
  border-radius: calc(var(--radius) - 2px);
  padding:.65rem 1rem;
  line-height:1.2;
  cursor:pointer;
}
.btn:hover{ filter: brightness(0.98); }
.btn + .btn{ margin-left:.5rem; }

/* ---------- FORM / Contact ---------- */
.form-section h2{
  margin-bottom: 1rem;
}
.form{
  display:grid;
  gap:1rem;
  width:480px;
}
.form label{
  display:flex;
  flex-direction:column;
  gap:.35rem;
}
.form input{
  padding:.65rem .9rem;
  border-radius: var(--radius);
  border: 1px solid color-mix(in oklab, var(--text), transparent 70%);
  background: var(--surface);
  color: var(--text);
  font-size:1rem;
}
.form input:focus{
  border-color: var(--primary);
  outline:none;
  box-shadow:0 0 0 2px color-mix(in oklab, var(--primary), transparent 60%);
}
.form button.btn{
  width:100%;
}

.container-form{
display:flex;
justify-content:center;
align-items:center;
flex-direction: column;}

.contact-layout{
  display:grid;
  gap:24px;
  align-items:flex-start;
}
@media (min-width: 768px){
  .contact-layout{
    grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);
  }
}

.contact-address{
  white-space:pre-line;
  line-height:1.5;
}

/* ---------- Dividers / spacing ---------- */
hr{
  border:none;
  height:1px;
  background: rgba(255,255,255,.08);
  margin: 28px 0;
}
.stack > * + *{ margin-top: var(--space-4); }

/* ---------- Icon list ---------- */
ul.icon-list{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:14px;
}
.icon-list li{
  display:flex;
  gap:10px;
  align-items:flex-start;
}
.icon-list i[data-lucide]{
  width:22px;
  height:22px;
  margin-top:2px;
  color:var(--primary);
}
  /* ---------- Contact layout: два блоки в контейнері ---------- */
.contact-layout{
  display:grid;
  gap:32px;
  margin-top: var(--space-5);
}

@media (min-width: 992px){
  .contact-layout{
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items:flex-start;
  }
}

.contact-layout__info p{
  margin: .25rem 0 .5rem;
}

.contact-form__title{
  margin-bottom: var(--space-4);
}

.contact-form,
.contact-layout__form form{
  max-width: 520px;
  width: 100%;
  margin-inline:auto;
}

.contact-form__field{
  display:flex;
  flex-direction:column;
  gap:.35rem;
}
.contact-form__field input{
  border-radius: var(--radius);
  border: var(--border);
  padding:.7rem .9rem;
  background: var(--surface);
  color: var(--text);
}
.contact-form__field input:focus{
  outline: 2px solid color-mix(in oklab, var(--primary), #000 10%);
  outline-offset: 1px;
}

article{
background:none!important;}

/* ===== Анімація блоків з чату ===== */
.chat-block {
  opacity: 0;
  transform: translateY(16px);
  animation: chatFadeUp 0.5s ease-out forwards;
}

.chat-block:nth-child(1) { animation-delay: 0.05s; }
.chat-block:nth-child(2) { animation-delay: 0.1s; }
.chat-block:nth-child(3) { animation-delay: 0.15s; }
.chat-block:nth-child(4) { animation-delay: 0.2s; }
.chat-block:nth-child(5) { animation-delay: 0.25s; }

@keyframes chatFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .chat-block {
    animation: none;
    opacity: 1;
    transform: none;
  }
}



body.theme--brutal .card{ box-shadow: 6px 6px 0 #101010 !important; border: 2px solid #101010; } body.theme--brutal .btn{ border: 2px solid #101010; box-shadow: 3px 3px 0 #101010; } nav a{ text-transform:uppercase; letter-spacing:.04em; }

