/* ==========================================================================
   «Между нами» — приватное пространство
   ========================================================================== */

:root {
  --bg: #070405;
  --bg-soft: #0c0607;
  --ink: #f3e9df;
  --ink-dim: #b5a79b;
  --ink-faint: #8a7c73;
  --red: #c0252c;
  --red-bright: #e23b3b;
  --red-deep: #7d1016;
  --line: rgba(192, 37, 44, 0.28);
  --line-soft: rgba(243, 233, 223, 0.09);

  --font-display: "Playfair Display", "Times New Roman", serif;
  --font-body: "Lora", Georgia, serif;
  --font-ui: "Inter", "Segoe UI", system-ui, sans-serif;

  --pad: clamp(20px, 5.5vw, 80px);
  --maxw: 1280px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.68;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

/* --------------------------------------------------------------- layout -- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad);
}

.section {
  position: relative;
  padding-block: clamp(56px, 9vw, 120px);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

/* Feathers bleed in from the edges of every dark section. */
.section--feathered::before,
.section--feathered::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(42vw, 460px);
  background-image: url("../img/feathers-hero-tall.jpg");
  background-size: cover;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.section--feathered::before {
  left: 0;
  background-position: left center;
  -webkit-mask-image: linear-gradient(to right, #000 0%, transparent 100%);
  mask-image: linear-gradient(to right, #000 0%, transparent 100%);
}

.section--feathered::after {
  right: 0;
  background-position: right center;
  -webkit-mask-image: linear-gradient(to left, #000 0%, transparent 100%);
  mask-image: linear-gradient(to left, #000 0%, transparent 100%);
}

.section > .wrap {
  position: relative;
  z-index: 1;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 64px);
}

@media (min-width: 900px) {
  .grid-2 {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
    gap: clamp(48px, 6vw, 110px);
  }
}

/* ------------------------------------------------------------ typography -- */

.eyebrow {
  font-family: var(--font-ui);
  font-size: clamp(10px, 2.6vw, 11px);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--line), transparent);
  max-width: 120px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(27px, 5.6vw, 46px);
  color: var(--ink);
}

h3 {
  font-size: clamp(19px, 3.4vw, 23px);
}

p {
  margin: 0 0 1.15em;
  color: var(--ink-dim);
}

p:last-child {
  margin-bottom: 0;
}

strong,
b {
  color: var(--ink);
  font-weight: 600;
}

.lead {
  color: var(--ink);
}

/* ----------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: clamp(96px, 16vh, 150px) clamp(56px, 9vh, 90px);
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../img/feathers-hero-tall.jpg");
  background-size: cover;
  background-position: center;
}

@media (min-width: 760px) {
  .hero__bg {
    background-image: url("../img/feathers-hero-wide.jpg");
  }
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(130% 85% at 50% 40%, transparent 0%, rgba(7, 4, 5, 0.72) 70%, var(--bg) 100%),
    linear-gradient(to bottom, rgba(7, 4, 5, 0.55) 0%, transparent 30%, rgba(7, 4, 5, 0.9) 100%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 6vw, 70px);
  align-items: start;
  width: 100%;
}

@media (min-width: 1000px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

.hero__title {
  font-size: clamp(42px, 12vw, 104px);
  line-height: 1;
  color: var(--ink);
  margin: 0 0 clamp(18px, 3vw, 28px);
  text-shadow: 0 10px 50px rgba(0, 0, 0, 0.75);
}

.hero__title .glass {
  font-size: 0.74em;
  vertical-align: 0.06em;
  margin-right: 0.08em;
}

.hero__sub {
  font-family: var(--font-display);
  font-size: clamp(18px, 4.4vw, 29px);
  line-height: 1.32;
  color: var(--ink);
  max-width: 17em;
  margin: 0 0 clamp(22px, 3.5vw, 32px);
  font-weight: 400;
}

.hero__note {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  max-width: 34em;
}

.hero__star {
  flex: none;
  margin-top: 4px;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--red);
  font-size: 13px;
  line-height: 1;
}

.hero__note p {
  font-family: var(--font-ui);
  font-size: clamp(12.5px, 3.2vw, 14px);
  line-height: 1.6;
  color: var(--ink-dim);
  margin: 0;
}

.hero__tags {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-ui);
  font-size: clamp(10.5px, 2.8vw, 12px);
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

@media (min-width: 1000px) {
  .hero__tags {
    display: block;
    text-align: right;
    padding-top: 10px;
  }

  .hero__tags li + li {
    margin-top: 11px;
  }
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 4vh, 34px);
  transform: translateX(-50%);
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
}

.hero__scroll::after {
  content: "";
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, var(--red), transparent);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

/* ------------------------------------------------------------- monogram -- */

.monogram {
  position: absolute;
  top: clamp(18px, 4vw, 38px);
  right: var(--pad);
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(26px, 6vw, 42px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--ink);
  opacity: 0.9;
  text-align: center;
}

.monogram span {
  display: block;
  font-family: var(--font-ui);
  font-size: 8px;
  letter-spacing: 0.34em;
  color: var(--red);
  margin-top: 6px;
  opacity: 0.9;
}

/* ------------------------------------------------------------ prose list -- */

.prose-cols p {
  font-size: clamp(14.5px, 3.6vw, 16px);
}

.ruled-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ruled-list li {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-block: 13px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-dim);
  font-size: clamp(14px, 3.5vw, 15.5px);
  line-height: 1.55;
}

.ruled-list li::before {
  content: "";
  flex: none;
  width: 14px;
  height: 1px;
  margin-top: 0.72em;
  background: var(--red);
  opacity: 0.85;
}

.ruled-list li:first-child {
  padding-top: 0;
}

.ruled-list li:first-child::before {
  margin-top: 0.5em;
}

.ruled-list li:last-child {
  border-bottom: 0;
  color: var(--ink);
}

/* --------------------------------------------------------------- accent -- */

.accent {
  position: relative;
  padding-block: clamp(64px, 11vw, 130px);
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
  overflow: hidden;
}

.accent__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../img/feathers-band.jpg") center / cover;
  opacity: 0.85;
}

.accent__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 120% at 50% 50%, transparent 20%, rgba(7, 4, 5, 0.8) 100%);
}

.accent p {
  font-family: var(--font-display);
  font-size: clamp(21px, 5vw, 40px);
  line-height: 1.26;
  margin: 0 auto;
  max-width: 19em;
  color: var(--ink);
}

.accent p + p {
  margin-top: 0.5em;
  color: var(--red-bright);
  max-width: 20em;
}

/* ---------------------------------------------------------------- steps -- */

.benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 800px) {
  .benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 clamp(32px, 4vw, 56px);
  }
}

.benefits li {
  padding-block: clamp(22px, 4vw, 30px);
  border-top: 1px solid var(--line-soft);
}

.benefits__num {
  font-family: var(--font-display);
  font-size: clamp(30px, 7vw, 42px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--red);
  display: block;
  margin-bottom: 12px;
}

.benefits h3 {
  color: var(--ink);
  margin-bottom: 9px;
}

.benefits p {
  font-size: clamp(14px, 3.5vw, 15.5px);
  margin: 0;
}

/* ----------------------------------------------------------------- form -- */

.form-section {
  position: relative;
  isolation: isolate;
  border-top: 1px solid var(--line);
  padding-block: clamp(56px, 9vw, 110px) clamp(80px, 12vw, 140px);
  overflow: hidden;
}

.form-section__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../img/lounge-footer.jpg") center bottom / cover;
  opacity: 0.6;
}

.form-section__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--bg) 0%, rgba(7, 4, 5, 0.82) 42%, rgba(7, 4, 5, 0.92) 100%);
}

.form {
  display: grid;
  gap: clamp(24px, 4vw, 30px);
  margin-top: clamp(32px, 5vw, 48px);
}

.field {
  display: grid;
  gap: 10px;
}

.field > label,
.field > .field__label {
  font-family: var(--font-ui);
  font-size: clamp(13px, 3.4vw, 14.5px);
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
}

.field__num {
  color: var(--red);
  margin-right: 8px;
  font-variant-numeric: tabular-nums;
}

.field__hint {
  font-family: var(--font-ui);
  font-size: 12.5px;
  color: var(--ink-faint);
  font-weight: 400;
}

input[type="text"],
input[type="tel"],
textarea,
select {
  width: 100%;
  font-family: var(--font-ui);
  font-size: 16px; /* keeps iOS from zooming on focus */
  line-height: 1.5;
  color: var(--ink);
  background: rgba(10, 5, 6, 0.72);
  border: 1px solid rgba(243, 233, 223, 0.16);
  border-radius: 2px;
  padding: 13px 15px;
  transition: border-color 0.2s ease, background 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

textarea {
  min-height: 118px;
  resize: vertical;
}

select {
  background-image: linear-gradient(45deg, transparent 50%, var(--red) 50%),
    linear-gradient(135deg, var(--red) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 13px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
  cursor: pointer;
}

select option {
  background: #110a0b;
  color: var(--ink);
}

input::placeholder,
textarea::placeholder {
  color: #6b5f58;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--red);
  background: rgba(16, 7, 9, 0.9);
}

.checks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}

@media (min-width: 620px) {
  .checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 18px;
  }
}

.check {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 14.5px;
  color: var(--ink-dim);
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  user-select: none;
}

.check:hover {
  color: var(--ink);
}

.check input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 17px;
  height: 17px;
  margin: 0;
  border: 1px solid rgba(243, 233, 223, 0.3);
  border-radius: 2px;
  display: grid;
  place-content: center;
  cursor: pointer;
  transition: border-color 0.18s ease;
}

.check input::before {
  content: "";
  width: 9px;
  height: 9px;
  transform: scale(0);
  transition: transform 0.14s ease-in-out;
  background: var(--red);
}

.check input:checked {
  border-color: var(--red);
}

.check input:checked::before {
  transform: scale(1);
}

.check:has(input:checked) {
  color: var(--ink);
  background: rgba(192, 37, 44, 0.07);
  border-color: var(--line);
}

/* ---------------------------------------------------------------- button -- */

.btn {
  --btn-bg: var(--red-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  padding: 18px 28px;
  font-family: var(--font-ui);
  font-size: clamp(12px, 3.2vw, 13px);
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--btn-bg);
  border: 1px solid var(--red);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.22s ease, box-shadow 0.22s ease, transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover {
  background: var(--red);
  box-shadow: 0 0 38px rgba(192, 37, 44, 0.42);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: wait;
  box-shadow: none;
}

.btn__arrow {
  transition: transform 0.22s ease;
}

.btn:hover .btn__arrow {
  transform: translateX(5px);
}

@media (min-width: 560px) {
  .btn {
    width: auto;
    min-width: 330px;
  }
}

.form__foot {
  display: grid;
  gap: 16px;
  justify-items: start;
}

.form__legal {
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-faint);
  max-width: 44em;
}

.form__error {
  font-family: var(--font-ui);
  font-size: 13.5px;
  color: var(--red-bright);
  display: none;
}

.form__error.is-visible {
  display: block;
}

.field.is-invalid input,
.field.is-invalid textarea,
.field.is-invalid select {
  border-color: var(--red-bright);
}

/* --------------------------------------------------------------- success -- */

.success {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: var(--pad);
  background: rgba(5, 3, 3, 0.96);
  backdrop-filter: blur(6px);
  text-align: center;
}

.success.is-open {
  display: grid;
}

.success h2 {
  margin-bottom: 16px;
}

.success p {
  max-width: 30em;
  margin-inline: auto;
}

.success__inner {
  max-width: 540px;
}

.success .btn {
  margin-top: 28px;
}

/* ---------------------------------------------------------------- footer -- */

.footer {
  border-top: 1px solid var(--line);
  padding-block: 34px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--ink-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  justify-content: space-between;
  align-items: center;
}

.footer a {
  color: var(--ink-dim);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.footer a:hover {
  color: var(--ink);
}

/* ------------------------------------------------------------- reveal fx -- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__scroll::after {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}
