:root {
  color-scheme: light;
  --ink: #17211c;
  --muted: #607069;
  --paper: #fffaf0;
  --panel: #ffffff;
  --forest: #254b3d;
  --forest-dark: #15352c;
  --gold: #efb141;
  --sea: #417f8a;
  --line: rgba(23, 33, 28, 0.14);
  --shadow: 0 22px 70px rgba(21, 53, 44, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Geologica", Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(16px, 5vw, 64px);
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 112px;
}

.brand img {
  width: clamp(96px, 14vw, 138px);
  max-height: 58px;
  height: auto;
  display: block;
  object-fit: contain;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid rgba(37, 75, 61, 0.3);
  border-radius: 999px;
  color: var(--forest-dark);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: calc(100svh - 82px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--forest-dark);
}

.hero__background {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 34, 29, 0.88), rgba(12, 34, 29, 0.64) 48%, rgba(12, 34, 29, 0.28)),
    url("assets/banner-desktop.png") center / cover no-repeat;
  transform: scale(1.02);
}

.hero__content {
  position: relative;
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(38px, 5vw, 54px) 0;
  color: #ffffff;
}

.hero__label,
.form-panel__label {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.05;
}

h1 {
  max-width: 920px;
  font-size: clamp(38px, 7vw, 74px);
}

h2 {
  font-size: clamp(28px, 5vw, 48px);
}

.event-row {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(22px, 3vw, 30px);
}

.timer {
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.event-date {
  min-width: 216px;
  padding: 4px 0;
}

.event-date span,
.timer__item span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.event-date strong {
  display: block;
  margin-top: 2px;
  color: var(--gold);
  font-size: clamp(40px, 6vw, 62px);
  line-height: 1;
}

.timer {
  display: grid;
  grid-template-columns: repeat(4, minmax(68px, 1fr));
  border-radius: 8px;
  overflow: hidden;
}

.timer__item {
  min-width: 68px;
  padding: 14px 14px 12px;
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.timer__item:first-child {
  border-left: 0;
}

.timer__item strong {
  display: block;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 1080px;
  margin-top: clamp(22px, 3vw, 30px);
}

.benefits p {
  min-height: 104px;
  margin: 0;
  padding: 15px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(15px, 1.45vw, 18px);
}

.hero__button,
.lead-form button {
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: #24190a;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin-top: clamp(22px, 3vw, 30px);
  padding: 14px 24px;
  font-size: 17px;
}

.hero__button:hover,
.lead-form button:hover {
  background: #ffc35d;
  box-shadow: 0 16px 36px rgba(239, 177, 65, 0.28);
  transform: translateY(-1px);
}

.section-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.gallery {
  padding: clamp(48px, 8vw, 88px) 0;
  background: #ffffff;
}

.gallery h2 {
  margin-bottom: 24px;
  color: var(--forest-dark);
}

.slider {
  position: relative;
}

.slider__viewport {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #dfe7e4;
}

.slider__track {
  display: flex;
  transform: translateX(0);
  transition: transform 0.42s ease;
}

.slide {
  flex: 0 0 100%;
  margin: 0;
  aspect-ratio: 16 / 9;
}

.slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.slider__button {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--forest-dark);
  box-shadow: 0 12px 32px rgba(21, 53, 44, 0.22);
  font-size: 24px;
  font-weight: 800;
  cursor: pointer;
  transform: translateY(-50%);
}

.slider__button--prev {
  left: 16px;
}

.slider__button--next {
  right: 16px;
}

.slider__dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
}

.slider__dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(37, 75, 61, 0.28);
  cursor: pointer;
}

.slider__dots button.is-active {
  background: var(--sea);
}

.signup {
  padding: clamp(48px, 8vw, 92px) 0;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.92), rgba(255, 250, 240, 0.98)),
    url("assets/house-2.jpg") center / cover no-repeat;
}

.form-panel {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(22px, 5vw, 56px);
  align-items: start;
  padding: clamp(22px, 5vw, 42px);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.form-panel h2 {
  color: var(--forest-dark);
}

.lead-form {
  display: grid;
  gap: 14px;
}

.form-trap {
  display: none;
}

.field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.field input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 15px;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  background: #ffffff;
}

.field input:focus,
.agreement input:focus-visible,
.slider__button:focus-visible,
.slider__dots button:focus-visible {
  outline: 3px solid rgba(65, 127, 138, 0.28);
  outline-offset: 2px;
}

.agreement {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.agreement input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--forest);
}

.agreement a {
  color: var(--forest-dark);
  font-weight: 700;
}

.lead-form button {
  min-height: 54px;
  padding: 14px 22px;
  font-size: 17px;
}

.form-message {
  min-height: 20px;
  margin: 0;
  color: var(--forest);
  font-size: 14px;
  font-weight: 700;
}

.thanks-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
}

.thanks-modal[hidden] {
  display: none;
}

.thanks-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 34, 29, 0.58);
}

.thanks-modal__dialog {
  position: relative;
  width: min(520px, 100%);
  padding: clamp(26px, 5vw, 38px);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 24px 90px rgba(12, 34, 29, 0.32);
}

.thanks-modal__dialog h2 {
  margin: 0 34px 12px 0;
  color: var(--forest-dark);
  font-size: clamp(28px, 5vw, 42px);
}

.thanks-modal__dialog p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.thanks-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--forest-dark);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 820px) {
  .site-header {
    min-height: 76px;
  }

  .hero {
    min-height: calc(100svh - 76px);
  }

  .hero__background {
    background:
      linear-gradient(180deg, rgba(12, 34, 29, 0.86), rgba(12, 34, 29, 0.62)),
      url("assets/banner-mobile.jpg") center / cover no-repeat;
  }

  .form-panel {
    grid-template-columns: 1fr;
  }

  .benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefits p {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .site-header {
    align-items: center;
    flex-direction: row;
    gap: 12px;
    padding-top: 10px;
    padding-bottom: 12px;
  }

  .brand {
    min-width: 86px;
    flex: 0 0 auto;
  }

  .brand img {
    width: 92px;
    max-height: 60px;
  }

  .header-phone {
    width: auto;
    flex: 1 1 auto;
    min-height: 40px;
    padding: 8px 10px;
    font-size: 15px;
  }

  .hero {
    min-height: auto;
  }

  .hero__content {
    padding: 42px 0 48px;
  }

  .event-row {
    display: grid;
  }

  .timer {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .timer__item {
    min-width: 0;
    padding: 8px 4px 7px;
  }

  .timer__item strong {
    font-size: 22px;
  }

  .timer__item span {
    font-size: 10px;
    line-height: 1.2;
  }

  .timer__item:nth-child(3) {
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    border-top: 0;
  }

  .timer__item:nth-child(4) {
    border-top: 0;
  }

  .hero__button,
  .lead-form button {
    width: 100%;
  }

  .benefits {
    grid-template-columns: 1fr;
  }

  .slider__button {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .slider__button--prev {
    left: 10px;
  }

  .slider__button--next {
    right: 10px;
  }

  .form-panel {
    padding: 22px 16px;
  }
}
