:root {
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.75);
  --accent: #f0b65a;
  --panel: rgba(17, 23, 31, 0.96);
  --border: rgba(255, 255, 255, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #111820;
  color: var(--text);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  background-image:
    linear-gradient(120deg, rgba(6, 12, 20, 0.88), rgba(6, 12, 20, 0.25)),
    url('/background.jpg');
  background-size: cover;
  background-position: center;
}

.overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 35%, rgba(240, 182, 90, 0.12), transparent 28%);
  pointer-events: none;
}

.header,
.hero-content,
.footer {
  position: relative;
  z-index: 1;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(22px, 6vw, 90px);
}

.logo {
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
}

.menu {
  display: flex;
  gap: 12px;
}

.menu-button,
.primary-button {
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  padding: 12px 20px;
  transition: 0.2s ease;
}

.menu-button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.menu-button--accent,
.primary-button {
  color: #17120a;
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 700;
}

.primary-button:hover,
.menu-button--accent:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.hero-content {
  align-self: center;
  width: min(760px, calc(100% - 44px));
  margin-left: clamp(22px, 10vw, 150px);
  padding: 50px 0 90px;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 13px;
  font-weight: 800;
}

h1 {
  margin: 12px 0 18px;
  max-width: 760px;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.subtitle {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
  margin-bottom: 30px;
}

.footer {
  padding: 22px clamp(22px, 6vw, 90px);
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
}

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

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

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: clamp(25px, 5vw, 42px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.45);
}

.modal-dialog h2 {
  margin: 0 0 24px;
  font-size: 34px;
}

.modal-dialog h3 {
  margin-top: 25px;
}

.modal-text {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.7;
}

.modal-text code {
  color: var(--accent);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 17px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 26px;
}

.phones {
  display: grid;
  gap: 12px;
}

.phones a {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
}

.phones a:hover {
  color: var(--accent);
}

.separator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 25px 0;
  color: rgba(255, 255, 255, .45);
  font-size: 13px;
}

.separator::before,
.separator::after {
  content: '';
  height: 1px;
  flex: 1;
  background: var(--border);
}

.callback-form {
  display: grid;
  gap: 16px;
}

.callback-form label {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
}

.callback-form input,
.callback-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 13px 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.callback-form input:focus,
.callback-form textarea:focus {
  border-color: var(--accent);
}

.callback-form textarea {
  resize: vertical;
}

.form-submit {
  width: 100%;
  margin-top: 4px;
}

.form-submit:disabled {
  opacity: .6;
  cursor: wait;
}

.form-status {
  min-height: 22px;
  margin: 0;
  font-size: 14px;
}

.form-status.success {
  color: #91df9c;
}

.form-status.error {
  color: #ff9c9c;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 650px) {
  .header {
    align-items: flex-start;
    gap: 18px;
  }

  .logo {
    max-width: 130px;
    line-height: 1.3;
  }

  .menu {
    flex-direction: column;
  }

  .menu-button {
    padding: 10px 15px;
  }

  .hero-content {
    margin-left: 22px;
  }

  h1 {
    font-size: clamp(42px, 15vw, 66px);
  }

  .modal-dialog {
    border-radius: 18px;
  }
}


.logo img {
  height: 70px;
  /* можно изменить */
  width: auto;
  display: block;
}

.logo {
  display: inline-block;
}

@media (min-width: 768px) {
  .modal-content--wide {
    width: 900px;
    max-width: calc(100vw - 80px);
  }
}