:root {
  --bg-dark: #171924;
  --bg-darker: #10121a;
  --surface-strong: #ffffff;
  --text-main: #141827;
  --text-light: #ffffff;
  --text-muted: #6f7484;
  --accent: #cf2027;
  --accent-dark: #a4141a;
  --shadow: 0 24px 60px rgba(15, 17, 27, 0.18);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  color: var(--text-main);
  background: #eef1f6;
}

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

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

button,
input,
select {
  font: inherit;
}

.top-line {
  height: 4px;
  background: var(--accent);
}

.container {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(23, 25, 36, 0.96);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 88px;
}

.brand img {
  width: 158px;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 20px;
}

.call-button,
.primary-button,
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border: 0;
  font-weight: 700;
  cursor: pointer;
  appearance: none;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.call-button,
.primary-button,
.submit-button {
  color: var(--text-light);
  background: var(--accent);
}

.call-button:hover,
.primary-button:hover,
.submit-button:hover,
.call-button:focus-visible,
.primary-button:focus-visible,
.submit-button:focus-visible {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.phone-link {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(14, 16, 25, 0.9) 0%, rgba(14, 16, 25, 0.82) 47%, rgba(14, 16, 25, 0.38) 100%),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.14), transparent 24%),
    linear-gradient(120deg, #1c2131 0%, #0f1119 44%, #202635 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 38%),
    radial-gradient(circle at 78% 32%, rgba(255, 255, 255, 0.08), transparent 22%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.7fr);
  gap: 42px;
  align-items: center;
  min-height: calc(100vh - 92px);
  padding: 54px 0;
}

.hero-copy {
  color: var(--text-light);
  max-width: 680px;
}

.hero-badge,
.section-label {
  margin: 0 0 18px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-badge {
  color: #f0b5b8;
}

.hero-copy h1,
.benefits-copy h2,
.contacts h2,
.lead-card h2 {
  margin: 0;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  max-width: 11ch;
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  line-height: 1.02;
}

.hero-text {
  max-width: 600px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: transparent;
  color: var(--text-light);
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.secondary-button:hover,
.secondary-button:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-points {
  display: grid;
  gap: 14px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  position: relative;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.65;
}

.hero-points li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--accent);
}

.lead-card {
  padding: 38px 40px 40px;
  background: rgba(247, 248, 251, 0.98);
  box-shadow: var(--shadow);
}

.lead-card h2 {
  color: var(--text-main);
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  line-height: 1.22;
}

.lead-form {
  margin-top: 34px;
}

.field {
  display: block;
  margin-bottom: 32px;
}

.field span {
  display: block;
  margin-bottom: 14px;
  color: var(--text-main);
  font-size: 0.96rem;
  font-weight: 700;
}

.field span b {
  color: var(--accent);
}

.field input,
.field select {
  width: 100%;
  padding: 0 0 14px;
  border: 0;
  border-bottom: 1px solid rgba(20, 24, 39, 0.65);
  background: transparent;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s ease;
}

.field input:focus,
.field select:focus {
  border-color: var(--accent);
}

.field--select {
  position: relative;
}

.field--select::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 18px;
  width: 12px;
  height: 12px;
  border-right: 4px solid #666b79;
  border-bottom: 4px solid #666b79;
  transform: rotate(45deg);
  pointer-events: none;
}

.field select {
  appearance: none;
}

.submit-button {
  width: 100%;
  margin-top: 14px;
}

.submit-button--dark {
  background: #1d2030;
}

.submit-button--dark:hover,
.submit-button--dark:focus-visible {
  background: #131624;
}

.form-status {
  min-height: 24px;
  margin: 14px 0 0;
  font-size: 0.92rem;
  line-height: 1.6;
  font-weight: 600;
}

.form-status.is-success {
  color: #127449;
}

.form-status.is-error {
  color: #b32027;
}

.info-strip {
  padding: 18px 0;
  background: #ffffff;
  border-bottom: 1px solid rgba(20, 24, 39, 0.08);
}

.info-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.info-strip strong,
.info-strip a {
  display: block;
  font-size: 1rem;
  font-weight: 700;
}

.info-strip span {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
}

.benefits,
.contacts {
  padding: 76px 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 34px;
  align-items: start;
}

.section-label {
  color: var(--accent);
}

.benefits-copy h2,
.contacts h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
}

.benefits-copy p {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.benefit-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.benefit-card {
  padding: 28px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.benefit-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  background: #fbe9ea;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 800;
}

.benefit-card h3 {
  margin: 0;
  font-size: 1.14rem;
}

.benefit-card p {
  margin: 12px 0 0;
  color: var(--text-muted);
  line-height: 1.72;
}

.contacts {
  background: #171924;
  color: var(--text-light);
  padding-bottom: 92px;
}

.contacts-inner {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: 34px;
  align-items: start;
}

.contacts-copy {
  position: sticky;
  top: 110px;
}

.contacts-text {
  max-width: 430px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  line-height: 1.8;
}

.contacts-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.contacts-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  font-weight: 700;
  cursor: pointer;
  border: 0;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.contacts-button:hover,
.contacts-button:focus-visible {
  transform: translateY(-1px);
}

.contacts-button--primary {
  background: var(--accent);
  color: #ffffff;
}

.contacts-button--primary:hover,
.contacts-button--primary:focus-visible {
  background: var(--accent-dark);
}

.contacts-button--ghost {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.contacts-button--ghost:hover,
.contacts-button--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.38);
}

.contact-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-item {
  min-height: 200px;
  padding: 30px;
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.contact-item span {
  display: block;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-item strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.55;
}

.contact-item p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.75;
}

.contact-item--wide {
  grid-column: span 2;
}

.contact-item--accent {
  background:
    linear-gradient(180deg, rgba(207, 32, 39, 0.18), rgba(207, 32, 39, 0.06)),
    rgba(255, 255, 255, 0.06);
  border-color: rgba(207, 32, 39, 0.34);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
}

.modal.is-open {
  display: block;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 11, 17, 0.74);
}

.modal__dialog {
  position: relative;
  width: min(460px, calc(100% - 24px));
  margin: 66px auto;
  padding: 28px 24px 26px;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  color: #404552;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.modal__dialog h2 {
  margin: 0 0 30px;
  color: var(--text-main);
  font-size: 1.9rem;
  line-height: 1.2;
}

.callback-form .field {
  margin-bottom: 28px;
}

.callback-note {
  margin: -6px 0 28px;
  color: #5d6271;
  font-size: 0.95rem;
}

@media (max-width: 1180px) {
  .hero-grid,
  .benefits-grid,
  .contacts-inner {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 100%;
  }

  .contacts-copy {
    position: static;
  }

  .benefit-list,
  .contact-items {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 20px, 1320px);
  }

  .site-header {
    position: static;
  }

  .header-inner,
  .header-contact,
  .info-strip__inner,
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .header-inner {
    padding: 14px 0;
  }

  .brand img {
    width: 132px;
  }

  .header-contact {
    gap: 12px;
  }

  .call-button,
  .phone-link,
  .primary-button,
  .secondary-button,
  .submit-button {
    width: 100%;
    text-align: center;
  }

  .hero-grid {
    min-height: auto;
    gap: 24px;
    padding: 28px 0 34px;
  }

  .hero-copy h1 {
    font-size: clamp(2.15rem, 12vw, 3.4rem);
  }

  .hero-text {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .lead-card {
    padding: 26px 18px 24px;
  }

  .benefit-list,
  .contact-items {
    grid-template-columns: 1fr;
  }

  .contact-item--wide {
    grid-column: auto;
  }

  .benefits,
  .contacts {
    padding: 48px 0;
  }

  .contacts {
    padding-bottom: 56px;
  }

  .benefit-card,
  .contact-item {
    padding: 22px 18px;
  }

  .contacts-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .contacts-button {
    width: 100%;
  }

  .modal__dialog {
    margin: 26px auto;
    padding: 24px 18px 22px;
  }

  .modal__dialog h2 {
    margin-bottom: 24px;
    font-size: 1.65rem;
  }
}
