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

:root {
  --bg: #F4EFE6;
  --surface: #FFFCF7;
  --text: #1E2A3A;
  --navy: #243447;
  --bronze: #9A7344;
  --bronze-light: #C4A574;
  --muted: #5C6672;
  --line: rgba(154, 115, 68, 0.35);
  --font-display: 'Libre Baskerville', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
}

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

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

.hero {
  display: grid;
  grid-template-columns: 50% 50%;
  height: 100svh;
  max-height: 100svh;
  overflow: hidden;
  opacity: 0;
}

.hero__panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-left: 1px solid var(--line);
  background: linear-gradient(165deg, #F8F3EA 0%, #EDE6DA 100%);
  overflow: hidden;
}

.panel-head {
  flex-shrink: 0;
  opacity: 0;
}

.panel-head__eyebrow {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.panel-head__rule {
  width: 3.5rem;
  height: 2px;
  background: var(--bronze);
  margin-bottom: 0.65rem;
}

.panel-head__tag {
  font-size: clamp(0.88rem, 1.35vw, 1rem);
  color: var(--muted);
  letter-spacing: 0.02em;
  line-height: 1.5;
  max-width: 22rem;
}

.panel-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  padding: clamp(0.75rem, 1.5vw, 1.25rem) 0;
  opacity: 0;
}

.panel-main__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700;
  line-height: 1.28;
  color: var(--navy);
  margin-bottom: 0.65rem;
  max-width: 20ch;
}

.panel-main__lead {
  font-size: clamp(0.85rem, 1.3vw, 0.96rem);
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.1rem;
  max-width: 30rem;
}

.panel-main__btn {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 2.2vw, 1.15rem) clamp(1.75rem, 3.5vw, 2.25rem);
  margin-bottom: clamp(1rem, 2vw, 1.35rem);
  background: var(--navy);
  color: var(--surface);
  font-family: inherit;
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.25s, filter 0.25s;
  white-space: nowrap;
}

.panel-main__btn:hover {
  background: #1a2633;
  filter: brightness(1.06);
}

/* Serif quote rotation — не как Sakura и не как 365 */
.trust-rotate {
  opacity: 0;
  transform: translateY(8px);
}

.trust-rotate__caption {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 0.65rem;
}

.trust-rotate__stage {
  position: relative;
  min-height: clamp(6rem, 12vw, 7.5rem);
  padding: clamp(0.85rem, 1.5vw, 1.1rem) 0 0.5rem;
  border-top: 1px solid var(--line);
}

.trust-quote {
  position: absolute;
  inset: clamp(0.85rem, 1.5vw, 1.1rem) 0 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  border: none;
  padding: 0 0 0 1rem;
  border-left: 3px solid var(--bronze-light);
}

.trust-quote.is-active { visibility: visible; }

.trust-quote__text {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  font-style: italic;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 0.55rem;
}

.trust-quote__cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: clamp(0.72rem, 1.1vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bronze);
}

.trust-rotate__bar {
  height: 2px;
  background: rgba(154, 115, 68, 0.15);
  margin-top: 0.75rem;
  overflow: hidden;
}

.trust-rotate__fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--bronze);
  transform-origin: left center;
}

.panel-foot {
  flex-shrink: 0;
  opacity: 0;
}

.panel-foot__text {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.hero__visual {
  position: relative;
  overflow: hidden;
  height: 100%;
  background: #E8E0D2;
}

.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: left 28%;
  display: block;
}

.hero__btn-wrap {
  display: none;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.65rem;
  background: var(--navy);
  color: var(--surface);
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  box-shadow: 0 8px 22px rgba(36, 52, 71, 0.28);
  opacity: 0;
  transform: scale(0.92);
  cursor: pointer;
  transition: background 0.25s;
}

.hero__btn:hover {
  background: #1a2633;
}

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

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

  .hero--mirror .hero__visual,
  .hero__visual {
    order: 1;
    flex-shrink: 0;
    height: 70svh;
    min-height: 70svh;
    max-height: 70svh;
  }

  .hero--mirror .hero__panel,
  .hero__panel {
    order: 2;
    border-left: none;
    border-top: 1px solid var(--line);
    max-height: none;
    height: auto;
    overflow: visible;
    padding: 1.15rem 1.15rem 1.4rem;
  }

  .panel-main {
    flex: 0 0 auto;
    padding: 0.65rem 0 0;
  }

  .panel-main__title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }

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

  .panel-main__btn {
    display: none;
  }

  .trust-rotate__stage {
    min-height: 7.25rem;
  }

  .panel-foot { display: none; }

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

  .hero__btn-wrap {
    display: flex;
    position: absolute;
    bottom: clamp(0.85rem, 3vw, 1.25rem);
    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.2rem; }
  .trust-quote__text { font-size: 0.9rem; }
}

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

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

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

.requisites__popup {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 0;
  min-width: 15rem;
  padding: 0.8rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 10px 28px rgba(30, 42, 58, 0.14);
  z-index: 200;
  text-align: left;
  color: var(--text);
}

.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__field + .requisites__field { margin-top: 0.55rem; }

.requisites--panel { margin-top: 0.65rem; }

.site-foot--dock {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 50;
  padding: 0.65rem 0.85rem;
  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; }
}

.thanks-page {
  min-height: 100svh;
  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(--navy);
}

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

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

.thanks__title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 5vw, 2rem);
  font-weight: 700;
  color: var(--navy);
  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(--navy);
  color: var(--surface);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.25s;
}

.thanks__back:hover { background: #1a2633; }

.site-foot--thanks {
  position: fixed;
  bottom: 0;
  left: 0;
  padding: 0.75rem 1rem;
  opacity: 0;
}

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lead-modal[hidden] { display: none !important; }

.lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 42, 58, 0.55);
  backdrop-filter: blur(4px);
}

.lead-modal__dialog {
  position: relative;
  width: min(100%, 22rem);
  padding: 1.5rem 1.35rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 20px 50px rgba(30, 42, 58, 0.22);
}

.lead-modal__close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
}

.lead-modal__close:hover { color: var(--navy); }

.lead-modal__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.15rem;
  padding-right: 1.75rem;
}

.lead-form__field {
  display: block;
  margin-bottom: 0.85rem;
}

.lead-form__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.lead-form__input {
  width: 100%;
  padding: 0.7rem 0.8rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: border-color 0.2s;
}

.lead-form__input::placeholder { color: rgba(92, 102, 114, 0.65); }

.lead-form__input:focus {
  outline: none;
  border-color: var(--bronze);
}

.lead-form__textarea {
  resize: vertical;
  min-height: 4.5rem;
  line-height: 1.45;
}

.lead-form__submit {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.9rem 1rem;
  background: var(--navy);
  color: var(--surface);
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s;
}

.lead-form__submit:hover { background: #1a2633; }

body.lead-modal-open { overflow: hidden; }
