/* =========================================================
   Центр реабілітації святого Юди-Тадея
   Modern vanilla CSS
   ========================================================= */

:root {
  /* Brand (from logo) */
  --orange:        #ff8839;
  --orange-light:  #ffa246;
  --green:         #819e80;
  --gray:          #565656;

  /* Derived / functional */
  --orange-dark:   #e2731f;  /* hover for orange buttons */
  --orange-ink:    #c05f14;  /* accessible orange for inline text links */
  --green-dark:    #6f8b6d;  /* hover for green buttons */
  --green-deep:    #3f4a3e;  /* military section bg */
  --green-tint:    #eef2ec;
  --green-soft:    #f0f4ef;
  --red:           #c0392b;
  --red-tint:      #fbeae8;
  --red-line:      #f3d3ce;

  --ink:           #3d3a37;  /* headings */
  --body:          #565656;  /* body text */
  --muted:         #7a756f;  /* secondary text */

  --bg:            #fffdfb;
  --cream:         #f7f3ec;
  --surface:       #ffffff;
  --line:          #efe8dd;
  --line-soft:     rgba(86, 86, 86, 0.14);

  --footer-bg:     #2f2f2f;

  --font-head: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Onest', system-ui, sans-serif;

  --container: 1200px;
  --radius-sm: 12px;
  --radius:    18px;
  --radius-lg: 24px;
  --shadow:    0 16px 40px rgba(86, 86, 86, 0.10);
  --shadow-sm: 0 8px 24px rgba(129, 158, 128, 0.14);

  --header-h: 76px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

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

img { max-width: 100%; display: block; height: auto; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.14; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--orange-ink); text-decoration: none; }
a:hover { color: var(--orange-dark); }
button { font-family: inherit; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 6px;
}

.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 500;
  background: var(--orange);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn--lg { padding: 1rem 1.8rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 136, 57, 0.32);
}
.btn--primary:hover { background: var(--orange-dark); color: #fff; transform: translateY(-1px); }

.btn--white { background: #fff; color: var(--green-deep); }
.btn--white:hover { background: var(--cream); color: var(--green-deep); transform: translateY(-1px); }

.btn--green {
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 24px rgba(129, 158, 128, 0.32);
}
.btn--green:hover { background: var(--green-dark); color: #fff; transform: translateY(-1px); }

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.22); color: #fff; }

/* ---------- Section helpers ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section__head { max-width: 680px; margin-bottom: clamp(2.2rem, 4vw, 3rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__title {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.section__title--light { color: #fff; }
.section__intro { color: var(--body); font-size: 1.08rem; }

.eyebrow {
  color: var(--green);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: .9rem;
}
.eyebrow--light { color: var(--orange-light); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 251, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}
.header__logo img { height: 48px; width: auto; }
.header__nav { display: flex; align-items: center; gap: 1.7rem; }
.header__nav a {
  color: var(--gray);
  font-weight: 500;
  font-size: .95rem;
}
.header__nav a:hover { color: var(--orange-ink); }

.header__actions { display: flex; align-items: center; gap: .7rem; }

.lang-switch {
  display: flex;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  overflow: hidden;
  font-size: .8rem;
  font-weight: 600;
}
.lang-switch__btn {
  border: none;
  background: #fff;
  color: var(--gray);
  padding: .42rem .75rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.lang-switch__btn.is-active { background: var(--orange); color: #fff; }

.header__call { padding: .6rem 1.15rem; font-size: .9rem; }

.header__burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  cursor: pointer;
}
.header__burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gray);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.header__mobile {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: .5rem 1.25rem 1rem;
  box-shadow: 0 14px 28px rgba(86, 86, 86, 0.16);
}
.header__mobile a {
  color: var(--gray);
  font-weight: 500;
  padding: .8rem .25rem;
  border-bottom: 1px solid var(--line);
}
.header__mobile a:last-child { border-bottom: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  background: #4a453f;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: center;
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #4a453f;
  opacity: 0;
  transform: scale(1.16);
  transition: opacity 1.6s ease, transform 9.5s ease-out;
  will-change: opacity, transform;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }

/* One-off entrance for slide 1 / dot 1: they're already "is-active" in the
   server-rendered markup, so no class change happens on init and the regular
   transition above (used for every later slide change) never fires for them.
   Restarting that transition via JS (remove class, force reflow, re-add) is
   unreliable across browsers (works in Chromium, not in Firefox), so play a
   dedicated keyframe animation instead -- being a class that's never been on
   the element before, it just plays, no browser-specific trick required. */
@keyframes hero-intro-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hero-intro-zoom { from { transform: scale(1.16); } to { transform: scale(1); } }
.hero__slide--intro { animation: hero-intro-fade 1.6s ease, hero-intro-zoom 9.5s ease-out; }

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(38,32,26,.82) 0%, rgba(38,32,26,.55) 42%, rgba(38,32,26,.12) 100%);
}
.hero__inner {
  position: relative;
  width: min(var(--container), 100% - 2.5rem);
  padding-block: clamp(80px, 11vw, 140px);
  display: flex;
  flex-direction: column;
  gap: clamp(34px, 5vw, 56px);
}
.hero__content { max-width: 780px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hero__kicker {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #bcd3ba;
}
.hero__title {
  font-size: clamp(32px, 4.8vw, 58px);
  font-weight: 800;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.hero__sub {
  font-size: clamp(17px, 1.7vw, 21px);
  max-width: 62ch;
  color: rgba(255,255,255,.92);
  text-shadow: 0 1px 12px rgba(0,0,0,.3);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }

.hero__nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero__dot {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.hero__dot-num {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: rgba(255,255,255,.5);
  transition: color .4s ease;
}
.hero__dot.is-active .hero__dot-num { color: #fff; }
.hero__dot-bar {
  position: relative;
  display: block;
  width: clamp(46px, 6vw, 74px);
  height: 3px;
  background: rgba(255,255,255,.28);
  border-radius: 2px;
  overflow: hidden;
}
.hero__dot-fill {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 0;
  background: var(--orange);
  border-radius: 2px;
}
.hero__dot.is-active .hero__dot-fill { width: 100%; transition: width 9000ms linear; }

@keyframes hero-intro-fill { from { width: 0; } to { width: 100%; } }
.hero__dot--intro .hero__dot-fill { animation: hero-intro-fill 9000ms linear; }

/* =========================================================
   FACTS
   ========================================================= */
.facts { background: var(--orange); }
.facts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  padding-block: clamp(32px, 4vw, 48px);
}
.fact { display: flex; align-items: center; gap: 18px; }
.fact__icon {
  width: 52px; height: 52px;
  flex-shrink: 0;
  fill: none;
  stroke: rgba(255,255,255,.9);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fact__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 34px;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}
.fact__label { color: rgba(255,255,255,.92); font-size: 15px; line-height: 1.45; }

/* =========================================================
   ABOUT
   ========================================================= */
.about__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about__text { display: flex; flex-direction: column; gap: 1rem; font-size: 1.05rem; line-height: 1.65; }

.about__offer { margin-top: 1.6rem; }
.about__offer-title {
  color: var(--green);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .9rem;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: var(--green-soft);
  color: #5c705a;
  font-weight: 500;
  font-size: 15px;
  padding: 10px 18px;
  border-radius: 999px;
}

.about__media { position: relative; }
.about__accent {
  position: absolute;
  inset: 18px -18px -18px 18px;
  background: var(--green);
  opacity: .22;
  border-radius: var(--radius-lg);
}
.about__media img {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(86, 86, 86, 0.20);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.about__points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}
@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
}
.point {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem 1.3rem;
}
.point__check {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--orange);
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(255,136,57,.18);
}
.point__title { font-family: var(--font-head); font-weight: 600; color: var(--ink); margin-bottom: .15rem; }
.point__desc { font-size: .92rem; color: var(--muted); line-height: 1.5; }

/* =========================================================
   SERVICES
   ========================================================= */
.services { background: var(--green-tint); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}
.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.5rem, 2.6vw, 2rem);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card__bar {
  display: block;
  width: 46px; height: 5px;
  border-radius: 999px;
  background: var(--orange);
  margin-bottom: 1.3rem;
}
.service-card__title { font-size: 1.22rem; font-weight: 700; margin-bottom: .7rem; position: relative; }
.service-card__desc { color: var(--muted); font-size: .98rem; line-height: 1.55; position: relative; }

/* Services accordion */
.accordion {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.accordion__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.accordion__header { margin: 0; }
.accordion__trigger {
  width: 100%;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--ink);
  transition: color .2s ease;
}
.accordion__trigger:hover { color: var(--orange-ink); }
.accordion__trigger > span:first-child { flex: 1; }
.accordion__icon {
  flex-shrink: 0;
  width: 1ch;
  text-align: center;
  color: var(--orange);
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
}
.accordion__icon::before { content: '+'; }
.accordion__trigger[aria-expanded="true"] .accordion__icon::before { content: '\2212'; }
.accordion__panel { padding: 0 22px 22px; line-height: 1.6; font-size: 15px; }
.accordion__lead { font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.accordion__list { list-style: disc; padding-left: 20px; }
.accordion__list li { margin-bottom: 8px; }
.accordion__list li:last-child { margin-bottom: 0; }
.accordion__panel p + p { margin-top: 10px; }
.accordion__link { display: inline-block; margin-top: 12px; font-weight: 600; }

/* =========================================================
   POSTANOVA 309
   ========================================================= */
.p309 {
  background-image:
    linear-gradient(135deg, rgba(63,74,62,.9) 0%, rgba(47,52,45,.82) 100%),
    url('/assets/img/slide-01.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.p309__inner {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  max-width: 780px;
  text-align: center;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.3rem;
}
.p309__badge {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .05em;
  padding: .4rem 1.1rem;
  border-radius: 10px;
}
.p309__title { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
.p309__text { display: flex; flex-direction: column; gap: 1rem; color: #e7e4df; font-size: 1.05rem; line-height: 1.65; }

/* =========================================================
   TEAM
   ========================================================= */
.team__founders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.founder {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  flex-wrap: wrap;
  background: var(--cream);
  border-radius: 22px;
  padding: clamp(1.5rem, 3vw, 2rem);
}
.founder__photo {
  width: 140px; height: 180px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
}
.founder__name { font-size: 1.25rem; font-weight: 700; }
.founder__role { color: var(--green); font-weight: 600; font-size: .88rem; margin: .25rem 0 .7rem; }
.founder__bio { font-size: .95rem; line-height: 1.6; }
.founder > div { flex: 1; min-width: 200px; }

.team__slider-wrap { display: flex; flex-direction: column; gap: 1.1rem; }
.team__controls { display: flex; justify-content: flex-end; gap: .6rem; }
.slider-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-soft);
  background: #fff;
  color: var(--gray);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color .2s ease, border-color .2s ease;
}
.slider-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.slider-btn:hover { color: var(--orange); border-color: var(--orange); }
.slider-btn[disabled] { opacity: .35; cursor: default; }

.team__slider {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.team__slider::-webkit-scrollbar { display: none; }
.member {
  flex: 0 0 clamp(220px, 72vw, 272px);
  scroll-snap-align: start;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.member__photo { width: 100%; height: 230px; object-fit: cover; object-position: center top; background: var(--green-soft); }
.member__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.member__name { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.member__role { color: var(--green); font-weight: 500; font-size: 14px; }
.member__toggle {
  align-self: flex-start;
  border: none;
  background: none;
  color: var(--orange-ink);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  padding: 6px 0 0;
}
.member__toggle:hover { color: var(--orange-dark); }
.member__details { font-size: 14px; line-height: 1.6; color: var(--body); padding-top: 4px; }

/* =========================================================
   MILITARY
   ========================================================= */
.military { background: var(--green-deep); color: #eef2ec; }
.military__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.military__text { display: flex; flex-direction: column; gap: 1rem; color: #d6ddd2; font-size: 1.05rem; line-height: 1.65; margin-bottom: 1.6rem; }
.military__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.military__media { position: relative; }
.military__accent {
  position: absolute;
  inset: 18px -18px -18px 18px;
  background: var(--orange-light);
  opacity: .3;
  border-radius: var(--radius-lg);
}
.military__media img {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0,0,0,.3);
  object-fit: cover;
  object-position: center bottom;
  aspect-ratio: 4 / 3;
}

/* =========================================================
   CONTACTS
   ========================================================= */
.contacts { background: var(--cream); }
.contacts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.6rem, 4vw, 2.6rem);
}
.contacts__form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--shadow);
}
.booking-form__title { font-size: 1.35rem; font-weight: 700; margin-bottom: .4rem; }
.booking-form__sub { color: var(--muted); font-size: .98rem; margin-bottom: 1.15rem; }
.booking-form { display: flex; flex-direction: column; gap: .89rem; }
.field { display: flex; flex-direction: column; gap: .4rem; font-size: .85rem; font-weight: 600; color: var(--gray); }
.field input, .field textarea {
  border: 1.5px solid #e5ddd0;
  border-radius: 12px;
  padding: .8rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: #fdfbf8;
  outline: none;
  resize: vertical;
  transition: border-color .2s ease, background .2s ease;
}
.field input:focus, .field textarea:focus { border-color: var(--orange); background: #fff; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red); }
.field__error { color: var(--red); font-size: .82rem; font-weight: 600; }

.booking-form__error {
  color: var(--red);
  background: var(--red-tint);
  border: 1px solid var(--red-line);
  border-radius: 12px;
  padding: .7rem .9rem;
  font-size: .9rem;
  font-weight: 600;
}

.booking-form button[type="submit"][disabled] { opacity: .65; cursor: not-allowed; }

.booking-form__success { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1rem; min-height: 340px; justify-content: center; }
.booking-form__success-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 2rem;
}

.contacts__info { display: flex; flex-direction: column; gap: 1.1rem; }
.info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem 1.3rem;
  color: inherit;
  transition: border-color .2s ease, transform .2s ease;
}
.info-card:not(.info-card--static):hover { border-color: #e0d6c7; transform: translateY(-2px); }
.info-card__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.info-card__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.info-card__icon--green { background: var(--green-tint); color: var(--green); }
.info-card__icon--orange { background: #fdece0; color: var(--orange); }
.info-card__label { font-weight: 600; color: var(--ink); margin-bottom: .15rem; }
.info-card__value { color: var(--muted); font-size: .95rem; }

.contacts__map {
  margin-top: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.contacts__map iframe { width: 100%; height: 320px; border: 0; display: block; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--footer-bg); color: #c9c6c2; }
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 2rem;
}
.site-footer__logo { height: 56px; width: auto; filter: brightness(0) invert(1); opacity: .92; margin-bottom: 1rem; }
.site-footer__about { font-size: .92rem; line-height: 1.6; color: #9c9893; max-width: 34ch; }
.site-footer__heading { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 1rem; }
.site-footer nav { display: flex; flex-direction: column; gap: .6rem; }
.site-footer nav a { color: #c9c6c2; font-size: .95rem; }
.site-footer nav a:hover { color: var(--orange); }
.site-footer__contacts { display: flex; flex-direction: column; gap: .6rem; font-size: .95rem; font-style: normal; color: #9c9893; }
.site-footer__contacts a { color: #c9c6c2; }
.site-footer__contacts a:hover { color: var(--orange); }
.socials { display: flex; gap: .8rem; margin-top: 1.2rem; }
.socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background .2s ease;
}
.socials a:hover { background: var(--orange); }
.socials svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.site-footer__bar { border-top: 1px solid rgba(255,255,255,.1); }
.site-footer__bar .container { padding-block: 1.3rem; text-align: center; font-size: .85rem; color: #807c77; }

/* ---------- Scroll to top ---------- */
.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 150;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--orange);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(255, 136, 57, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
}
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.scroll-top:hover { background: var(--orange-dark); }
.scroll-top svg {
  width: 22px; height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Click feedback: the arrow launches up and settles back */
@keyframes scroll-top-launch {
  0%   { transform: translateY(0);    opacity: 1; }
  40%  { transform: translateY(-14px); opacity: 0; }
  41%  { transform: translateY(12px);  opacity: 0; }
  100% { transform: translateY(0);    opacity: 1; }
}
@keyframes scroll-top-pulse {
  0%   { box-shadow: 0 8px 22px rgba(255, 136, 57, 0.4), 0 0 0 0 rgba(255, 136, 57, 0.45); }
  100% { box-shadow: 0 8px 22px rgba(255, 136, 57, 0.4), 0 0 0 18px rgba(255, 136, 57, 0); }
}
.scroll-top.is-clicked svg { animation: scroll-top-launch .55s ease; }
.scroll-top.is-clicked { animation: scroll-top-pulse .55s ease-out; }
@media (prefers-reduced-motion: reduce) {
  .scroll-top.is-clicked svg,
  .scroll-top.is-clicked { animation: none; }
}
@media (max-width: 920px) {
  .scroll-top { bottom: 76px; }
}

/* =========================================================
   SCROLL REVEAL
   Sections fade in + rise as they enter the viewport,
   and replay when reached via a menu click.
   The .reveal class is added by JS, so no-JS pages stay visible.
   ========================================================= */
@keyframes section-fade-in {
  from { opacity: .15; transform: translateY(22px); }
  to   { opacity: 1;   transform: translateY(0); }
}
.reveal { opacity: 0; }
.reveal.section-animate { animation: section-fade-in .65s ease forwards; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; }
  .reveal.section-animate { animation: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 920px) {
  .header__nav { display: none; }
  .header__call { display: none; }
  .header__burger { display: flex; }
}

@media (min-width: 921px) {
  .header__mobile { display: none !important; }
}

@media (max-width: 620px) {
  .founder { flex-direction: column; }
  .founder__photo { width: 100%; height: 240px; object-position: center 20%; }
}

/* =========================================================
   MOTION PREFERENCES
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .hero__slide { transition: opacity .3s ease; transform: none; }
  .hero__slide.is-active { transform: none; }
  .hero__dot.is-active .hero__dot-fill { transition: none; width: 100%; }
}
