/* VFI Україна — corporate style aligned with vfi.co.at
   PT Sans + PT Sans Narrow, white bg, red accent, dark green footer
*/

@import url("https://fonts.googleapis.com/css2?family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&family=PT+Sans+Narrow:wght@400;700&display=swap");

:root {
  --bg:        #ffffff;
  --bg-2:      #f7f7f5;     /* light gray section */
  --bg-3:      #ececea;     /* card hover / divider zone */
  --ink:       #2c2c2c;     /* primary text */
  --ink-2:     #4d4d4d;     /* body */
  --ink-3:     #888;        /* muted */
  --line:      #e0e0dc;
  --brand:     #c8102e;     /* VFI red — like the logo */
  --brand-dark:#a70d26;
  --footer:    #2d4d3a;     /* dark olive/green like vfi footer */
  --footer-2:  #1f3729;
  --maxw:      1180px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: "PT Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink-2);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 15px;
  line-height: 1.6;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
@media (max-width: 720px) { .wrap { padding: 0 18px; } }

/* ─── Typography ─── */
h1, h2, h3, h4 {
  font-family: "PT Sans Narrow", "PT Sans", Arial, sans-serif;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 16px;
  line-height: 1.15;
}
h1 { font-size: 30px; letter-spacing: 0.01em; }
h2 { font-size: 24px; }
h3 { font-size: 17px; }
@media (max-width: 720px) {
  h1 { font-size: 26px; }
  h2 { font-size: 21px; }
}

p { margin: 0 0 14px; color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.lead { font-size: 16px; color: var(--ink); }
ul.bullets, ol.bullets { padding-left: 18px; margin: 0 0 16px; }
ul.bullets li, ol.bullets li { margin-bottom: 6px; font-size: 15px; line-height: 1.6; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.section-title {
  position: relative;
  padding-bottom: 8px;
  margin-bottom: 24px;
  font-family: "PT Sans Narrow", "PT Sans", sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--ink);
}
.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background: var(--brand);
  margin-top: 8px;
}

/* ─── Top utility bar (over header) ─── */
.topbar {
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  font-size: 12.5px;
  padding: 7px 0;
}
.topbar .wrap { display: flex; justify-content: flex-end; gap: 18px; align-items: center; }
.topbar a { color: rgba(255,255,255,0.85); text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .lang { opacity: 0.6; }
.topbar .lang-switch { display: inline-flex; gap: 2px; align-items: center; opacity: 1; }
.topbar .lang-switch__cur { color: #fff; font-weight: 700; }
.topbar .lang-switch__sep { opacity: 0.4; padding: 0 2px; }
.topbar .lang-switch__alt { color: rgba(255,255,255,0.55); text-decoration: none; }
.topbar .lang-switch__alt:hover { color: #fff; }
@media (max-width: 600px) { .topbar { display: none; } }

/* Mobile language switcher — у відкритому мобільному меню.
   !important потрібен, щоб переписати .mobile-menu a (display:block,
   padding 14px 28px, uppercase). */
.mobile-lang {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 16px 28px 18px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.mobile-lang .lang-switch {
  display: inline-flex !important;
  align-items: baseline;
  gap: 2px;
  font-size: 14px;
  letter-spacing: 0.06em;
  padding: 0 !important;
  text-transform: none !important;
}
.mobile-lang .lang-switch__cur,
.mobile-lang .lang-switch__alt,
.mobile-lang .lang-switch__sep {
  display: inline !important;
  padding: 6px 8px !important;
  font-size: 14px !important;
  text-transform: none !important;
  border-bottom: 0 !important;
}
.mobile-lang .lang-switch__cur {
  color: var(--brand, #c8102e) !important;
  font-weight: 700;
}
.mobile-lang .lang-switch__sep {
  color: var(--ink-3);
  padding: 0 2px !important;
  opacity: 0.5;
}
.mobile-lang .lang-switch__alt {
  color: var(--ink-2, #555) !important;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
}
.mobile-lang .lang-switch__alt:hover,
.mobile-lang .lang-switch__alt:active {
  color: var(--brand, #c8102e) !important;
  background: rgba(200, 16, 46, 0.06);
}

/* ─── Header / Nav ─── */
.masthead { background: #fff; border-bottom: 1px solid var(--line); }
.masthead__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}
.masthead__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.masthead__brand img { display: block; height: 56px; width: auto; }

.nav { display: flex; gap: 6px; align-items: center; }
.nav a {
  font-size: 14px;
  color: var(--ink);
  padding: 10px 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.15s;
}
.nav a:hover { color: var(--brand); text-decoration: none; }
.nav a.active { color: var(--brand); }
.nav__cta {
  background: var(--brand);
  color: #fff !important;
  padding: 11px 20px !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  font-size: 13px;
  margin-left: 8px;
}
.nav__cta:hover { background: var(--brand-dark); color: #fff !important; text-decoration: none; }

.nav__menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 8px 14px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
@media (max-width: 880px) {
  .nav a:not(.nav__cta) { display: none; }
  .nav__menu-btn { display: inline-block; }
}

.mobile-menu {
  display: none;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 14px 28px;
  color: var(--ink);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

/* ─── Hero (photo background + bottom-aligned caption overlay) ─── */
.hero {
  position: relative;
  height: clamp(220px, 32vw, 340px);
  overflow: hidden;
  background: #1a1a1a;
}
.hero--lg { height: clamp(280px, 42vw, 440px); }  /* головна — трохи вище */

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

/* Темний gradient знизу — для читабельності caption */
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.35) 35%, rgba(0,0,0,0) 70%),
    linear-gradient(to right, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 50%);
}

.hero__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 0 26px;
  color: #fff;
}
.hero__caption .wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.hero__crumb {
  font-family: "PT Sans Narrow", sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.85);
  margin: 0 0 10px;
}
.hero__crumb .accent { color: #fff; }
.hero__title {
  font-family: "PT Sans Narrow", sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.1;
  color: #fff;
  margin: 0 0 14px;
  max-width: 720px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.hero__sub {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255,255,255,0.92);
  max-width: 600px;
  margin: 0 0 16px;
}
.hero__btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  padding: 12px 22px;
  font-family: "PT Sans Narrow", sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: 2px;
}
.hero__btn:hover { background: var(--brand-dark); color: #fff; text-decoration: none; }

@media (max-width: 720px) {
  .hero__caption { padding: 22px 0 20px; }
  .hero__caption .wrap { padding: 0 18px; }
  .hero__crumb { font-size: 11px; letter-spacing: 0.1em; }
  .hero__sub { display: none; }  /* на мобайл — тільки title + btn */
}

/* ─── Sections ─── */
.section { padding: 56px 0; background: #fff; }
.section--alt { background: var(--bg-2); }
.section--narrow { max-width: 880px; }

/* ─── Service cards (2-col like vfi.co.at) ─── */
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 28px;
}
@media (max-width: 820px) { .service-grid { grid-template-columns: 1fr; gap: 24px; } }

.service {
  background: #fff;
  padding: 0;
}
.service h3 {
  font-family: "PT Sans Narrow", sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--ink);
}
.service p {
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 18px;
  color: var(--ink-2);
}

/* ─── Find out more — small red button ─── */
.btn-more {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  padding: 9px 18px;
  font-family: "PT Sans Narrow", sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
}
.btn-more:hover { background: var(--brand-dark); color: #fff; text-decoration: none; }

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--ink);
  padding: 9px 18px;
  font-family: "PT Sans Narrow", sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; text-decoration: none; }

/* ─── Stat strip (small, restrained) ─── */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 28px 0;
}
@media (max-width: 820px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: #fff;
  padding: 20px 18px;
  text-align: left;
}
.stat__n {
  font-family: "PT Sans Narrow", sans-serif;
  font-weight: 700;
  font-size: 32px;
  color: var(--brand);
  line-height: 1;
  margin: 0 0 6px;
}
.stat__l {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin: 0;
}

/* ─── Brand logos row ─── */
.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 32px 0;
}
.brand-row img { height: 38px; width: auto; opacity: 0.9; }

/* ─── Two-col text/info ─── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; gap: 24px; } }

.info-box {
  background: var(--bg-2);
  padding: 24px 28px;
  border-left: 3px solid var(--brand);
  margin: 24px 0;
  font-size: 15px;
}
.info-box strong { color: var(--ink); }

/* ─── Steps (numbered) ─── */
.steps {
  counter-reset: stepcounter;
  list-style: none;
  padding: 0;
  margin: 28px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.steps li {
  counter-increment: stepcounter;
  padding: 28px 24px;
  background: var(--bg-2);
  border-top: 3px solid var(--brand);
  position: relative;
}
.steps li::before {
  content: counter(stepcounter, decimal-leading-zero);
  display: block;
  font-family: "PT Sans Narrow", sans-serif;
  color: var(--brand);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  margin-bottom: 12px;
}
.steps li h3 {
  font-size: 17px;
  margin: 0 0 8px;
}
.steps li p { font-size: 14.5px; line-height: 1.55; margin: 0; }

/* ─── Form ─── */
.form { max-width: 580px; }
.form__field { margin-bottom: 16px; }
.form__field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin-bottom: 6px;
}
.form__field label .req { color: var(--brand); margin-left: 4px; }
.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  border-radius: 2px;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s;
}
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: 0;
  border-color: var(--brand);
}
.form__field textarea { min-height: 120px; resize: vertical; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; gap: 0; } }
.form__hint { font-size: 12.5px; color: var(--ink-3); margin: -8px 0 18px; }
.form__submit {
  background: var(--brand);
  color: #fff;
  padding: 12px 26px;
  border: 0;
  font-family: "PT Sans Narrow", sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  border-radius: 2px;
}
.form__submit:hover { background: var(--brand-dark); }
.form__submit:disabled { opacity: 0.5; cursor: not-allowed; }

.result { padding: 14px 16px; margin: 16px 0 0; border-left: 3px solid var(--brand); background: var(--bg-2); font-size: 14.5px; }
.result--ok { border-left-color: #2d8540; background: #e9f3eb; color: #1c5226; }
.result--err { border-left-color: var(--brand); background: #fbeae6; color: var(--brand-dark); }

.hp { position: absolute; left: -9999px; }

/* ─── Footer ─── */
.colophon {
  background: var(--footer);
  color: rgba(255,255,255,0.75);
  padding: 44px 0 0;
  font-size: 14px;
}
.colophon a { color: rgba(255,255,255,0.9); text-decoration: none; border-bottom: 1px dotted rgba(255,255,255,0.3); }
.colophon a:hover { color: #fff; border-bottom-color: #fff; }

.colophon__cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 820px) { .colophon__cols { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) { .colophon__cols { grid-template-columns: 1fr; gap: 24px; } }
.colophon h5 {
  font-family: "PT Sans Narrow", sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  margin: 0 0 12px;
  font-weight: 700;
}
.colophon img.logo-foot {
  height: 50px;
  width: auto;
  margin-bottom: 16px;
  display: block;
}
.colophon p { color: rgba(255,255,255,0.75); font-size: 13.5px; line-height: 1.55; margin: 0 0 8px; }
.colophon__bottom {
  background: var(--footer-2);
  padding: 14px 0;
  margin-top: 28px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.5);
}
.colophon__bottom .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
@media (max-width: 600px) { .colophon__bottom .wrap { flex-direction: column; gap: 6px; } }

/* ─── Certificates grid ─── */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 28px;
}
@media (max-width: 820px) { .cert-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .cert-grid { grid-template-columns: 1fr 1fr; gap: 12px; } }

.cert {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
  transition: box-shadow 0.18s, transform 0.18s;
}
.cert:hover {
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}
.cert__img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.cert__cap {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.cert__name {
  font-family: "PT Sans Narrow", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.2;
}
.cert__ext {
  font-family: "PT Sans Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--brand);
  padding: 3px 7px;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* ─── Misc ─── */
.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}

.intro-text {
  max-width: 880px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 24px;
}
.intro-text strong { color: var(--ink); }
