/* =============================================================
   ХАРТІЯ — Design System (extracted from khartiia.org, Webflow)
   Token + base component layer for sub-brand landing pages.
   ============================================================= */

/* ---------- 1. FONTS ------------------------------------------------ */
/* Khartia 017 = condensed display cut (Khartia_023-Cond*)
   Khartia 023 = normal-width brand cut
   e-Ukraine   = state font, all body copy
   Segment A   = Black-only, used for modal H  */

@font-face {
  font-family: "Khartia 017";
  src: url("https://cdn.prod.website-files.com/68ef904a6ce5bef8878c2ec9/68ef904a6ce5bef8878c2f46_Khartia_023-CondRegular.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Khartia 017";
  src: url("https://cdn.prod.website-files.com/68ef904a6ce5bef8878c2ec9/68ef904a6ce5bef8878c2f45_Khartia_023-CondBold.otf") format("opentype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Khartia 023";
  src: url("https://cdn.prod.website-files.com/68ef904a6ce5bef8878c2ec9/68ef904a6ce5bef8878c2f43_Khartia_023-Regular.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Khartia 023";
  src: url("https://cdn.prod.website-files.com/68ef904a6ce5bef8878c2ec9/68ef904a6ce5bef8878c2f41_Khartia_023-Medium.otf") format("opentype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Khartia 023";
  src: url("https://cdn.prod.website-files.com/68ef904a6ce5bef8878c2ec9/68ef904a6ce5bef8878c2f40_Khartia_023-Bold.otf") format("opentype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Khartia 023";
  src: url("https://cdn.prod.website-files.com/68ef904a6ce5bef8878c2ec9/68ef904a6ce5bef8878c2f44_Khartia_023-BoldItalic.otf") format("opentype");
  font-weight: 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "e-Ukraine";
  src: url("https://cdn.prod.website-files.com/68ef904a6ce5bef8878c2ec9/68ef904a6ce5bef8878c2f22_e-Ukraine-Light.otf") format("opentype");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "e-Ukraine";
  src: url("https://cdn.prod.website-files.com/68ef904a6ce5bef8878c2ec9/68ef904a6ce5bef8878c2f1e_e-Ukraine-Regular.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "e-Ukraine";
  src: url("https://cdn.prod.website-files.com/68ef904a6ce5bef8878c2ec9/68ef904a6ce5bef8878c2f1f_e-Ukraine-Medium.otf") format("opentype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "e-Ukraine";
  src: url("https://cdn.prod.website-files.com/68ef904a6ce5bef8878c2ec9/68ef904a6ce5bef8878c2f20_e-Ukraine-Bold.otf") format("opentype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Segment A";
  src: url("https://cdn.prod.website-files.com/68ef904a6ce5bef8878c2ec9/68ef904a6ce5bef8878c2f79_SegmentAKeyTrial-Black.otf") format("opentype");
  font-weight: 900; font-style: normal; font-display: swap;
}

/* ---------- 2. TOKENS ----------------------------------------------- */
:root {
  /* brand */
  --brand:        #a9d965;   /* лаймовий акцент — CTA, підзаголовки на темному */
  --brand-dark:   #0e1d01;   /* майже-чорна зелень — основний темний фон/текст */
  --black:        #000000;
  --white:        #ffffff;
  --grey:         #959595;

  /* alpha */
  --brand-10:     #a9d9651a;
  --black-5:      #0e1d010d;
  --black-50:     #00000080;
  --white-10:     #ffffff1a;
  --white-20:     #ffffff33;
  --white-80:     #ffffffcc;
  --gray-10:      #868e801a;
  --gray-50:      #d9d9d980;
  --gray-80:      #949494cc;
  --overlay:      #20202080;  /* затемнення поверх фото/відео */
  --transparent:  transparent;

  /* neutral surfaces & text (константи з макета, не змінні у Webflow) */
  --surface-light:   #e5e7e4;
  --surface-light-2: #ededeb;
  --surface-off:     #fafafa;
  --text-dark:       #464646;
  --text-muted:      #8f8f8f;
  --khaki:           #454038;
  --khaki-2:         #676151;

  /* type */
  --font-display: "Khartia 017", Arial Narrow, Arial, sans-serif;
  --font-brand:   "Khartia 023", Arial, sans-serif;
  --font-body:    "e-Ukraine", Arial, sans-serif;
  --font-modal:   "Segment A", Arial, sans-serif;

  /* layout */
  --section-max: 90rem;   /* 1440 */
  --container:   80rem;   /* 1280 */
  --gutter:      3rem;

  /* motion */
  --t-fast: .2s;
  --t-slow: .3s;

  --radius: 0;            /* ключове: система повністю без заокруглень */
}

@media screen and (min-width: 1440px) { :root { --gutter: 6.25rem; } }
@media screen and (max-width: 991px)  { :root { --gutter: 2rem; } }
@media screen and (max-width: 479px)  { :root { --gutter: 1.25rem; } }

/* ---------- 3. BASE ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: .02em;
  color: var(--text-dark);
  background-color: var(--white);
}

a { color: var(--brand); text-decoration: none; cursor: pointer; }
img, video { display: block; max-width: 100%; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- 4. LAYOUT ----------------------------------------------- */
.section {
  position: relative;
  max-width: var(--section-max);
  margin-inline: auto;
  overflow: hidden;
}
.section.is-dark  { background-color: var(--brand-dark); color: var(--white); }
.section.is-light { background-color: var(--surface-light); color: var(--brand-dark); }

.padding-global   { padding-inline: var(--gutter); }
.padding-section  { padding-block: 5rem; }
.padding-section-s{ padding-block: 2.9375rem; }

.container { max-width: var(--container); margin-inline: auto; height: 100%; }
.container.is-center { display: flex; flex-direction: column; align-items: center; }

/* ---------- 5. TYPOGRAPHY ------------------------------------------- */
.h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 9.25rem;      /* 148px */
  line-height: 88%;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
}
.h1.is-dark { color: var(--brand-dark); }

.h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 5rem;          /* 80px */
  line-height: 100%;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-dark);
}
.h2.is-brand { color: var(--brand); }
.h2.is-center { text-align: center; }

.h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.5rem;        /* 40px */
  line-height: 100%;
  font-weight: 700;
  font-style: italic;       /* курсив — маркер H3 у системі */
  text-transform: uppercase;
  color: var(--brand-dark);
}
.h3.is-upright { font-style: normal; }

.eyebrow {                  /* надзаголовок над H1 */
  margin: 0;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 9px;
  font-size: 1rem;
  line-height: 120%;
}

.text-l  { font-size: 1.5rem;   line-height: 120%; text-transform: uppercase; margin: 0; }
.text-m  { font-size: 1rem;     line-height: 120%; margin: 0; }
.text-xr { font-size: .9375rem; line-height: 120%; text-transform: uppercase; color: var(--text-dark); margin: 0; }
.text-r  { font-size: .875rem;  line-height: 120%; margin: 0; }
.text-s  { font-size: .875rem;  font-weight: 500;  text-transform: uppercase; color: var(--text-muted); margin: 0; }

@media screen and (max-width: 991px) { .h1 { font-size: 8.6rem; } }
@media screen and (max-width: 767px) { .h1 { font-size: 4.6875rem; } .h2 { font-size: 3.5rem; } }
@media screen and (max-width: 479px) { .h1 { font-size: 3.5rem; }    .h2 { font-size: 2.5rem; } .h3 { font-size: 2rem; } }

/* ---------- 6. BUTTONS ---------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;   /* лейбл притиснутий вправо, іконка зліва/справа */
  gap: .5rem;
  padding: 1.125rem 1rem;
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  background-color: var(--brand);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.btn:hover { background-color: var(--brand-dark); border-color: var(--brand-dark); color: var(--brand); }

.btn.is-alt        { background-color: transparent; border-color: var(--black); color: var(--black); }
.btn.is-alt:hover  { background-color: var(--brand-10); }

.btn.is-white      { background-color: transparent; border-color: var(--white); color: var(--white); }
.btn.is-white:hover{ background-color: var(--white-20); }

.btn.is-brand-line { background-color: transparent; border-color: var(--brand); color: var(--brand);
                     padding: 1.5rem 4.1875rem 1.5rem 2.1875rem; font-size: 1rem; line-height: 80%; }

.btn.is-grey       { background-color: #3838384d; border-color: transparent; color: var(--brand-dark); }
.btn.is-grey:hover { background-color: #b6b6b64d; }

.btn.is-phone-dark { background-color: var(--black); color: var(--brand); }
.btn.is-phone-dark:hover { background-color: var(--grey); color: var(--brand); }

.btn.is-ghost      { background: transparent; border-color: transparent; color: var(--brand); padding: 0; }
.btn.is-ghost:hover{ color: var(--white); }

.btn.is-center     { justify-content: center; }
.btn.is-max        { max-width: 15.125rem; }
.btn.is-form       { width: 100%; padding: 1.75rem 1.875rem; font-size: 1.5625rem; font-weight: 500;
                     line-height: 80%; text-align: left; justify-content: flex-start; }
.btn.has-icon      { padding-right: 3.1rem; }   /* місце під іконку-абсолют */

.btn-row { display: flex; gap: 1.25rem; flex-wrap: wrap; }
@media screen and (max-width: 479px) { .btn-row { flex-direction: column; } .btn { width: 100%; justify-content: center; } }

/* ---------- 7. HERO -------------------------------------------------- */
.hero { position: relative; min-height: 53.125rem; overflow: hidden; }
.hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: var(--overlay); }
.hero__content {
  position: absolute; inset: auto 0 0; z-index: 1;
  display: flex; flex-direction: column; margin-bottom: 8.25rem;
}
.hero__text { display: flex; flex-direction: column; gap: 1.25rem; max-width: 52.875rem; }

@media screen and (max-width: 767px) { .hero { min-height: 40rem; } .hero__content { margin-bottom: 3rem; } }

/* ---------- 8. CARD (спеціальність / напрям) ------------------------- */
.card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 26rem; padding: 1.5rem; overflow: hidden;
  background-color: var(--brand-dark); color: var(--white);
}
.card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
             filter: grayscale(1); transition: transform var(--t-slow), filter var(--t-slow); }
.card:hover .card__img { transform: scale(1.04); filter: grayscale(0); }
.card__body { position: relative; z-index: 1; }
.card__title { font-family: var(--font-display); font-size: 2rem; line-height: 100%;
               text-transform: uppercase; margin: 0 0 .25rem; }
.card__sub   { color: var(--brand); text-transform: uppercase; font-size: .875rem; margin: 0; }

/* ---------- 9. STEPS (01…04) ----------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.step__num { font-family: var(--font-display); font-size: 3.125rem; line-height: 80%;
             color: var(--brand); font-style: italic; }
.step__label { text-transform: uppercase; font-size: 1rem; margin-top: .75rem; }
@media screen and (max-width: 767px) { .steps { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 10. FORM ------------------------------------------------- */
.field {
  width: 100%; padding: 1.25rem 1rem; border: 1px solid var(--gray-50); border-radius: var(--radius);
  background: transparent; color: inherit; font-family: var(--font-body); font-size: 1rem;
  transition: border-color var(--t-fast);
}
.field:focus { border-color: var(--brand); outline: none; }
.field::placeholder { color: var(--text-muted); text-transform: uppercase; }

/* ---------- 11. FAQ / accordion -------------------------------------- */
.faq__item { border-bottom: 1px solid var(--gray-10); padding: 1.5rem 0; }
.faq__q { display: flex; justify-content: space-between; align-items: center; gap: 1rem;
          width: 100%; background: none; border: 0; padding: 0; cursor: pointer;
          font-family: var(--font-body); font-size: 1.25rem; font-weight: 500;
          text-transform: uppercase; text-align: left; color: inherit; }
.faq__a { padding-top: 1rem; max-width: 60ch; color: var(--text-dark); }
