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

:root {
  --bg: #F5F3EF;
  --surface: #FFFFFF;
  --text: #2A2A2A;
  --blue: #1F4E79;
  --blue-dark: #163A5C;
  --muted: #5C5C5C;
  --line: #D8D4CC;
  --font-serif: 'Merriweather', Georgia, serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --panel-pad: clamp(1rem, 2.2vh, 2rem);
  --panel-gap: clamp(0.5rem, 1.4vh, 1rem);
}

html {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  height: 100dvh;
  max-height: 100dvh;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  opacity: 0;
}

.hero__panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: var(--panel-gap);
  height: 100%;
  min-height: 0;
  padding: var(--panel-pad);
  border-right: 1px solid var(--line);
  background: var(--bg);
  overflow: hidden;
}

.panel-head {
  min-height: 0;
  opacity: 0;
}

.panel-head__brand {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.6vh + 0.55rem, 1.5rem);
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.panel-head__tag {
  font-size: clamp(0.82rem, 0.9vh + 0.45rem, 1rem);
  color: var(--muted);
  line-height: 1.4;
  max-width: 26rem;
}

.panel-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(0.45rem, 1.1vh, 0.85rem);
  min-height: 0;
  overflow: hidden;
  opacity: 0;
}

.panel-main__title {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.1vh + 0.55rem, 1.85rem);
  font-weight: 700;
  line-height: 1.22;
  color: var(--text);
  max-width: 16em;
}

.panel-main__lead {
  font-size: clamp(0.82rem, 0.95vh + 0.42rem, 1.02rem);
  color: var(--muted);
  line-height: 1.5;
  max-width: 30em;
}

.panel-main__btn {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: clamp(0.8rem, 1.6vh, 1.2rem) clamp(1.35rem, 2.8vw, 2.25rem);
  margin-top: clamp(0.15rem, 0.6vh, 0.45rem);
  background: var(--blue);
  color: #fff;
  font-family: inherit;
  font-size: clamp(0.95rem, 1.1vh + 0.45rem, 1.18rem);
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.panel-main__btn:hover {
  background: var(--blue-dark);
}

.panel-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 0;
  flex-shrink: 0;
  opacity: 0;
}

.panel-foot__text {
  flex: 1;
  min-width: 0;
  font-size: clamp(0.72rem, 0.75vh + 0.38rem, 0.88rem);
  color: var(--muted);
  line-height: 1.4;
}

.hero__visual {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 0;
  background: #EBE8E2;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  clip-path: inset(0 0 100% 0);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 26%;
  display: block;
}

.hero__btn-wrap {
  display: none;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 2.8vw, 1.25rem) clamp(1.65rem, 5vw, 2.2rem);
  background: var(--blue);
  color: #fff;
  font-family: inherit;
  font-size: clamp(1rem, 3.2vw, 1.18rem);
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(31, 78, 121, 0.35);
  opacity: 0;
  transform: scale(0.92);
  cursor: pointer;
  transition: background 0.2s;
}

.hero__btn:hover {
  background: var(--blue-dark);
}

@media (max-height: 760px) and (min-width: 769px) {
  :root {
    --panel-pad: clamp(0.85rem, 1.8vh, 1.35rem);
    --panel-gap: clamp(0.35rem, 1vh, 0.65rem);
  }

  .panel-main__title {
    font-size: clamp(1rem, 1.8vh + 0.4rem, 1.55rem);
    line-height: 1.2;
  }

  .panel-main__lead {
    font-size: clamp(0.78rem, 0.85vh + 0.35rem, 0.92rem);
  }

  .panel-main__btn {
    padding: clamp(0.7rem, 1.3vh, 0.95rem) clamp(1.15rem, 2.2vw, 1.85rem);
    font-size: clamp(0.88rem, 0.95vh + 0.35rem, 1.02rem);
  }
}

@media (max-height: 640px) and (min-width: 769px) {
  .panel-head__tag {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .panel-foot__text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (max-width: 768px) {
  html,
  body {
    height: auto;
    min-height: 100dvh;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .hero {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100dvh;
    max-height: none;
    overflow: visible;
  }

  .hero__visual {
    order: 1;
    flex-shrink: 0;
    height: min(70dvh, 34rem);
    min-height: min(58dvh, 28rem);
    max-height: 70dvh;
  }

  .hero__panel {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-right: none;
    border-top: 1px solid var(--line);
    max-height: none;
    height: auto;
    overflow: visible;
    padding: 1.15rem 1.15rem calc(3.75rem + env(safe-area-inset-bottom, 0px));
  }

  .panel-main {
    flex: 0 0 auto;
    overflow: visible;
    gap: 0.55rem;
  }

  .panel-main__title {
    font-size: clamp(1.15rem, 4.8vw, 1.35rem);
    line-height: 1.25;
  }

  .panel-main__lead {
    font-size: 0.95rem;
  }

  .panel-main__btn {
    display: none;
  }

  .panel-foot { display: none; }

  .hero-image img {
    object-position: center 22%;
  }

  .hero__btn-wrap {
    display: flex;
    position: absolute;
    bottom: clamp(0.85rem, 3vw, 1.15rem);
    left: 0;
    right: 0;
    justify-content: center;
    z-index: 2;
    padding: 0 1rem;
    pointer-events: none;
  }

  .hero__btn {
    pointer-events: auto;
    max-width: 100%;
    text-align: center;
    white-space: normal;
  }
}

@media (max-width: 390px) {
  .panel-main__title { font-size: 1.12rem; }
}

.requisites {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.requisites__btn {
  font-family: inherit;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.34rem 0.62rem;
  border-radius: 2px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.requisites__btn:hover { color: var(--text); }

.requisites__popup {
  position: absolute;
  left: 0;
  min-width: 13.5rem;
  max-width: min(16rem, calc(100vw - 2rem));
  max-height: min(12rem, calc(100dvh - 2rem));
  overflow-y: auto;
  padding: 0.75rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 10px 28px rgba(20, 18, 16, 0.14);
  z-index: 200;
  text-align: left;
  color: var(--text);
}

.requisites__popup--up {
  bottom: calc(100% + 0.45rem);
  top: auto;
}

.requisites__popup[hidden] { display: none !important; }

.requisites__label {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.12rem;
}

.requisites__field { font-size: 0.78rem; line-height: 1.4; }

.requisites__name {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.requisites__field + .requisites__field { margin-top: 0.5rem; }

.requisites--panel { margin-top: 0; }

.site-foot--dock {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 50;
  padding: 0.55rem 0.85rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}

.site-foot--dock .requisites { pointer-events: auto; }

@media (min-width: 769px) {
  .site-foot--dock { display: none; }
}

@media (max-width: 768px) {
  .requisites--panel { display: none; }

  .site-foot--dock .requisites__popup {
    left: 0;
    right: auto;
    max-width: min(16rem, calc(100vw - 1.7rem));
  }
}

.thanks-page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  overflow: auto;
}

.thanks {
  width: min(100%, 26rem);
  padding: 2.5rem 1.5rem 5rem;
  text-align: center;
  opacity: 0;
}

.thanks__icon {
  position: relative;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.5rem;
  color: var(--blue);
}

.thanks__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--surface);
}

.thanks__check {
  position: absolute;
  inset: 0;
  width: 55%;
  height: 55%;
  margin: auto;
  color: var(--blue);
}

.thanks__title {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 5vw, 2rem);
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.85rem;
}

.thanks__text {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.thanks__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.65rem;
  background: var(--blue);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s;
}

.thanks__back:hover { background: var(--blue-dark); }

.site-foot--thanks {
  position: fixed;
  bottom: 0;
  left: 0;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  opacity: 0;
}
