@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

/* ===== Reset / Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #81150b;
  --color-text: #555;
  --color-bg: #ffffff;
  --color-subtitle: #444;
  --color-muted: #b3b3b3;
  --max-width: 1226px;
  --max-nav-width: 1300px;
  --gap: 1rem;
}

html {
  font-size: clamp(10.4px, 10.4px + (16px - 10.4px) * (100vw - 320px) / (1920 - 320), 16px);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  overflow-x: hidden;
}

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

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

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 6px;
}

.nav__container {
  display: flex;
  width: 100%;
  margin: 0 auto;
  max-width: var(--max-nav-width);
}

/* ===== Header / Nav ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-bg);
  box-shadow: 4px 4px 12px 0 rgba(62, 95, 124, 0.05);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
}

.nav__logo {
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
  overflow: hidden;
}

.nav__logo img {
  width: 207px;
  height: 82px;
  object-fit: contain;
  object-position: center;
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
  list-style: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav__list a:hover,
.nav__list a.nav__link--active {
  color: var(--color-primary);
  transition: all 0.3s ease;
}

.nav__toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background-color: var(--color-primary);
  cursor: pointer;
  padding: 0;
}

.nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background-color: #fff;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__toggle span+span {
  margin-top: 4px;
}

@media (max-width: 768px) {
  .nav {
    position: relative;
    padding: 12px 16px;
  }

  .nav__logo img {
    max-height: 52px;
    width: auto;
  }

  .nav__toggle {
    display: flex;
    flex-direction: column;
  }

  .nav__list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    width: 100%;
    gap: 0;
    margin: 0;
    padding: 0 16px;
    font-size: clamp(10.4px, 10.4px + (16px - 10.4px) * (100vw - 320px) / (1920 - 320), 16px);
    font-weight: 500;
    background-color: var(--color-bg);
    box-shadow: 0 8px 16px 0 rgba(62, 95, 124, 0.08);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: max-height 0.35s ease, opacity 0.3s ease, visibility 0.35s ease, padding 0.35s ease;
  }

  .header--open .nav__list {
    max-height: 420px;
    padding: 20px 16px 12px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav__list li {
    padding: 14px 0;
  }

  .nav__list a {
    display: block;
    color: var(--color-text);
    width: 100%;
    height: 100%;
  }

  .nav__list a:hover,
  .nav__list a.nav__link--active {
    color: var(--color-primary);
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  display: flex;
  color: var(--color-bg);
  padding: 76px 0;
}

.hero img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  top: 0;
  left: 0;
  z-index: -1;
}

.hero[data-big] img {
  height: calc(100% + 54px);
}

.hero h1 {
  font-weight: 500;
  font-size: clamp(22.1px, 22.1px + (34px - 22.1px) * (100vw - 320px) / (1920 - 320), 34px);
  margin-bottom: 10px;
  padding: 0;
}

/* ===== Footer ===== */
.footer {
  padding: 38px 0 41px 0;
  background-color: #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: clamp(9.75px, 9.75px + (15px - 9.75px) * (100vw - 320px) / (1920 - 320), 15px);
  color: #a0a0a0;
}

.footer__link {
  color: #81150b;
  font-size: clamp(9.75px, 9.75px + (15px - 9.75px) * (100vw - 320px) / (1920 - 320), 15px);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer__container {
    padding: 0 16px;
  }

  .hero {
    padding: 12px 16px;
  }

  .hero h1 {
    font-size: 23px;
    margin-bottom: 0;
  }

  .footer__info {
    font-size: 12px;
  }

  .footer__link {
    font-size: 12px;
  }
}