:root {
  --brand: #2873ac;
  --brand-dark: #1f5d8c;
  --text: #333333;
  --muted: #666666;
  --soft: #939393;
  --line: #e8e8e8;
  --bg-soft: #f7f7f7;
  --white: #ffffff;
  --max: 1170px;
  --font: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Fira Sans Condensed', 'Montserrat', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--font);
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(100% - 30px, var(--max));
  margin-inline: auto;
}

.narrow {
  max-width: 820px;
}

.center {
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 28px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-muted {
  background: #ececec;
  color: #333;
}

.btn-muted:hover {
  background: #dedede;
}

.btn-brand {
  background: var(--brand);
  color: var(--white);
}

.btn-brand:hover {
  background: var(--brand-dark);
}

.btn-light {
  background: var(--white);
  color: var(--brand);
}

.btn-light:hover {
  background: #f0f0f0;
}

.text-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--brand);
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.text-link:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 50;
  width: 100%;
}

.top-bar {
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  padding: 10px 0 0;
}

.top-bar-inner {
  display: flex;
  justify-content: flex-start;
}

.top-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.top-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.top-contacts .fa {
  color: var(--brand);
}

.navbar {
  margin-top: 8px;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255, 255, 255, 0.96);
  padding: 10px 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.brand img {
  height: 52px;
  width: auto;
  display: block;
}

.footer-logo img {
  height: 44px;
  width: auto;
  display: block;
  margin-bottom: 14px;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--brand);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px 22px;
}

.nav-links > li {
  position: relative;
}

.nav-links a {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #444;
  padding: 10px 0;
  display: inline-block;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand);
}

.sub-nav {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: 0.2s ease;
  z-index: 20;
}

.has-sub:hover > .sub-nav,
.has-sub:focus-within > .sub-nav {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.sub-nav a {
  display: block;
  padding: 10px 16px;
  text-transform: none;
  font-weight: 500;
}

.sub-nav a:hover {
  background: var(--bg-soft);
}

/* Hero slider */
.hero-slider {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: #111;
}

.slides {
  position: relative;
  min-height: 72vh;
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.slide.is-active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

.slide-media {
  min-height: 72vh;
  overflow: hidden;
}

.slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 72vh;
}

.slide-caption {
  background: var(--brand);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8vw 6vw;
}

.slide-caption h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.slide-caption p {
  font-size: 1.05rem;
  max-width: 34ch;
  opacity: 0.95;
}

.slider-dots {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 5;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--brand);
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.dot.is-active {
  background: var(--brand);
}

/* Sections */
.intro-section,
.about-teaser,
.content-section {
  padding: 72px 0;
  text-align: center;
}

.intro-section h2,
.about-teaser h2,
.content-section h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-bottom: 1.25rem;
}

.intro-section p,
.about-teaser p,
.content-section p {
  color: var(--muted);
  font-size: 1.05rem;
}

.feature-icons {
  padding: 20px 0 70px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: center;
}

.feature-grid img {
  margin: 0 auto 16px;
}

.feature-grid h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature-grid p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.quality-band {
  background-size: cover;
  background-position: center;
  min-height: 380px;
}

.quality-overlay {
  background: rgba(40, 115, 172, 0.88);
  color: var(--white);
  min-height: 380px;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 60px 0;
}

.quality-overlay h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-transform: uppercase;
}

.quality-overlay p {
  font-size: 1.1rem;
  opacity: 0.95;
}

.card-rows {
  padding: 40px 0 20px;
}

.info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.info-row.reverse {
  direction: rtl;
}

.info-row.reverse > * {
  direction: ltr;
}

.info-text h2 {
  font-size: 1.45rem;
}

.info-text p {
  color: var(--muted);
}

.info-media img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

/* Inner pages */
.page-banner {
  background-size: cover;
  background-position: center;
  min-height: 320px;
}

.page-banner-overlay {
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.55));
  color: var(--white);
  padding: 120px 0 40px;
}

.eyebrow {
  margin: 0 0 8px;
  font-family: var(--font);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}

.page-banner h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  margin: 0;
}

.content-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
  text-align: left;
}

.content-copy {
  text-align: left;
}

.content-media img {
  width: 100%;
  object-fit: cover;
}

.mission-vision {
  background: var(--bg-soft);
  padding: 70px 0;
}

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.mv-grid article {
  background: var(--white);
  padding: 32px;
}

.mv-grid ul {
  margin-top: 1rem;
  list-style: disc;
  padding-left: 1.2rem;
}

.mv-grid li {
  margin-bottom: 0.6rem;
  color: var(--muted);
}

.gallery-section {
  padding: 0 0 70px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.kartela-cta {
  background-size: cover;
  background-position: center;
}

.kartela-overlay {
  background: rgba(40, 115, 172, 0.82);
  padding: 56px 0;
}

.kartela-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--white);
  font-family: var(--font);
  font-size: 1.4rem;
  font-weight: 700;
}

.advantages {
  padding: 70px 0;
  text-align: center;
}

.advantages h2 {
  margin-bottom: 2rem;
}

.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  text-align: left;
}

.adv-grid article {
  padding: 8px;
}

.adv-grid img {
  margin-bottom: 12px;
}

.adv-grid h3 {
  font-size: 1.05rem;
}

.adv-grid p {
  color: var(--muted);
  margin: 0;
  font-size: 0.98rem;
}

/* Contact */
.contact-page {
  text-align: left;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.contact-list li {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
}

.contact-list i {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-list strong {
  display: block;
  font-family: var(--font);
  margin-bottom: 4px;
}

.contact-list a,
.contact-list span {
  display: block;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form input,
.contact-form textarea,
.newsletter input {
  width: 100%;
  border: 1px solid #d8d8d8;
  background: #fafafa;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.form-alert {
  padding: 12px 14px;
  margin-bottom: 14px;
}

.form-ok {
  background: #e8f6ec;
  color: #1d6b3a;
}

.form-error {
  background: #fdecec;
  color: #8a1f1f;
}

/* Contact strip + footer */
.contact-strip {
  background: #f4f4f4;
  padding: 70px 0 50px;
  text-align: center;
}

.contact-strip h2 {
  margin-bottom: 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}

.contact-box h3 {
  font-size: 1rem;
  margin: 12px 0 8px;
}

.contact-box p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.box-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.site-footer {
  background: #1c1c1c url('/images/footer-bg.webp') center / cover;
  color: #d0d0d0;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.92);
}

.footer-grid,
.footer-bottom {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 28px;
  padding: 60px 0 40px;
}

.site-footer h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: #b7b7b7;
  max-width: 30ch;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a:hover,
.site-footer a:hover {
  color: var(--white);
}

.newsletter {
  display: flex;
  gap: 8px;
}

.newsletter input {
  background: #2a2a2a;
  border-color: #3a3a3a;
  color: var(--white);
}

.newsletter button {
  background: var(--brand);
  color: var(--white);
  border: 0;
  padding: 0 16px;
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-inner {
  padding: 18px 0 8px;
  font-size: 13px;
}

.footer-bottom p {
  margin: 0;
}

.footer-credit {
  position: relative;
  z-index: 1;
  padding: 4px 0 28px;
}

.footer-credit-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  width: min(var(--max), calc(100% - 30px));
  margin: 0 auto;
}

.footer-credit-ornament {
  flex: 1 1 3rem;
  max-width: 4.5rem;
  height: 1px;
  position: relative;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.16) 20%,
    rgba(40, 115, 172, 0.95) 50%,
    rgba(255, 255, 255, 0.16) 80%,
    transparent
  );
}

.footer-credit-ornament::after,
.footer-credit-ornament::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 5px;
  height: 5px;
  transform: translateY(-50%) rotate(45deg);
  background: linear-gradient(135deg, #5aa3d6, var(--brand));
  box-shadow: 0 0 8px rgba(40, 115, 172, 0.45);
}

.footer-credit-ornament:first-of-type::after {
  right: 0;
}

.footer-credit-ornament:last-of-type::before {
  left: 0;
}

.footer-credit-text {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.28rem 0.35rem;
  margin: 0;
  padding: 10px 18px;
  border-top: 1px solid rgba(40, 115, 172, 0.28);
  text-align: center;
  font-family: var(--font);
  font-size: 0.82rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.55);
}

.footer-credit-text a {
  color: rgba(140, 190, 230, 0.95);
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-credit-text a:hover {
  color: #ffffff;
}

.footer-credit-sep {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
}

.footer-credit-by {
  margin-left: 0.15rem;
  margin-right: 0.2rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.footer-credit-brand {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #8ec4ea, #ffffff 45%, #5aa3d6, var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: filter 0.2s ease;
}

.footer-credit-brand:hover {
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(90, 163, 214, 0.55));
}

@media (max-width: 639px) {
  .footer-credit-ornament {
    display: none;
  }

  .footer-credit-wrap {
    gap: 0;
  }

  .footer-credit-text {
    font-size: 0.78rem;
    padding: 10px 8px;
  }
}

/* Responsive */
@media (max-width: 980px) {
  .slide {
    grid-template-columns: 1fr;
  }

  .slide-media,
  .slide-media img,
  .slides,
  .hero-slider {
    min-height: 48vh;
  }

  .slide-caption {
    padding: 48px 28px;
  }

  .slider-dots {
    top: auto;
    bottom: 18px;
    left: 18px;
    flex-direction: row;
  }

  .feature-grid,
  .contact-grid,
  .adv-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-row,
  .info-row.reverse,
  .content-split,
  .mv-grid,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 15px;
    right: 15px;
    top: calc(100% + 4px);
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 0;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 18px;
  }

  .sub-nav {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: 12px;
  }

  .navbar {
    position: relative;
  }

  .feature-grid,
  .contact-grid,
  .adv-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .newsletter {
    flex-direction: column;
  }
}
