/* Geist */
@font-face { font-family: "Geist"; src: url("assets/fonts/geist/Geist-Thin.ttf") format("truetype"); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("assets/fonts/geist/Geist-ThinItalic.ttf") format("truetype"); font-weight: 100; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist"; src: url("assets/fonts/geist/Geist-ExtraLight.ttf") format("truetype"); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("assets/fonts/geist/Geist-ExtraLightItalic.ttf") format("truetype"); font-weight: 200; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist"; src: url("assets/fonts/geist/Geist-Light.ttf") format("truetype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("assets/fonts/geist/Geist-LightItalic.ttf") format("truetype"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist"; src: url("assets/fonts/geist/Geist-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("assets/fonts/geist/Geist-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist"; src: url("assets/fonts/geist/Geist-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("assets/fonts/geist/Geist-MediumItalic.ttf") format("truetype"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist"; src: url("assets/fonts/geist/Geist-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("assets/fonts/geist/Geist-SemiBoldItalic.ttf") format("truetype"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist"; src: url("assets/fonts/geist/Geist-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("assets/fonts/geist/Geist-BoldItalic.ttf") format("truetype"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist"; src: url("assets/fonts/geist/Geist-ExtraBold.ttf") format("truetype"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("assets/fonts/geist/Geist-ExtraBoldItalic.ttf") format("truetype"); font-weight: 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist"; src: url("assets/fonts/geist/Geist-Black.ttf") format("truetype"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("assets/fonts/geist/Geist-BlackItalic.ttf") format("truetype"); font-weight: 900; font-style: italic; font-display: swap; }

/* Merriweather */
@font-face { font-family: "Merriweather"; src: url("assets/fonts/merriweather/Merriweather_24pt-Light.ttf") format("truetype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Merriweather"; src: url("assets/fonts/merriweather/Merriweather_24pt-LightItalic.ttf") format("truetype"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Merriweather"; src: url("assets/fonts/merriweather/Merriweather_24pt-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Merriweather"; src: url("assets/fonts/merriweather/Merriweather_24pt-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Merriweather"; src: url("assets/fonts/merriweather/Merriweather_24pt-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Merriweather"; src: url("assets/fonts/merriweather/Merriweather_24pt-MediumItalic.ttf") format("truetype"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Merriweather"; src: url("assets/fonts/merriweather/Merriweather_24pt-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Merriweather"; src: url("assets/fonts/merriweather/Merriweather_24pt-SemiBoldItalic.ttf") format("truetype"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Merriweather"; src: url("assets/fonts/merriweather/Merriweather_24pt-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Merriweather"; src: url("assets/fonts/merriweather/Merriweather_24pt-BoldItalic.ttf") format("truetype"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Merriweather"; src: url("assets/fonts/merriweather/Merriweather_24pt-ExtraBold.ttf") format("truetype"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Merriweather"; src: url("assets/fonts/merriweather/Merriweather_24pt-ExtraBoldItalic.ttf") format("truetype"); font-weight: 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Merriweather"; src: url("assets/fonts/merriweather/Merriweather_24pt-Black.ttf") format("truetype"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Merriweather"; src: url("assets/fonts/merriweather/Merriweather_24pt-BlackItalic.ttf") format("truetype"); font-weight: 900; font-style: italic; font-display: swap; }

html {
  font-size: 16px;
}

:root {
  --header-height: 88px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f7f7f7;
  font-family: "Geist", sans-serif;
  font-weight: normal;
  font-style: normal;
}

.font-accent {
  font-family: "Merriweather", serif;
}

.mb-20 {
  margin-bottom: 20px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  min-height: var(--header-height);
  color: #000;
  background-color: #F7F7F7;
  padding: 4px 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  z-index: 100;
}

header.dark {
  background-color: #000;
  box-shadow: none;
}

header.dark .header-nav a,
header.dark .header-tagline {
  color: #fff;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav a {
  font-size: 1.1rem;
  font-weight: 600;
  color: #000;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  white-space: nowrap;
}

.header-nav a:hover {
  text-decoration: underline;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.header-tagline {
  font-size: 0.78rem;
  font-weight: 800;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  line-height: 1.5;
  max-width: 120px;
}

header .logo {
  font-size: 3rem;
  font-weight: 700;
  color: #004080;
}

header .logo img {
  height: 80px;
  width: auto;
  display: block;
}

.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
  line-height: 0;
  margin-top: var(--header-height);
  height: calc(100vh - var(--header-height));
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.carousel-track img {
  flex: 0 0 100%;
  width: 100%;
  height: calc(100vh - var(--header-height));
  object-fit: cover;
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

.carousel-overlay-box {
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 45%, transparent 75%);
  color: #fff;
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 80px 120px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 3rem;
  line-height: 1;
  padding: 12px 20px;
  transition: background 0.2s;
  z-index: 2;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.6);
}

.carousel-btn--prev { left: 0; }
.carousel-btn--next { right: 0; }

.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.carousel-dot--active {
  background: #fff;
}

main {
  flex: 1;
}

.page-section {
  width: 100%;
  padding: 60px 0;
  background: #fff;
}

.page-section--alt {
  background: #f7f7f7;
}

.page-section--inverted {
  background: #000;
}

.page-section.page-section--inverted h2,
.page-section.page-section--inverted p,
.page-section.page-section--inverted .section-list {
  color: #f0f0f0;
}

.two-col-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: center;
}

.two-col-section--reverse {
  grid-template-columns: 1fr 2fr;
}

.section-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.two-col-section__aside--stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.two-col-section__aside--stack .section-video,
.two-col-section__aside--stack .section-img {
  width: 100%;
  height: auto;
}

.two-col-section__main h2 {
  margin-bottom: 20px;
}

.section-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.full-banner {
  width: 100%;
  line-height: 0;
}

.full-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.partners-header {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.partners-list {
  display: flex;
  align-items: center;
  gap: 48px;
}

.partners-list img {
  height: 160px;
  width: auto;
  object-fit: contain;
}

.section-list {
  list-style: disc;
  padding-left: 1.4em;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1.2rem;
  line-height: 1.7;
  color: #333;
}

.page-section h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: #111;
}

.page-section p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #333;
}

.card {
  background: #fff;
  border-radius: 4px;
  padding: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.card--page-start {
  margin-top: calc(var(--header-height) + 20px);
}

.card--half {
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.contacts-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 48px;
  align-items: start;
}

.contacts-info-col h2 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: #111;
}

.contacts-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contacts-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
}

.contacts-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
}

.contacts-list a {
  color: #333;
  text-decoration: none;
}

.contacts-list a:hover {
  text-decoration: underline;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 560px;
  margin-top: 24px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}

.form-field input,
.form-field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: #111;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 10px 14px;
  transition: border-color 0.2s;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #004080;
}

.form-field input.input--invalid,
.form-field textarea.input--invalid {
  border-color: #c0392b;
}

.form-error {
  font-size: 0.82rem;
  color: #c0392b;
  min-height: 1em;
}

.form-submit {
  align-self: flex-start;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  background: #000;
  border: none;
  border-radius: 4px;
  padding: 12px 32px;
  cursor: pointer;
  transition: background 0.2s;
}

.form-submit:hover {
  background: #333;
}

.footer {
  background-color: #F7F7F7;
  box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.06);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 32px 0 24px;
  border-bottom: 1px solid #e0e0e0;
}

.footer-logo img {
  display: block;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.footer-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-nav a:hover {
  color: #000;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #333;
  transition: background 0.2s, color 0.2s;
}

.social-btn:hover {
  background: #000;
  color: #fff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
}

.footer-copy {
  font-size: 0.85rem;
  color: #888;
}

.footer-bottom a {
  font-size: 0.85rem;
  color: #888;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #000;
}

/* =========================================
   RESPONSIVE
   ========================================= */

/* Burger button: hidden on desktop */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

header.dark .nav-burger {
  color: #fff;
}

/* Header burger menu (≤1080px) */
@media (max-width: 1080px) {
  .nav-burger {
    display: flex;
  }

  .nav-burger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-burger.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .nav-burger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .header-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    flex-wrap: nowrap;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #F7F7F7;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  header.dark .header-nav {
    background-color: #000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  }

  .header-nav.is-open {
    max-height: 300px;
    padding-bottom: 8px;
  }

  .header-nav a {
    font-size: 1rem;
    letter-spacing: 1px;
    padding: 10px 0;
    width: 100%;
    border-bottom: 1px solid rgba(128, 128, 128, 0.15);
    white-space: normal;
  }

  .header-nav a:last-child {
    border-bottom: none;
  }
}

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
  .carousel-overlay-box {
    font-size: 3rem;
    padding: 60px 80px;
  }

  .two-col-section,
  .two-col-section--reverse {
    gap: 32px;
  }

  .partners-list img {
    height: 120px;
  }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  :root {
    --header-height: 68px;
  }

  header .logo img {
    height: 52px;
  }

  /* Carousel */
  .carousel-overlay-box {
    font-size: 1.9rem;
    padding: 40px;
    white-space: normal;
  }

  /* Sections */
  .page-section {
    padding: 40px 0;
  }

  /* Two-col → single column */
  .two-col-section,
  .two-col-section--reverse {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-img,
  .section-video {
    max-height: 650px;
    object-fit: cover;
    object-position: 0 center;
  }

  /* Stacked aside: side-by-side on tablet */
  .two-col-section__aside--stack {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .two-col-section__aside--stack .section-video,
  .two-col-section__aside--stack .section-img {
    flex: 1 1 45%;
    max-height: 220px;
  }

  /* Partners */
  .partners-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .partners-list {
    flex-wrap: wrap;
    gap: 24px;
  }

  .partners-list img {
    height: 90px;
  }

  /* Footer */
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 8px 18px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  /* Contacts page */
  .contacts-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-form {
    max-width: 100%;
  }
}

/* Small phones (≤480px) */
@media (max-width: 480px) {
  html {
    font-size: clamp(12px, 3.5vw, 14px);
  }

  :root {
    --header-height: 60px;
  }

  header .logo img {
    height: 44px;
  }

  .carousel-overlay-box {
    font-size: 1.4rem;
    padding: 24px 20px;
  }

  .page-section {
    padding: 32px 0;
  }

  /* Stacked aside: stack vertically on phones */
  .two-col-section__aside--stack {
    flex-direction: column;
  }

  .two-col-section__aside--stack .section-video,
  .two-col-section__aside--stack .section-img {
    flex: none;
    width: 100%;
    max-height: 240px;
  }

  .section-img,
  .section-video {
    max-height: 400px;
    object-position: 0 -50px;
  }

  .partners-list img {
    height: 72px;
  }

  .card {
    padding: 20px;
  }
}
