:root {
  --bg: #090909;
  --bg-soft: #120d0e;
  --bg-card: #181112;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f7f4f4;
  --muted: #b3a9ab;
  --accent: #ff3b3b;
  --accent-light: #ff6262;
  --accent-dark: #220606;
  --accent-deep: #8f161b;
  --max-width: 1180px;
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Manrope", Arial, sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid transparent;
}

.header__inner {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
}

.logo__mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: #ffffff;
  background: var(--accent);
  font-size: 19px;
  font-weight: 800;
}

.logo__text {
  display: grid;
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.8px;
}

.logo__text small {
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 27px;
  color: #d8d8dd;
  font-size: 14px;
  font-weight: 600;
}

.nav > a:not(.nav__button) {
  transition: color 0.2s ease;
}

.nav > a:not(.nav__button):hover {
  color: var(--accent);
}

.nav__button {
  padding: 11px 17px;
  border-radius: 10px;
  color: #ffffff;
  background: var(--accent);
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav__button:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: transparent;
}

.menu-button span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: currentColor;
}

.hero {
  position: relative;
  display: flex;
  min-height: 760px;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(115deg, rgba(255, 59, 59, 0.10), transparent 48%),
    var(--bg);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 100px;
  padding-bottom: 72px;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(1px);
}

.hero__glow--one {
  top: 9%;
  right: -220px;
  width: 660px;
  height: 660px;
  border: 1px solid rgba(255, 59, 59, 0.20);
  box-shadow:
    0 0 0 85px rgba(255, 59, 59, 0.035),
    0 0 0 170px rgba(255, 59, 59, 0.025);
}

.hero__glow--two {
  right: 11%;
  bottom: -220px;
  width: 410px;
  height: 410px;
  background: radial-gradient(
    circle,
    rgba(255, 59, 59, 0.16),
    transparent 65%
  );
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 840px;
  margin-bottom: 25px;
  color: var(--text);
  font-size: clamp(42px, 7vw, 86px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -4px;
}

h1 span {
  color: var(--accent);
}

.hero__description {
  max-width: 610px;
  margin-bottom: 33px;
  color: #c9bfc1;
  font-size: 17px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 14px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button--primary {
  color: #ffffff;
  background: var(--accent);
}

.button--primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

.button--ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.button--ghost:hover {
  border-color: rgba(255, 59, 59, 0.7);
  color: var(--accent-light);
  transform: translateY(-2px);
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 45px;
  margin-top: 90px;
}

.stat {
  display: grid;
  gap: 2px;
}

.stat strong {
  color: var(--text);
  font-size: 15px;
}

.stat span {
  color: var(--muted);
  font-size: 12px;
}

.section {
  padding: 120px 0;
  color: var(--text);
}

.section--muted {
  background: var(--bg-soft);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 48px;
}

.section-heading h2,
.about h2,
.request h2,
.contacts h2 {
  margin-bottom: 14px;
  color: var(--text);
  font-size: clamp(31px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: -2.2px;
}

.section-heading > p:last-child {
  margin-bottom: 0;
  color: #c9bfc1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.service-card {
  position: relative;
  min-height: 410px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--bg-card);
}

.service-card--accent {
  border-color: rgba(255, 59, 59, 0.55);
  background: linear-gradient(
    145deg,
    rgba(255, 59, 59, 0.14),
    #181112 55%
  );
}

.service-card__number {
  margin-bottom: 45px;
  color: #8b8285;
  font-size: 12px;
  font-weight: 800;
}

.service-card__icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 23px;
  place-items: center;
  border-radius: 15px;
  color: #ffffff;
  background: var(--accent);
  font-size: 30px;
  font-weight: 800;
}

.service-card h3 {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 27px;
  letter-spacing: -1px;
}

.service-card p {
  max-width: 460px;
  margin-bottom: 24px;
  color: #c9bfc1;
  font-size: 14px;
}

.service-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #e1e1e5;
  font-size: 13px;
}

.service-card li::before {
  margin-right: 8px;
  color: var(--accent);
  content: "•";
}

.roles-note {
  margin-top: 34px;
  padding: 32px;
  border: 1px solid rgba(255, 59, 59, 0.35);
  border-radius: var(--radius);
  background: linear-gradient(
    145deg,
    rgba(255, 59, 59, 0.12),
    var(--bg-card) 55%
  );
  color: var(--text);
  text-align: center;
}

.roles-note p {
  margin-bottom: 20px;
  color: var(--text);
  font-weight: 700;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.step {
  min-height: 270px;
  padding: 28px 30px 25px 0;
  border-right: 1px solid var(--line);
  color: var(--text);
}

.step:not(:first-child) {
  padding-left: 30px;
}

.step:last-child {
  border-right: 0;
}

.step__number {
  display: block;
  margin-bottom: 57px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.step h3 {
  margin-bottom: 9px;
  color: var(--text);
  font-size: 19px;
  letter-spacing: -0.5px;
}

.step p {
  max-width: 280px;
  margin-bottom: 0;
  color: #c9bfc1;
  font-size: 14px;
}

.about {
  border-top: 1px solid var(--line);
  color: var(--text);
}

.about__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 90px;
}

.about h2 {
  margin-bottom: 0;
  color: var(--text);
}

.about__text {
  color: #c9bfc1;
  font-size: 16px;
}

.about__text p:last-child {
  margin-bottom: 0;
}

.request {
  background: var(--accent);
  color: #ffffff;
}

.request .eyebrow {
  color: #5b0d10;
}

.request__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 90px;
  align-items: start;
}

.request h2 {
  max-width: 490px;
  color: #ffffff;
}

.request__intro > p:not(.eyebrow) {
  max-width: 450px;
  color: #5b0d10;
}

.request__phone {
  display: inline-block;
  margin-top: 24px;
  border-bottom: 1px solid rgba(60, 0, 0, 0.45);
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
}

.form {
  display: grid;
  gap: 17px;
  padding: 30px;
  border-radius: var(--radius);
  color: var(--text);
  background: #160b0c;
}

.form label {
  display: grid;
  gap: 7px;
  color: #d7d0d1;
  font-size: 12px;
  font-weight: 700;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 14px;
  outline: none;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  color: var(--text);
  background: #211113;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form textarea {
  min-height: 100px;
  resize: vertical;
}

.form input::placeholder,
.form textarea::placeholder {
  color: #8f7c7f;
}

.form select {
  cursor: pointer;
}

.form select option {
  color: var(--text);
  background: #211113;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 59, 59, 0.12);
}

.calculator-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.privacy-checkbox {
  position: relative;
  display: grid !important;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 10px !important;
  margin-top: 2px;
  cursor: pointer;
}

.privacy-checkbox input {
  position: absolute;
  width: 1px !important;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.privacy-checkbox__mark {
  display: grid;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background: #211113;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.privacy-checkbox__mark::after {
  width: 9px;
  height: 5px;
  border-bottom: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  content: "";
  opacity: 0;
  transform: rotate(-45deg) translate(1px, -1px);
  transition: opacity 0.2s ease;
}

.privacy-checkbox input:checked + .privacy-checkbox__mark {
  border-color: var(--accent);
  background: var(--accent);
}

.privacy-checkbox input:checked + .privacy-checkbox__mark::after {
  opacity: 1;
}

.privacy-checkbox input:focus-visible + .privacy-checkbox__mark {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.privacy-checkbox__text {
  color: #c0aaad;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.55;
}

.privacy-checkbox__text a {
  border-bottom: 1px solid rgba(255, 59, 59, 0.65);
  color: var(--accent-light);
}

.privacy-checkbox__text a:hover {
  border-bottom-color: var(--text);
  color: var(--text);
}

.form__submit {
  width: 100%;
  margin-top: 3px;
}

.form__note {
  margin: 0;
  color: #9c8588;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.form__message {
  margin: 0;
  padding: 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.form__message--success {
  border: 1px solid rgba(76, 175, 80, 0.5);
  color: #b9f6ca;
  background: rgba(76, 175, 80, 0.12);
}

.form__message--error {
  border: 1px solid rgba(255, 59, 59, 0.5);
  color: #ffcdd2;
  background: rgba(255, 59, 59, 0.12);
}

.faq-list {
  display: grid;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--bg-card);
}

.faq-item summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 14px 0 0;
  color: #c9bfc1;
  font-size: 15px;
  line-height: 1.7;
}

.contacts {
  padding: 96px 0;
  border-top: 1px solid var(--line);
  color: var(--text);
}

.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
}

.contacts h2 {
  margin-bottom: 0;
  color: var(--text);
}

.contacts__links {
  display: grid;
  gap: 16px;
}

.contacts__links a {
  display: grid;
  gap: 2px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.contacts__links a:hover {
  color: var(--accent-light);
}

.telegram-link__icon {
  display: grid;
  width: 32px;
  height: 32px;
  margin-bottom: 5px;
  place-items: center;
  border-radius: 50%;
  background: #229ed9;
}

.telegram-link__icon svg {
  width: 19px;
  height: 19px;
  fill: #fff;
}

.contacts__links span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.contacts__detail {
  display: grid;
  gap: 4px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.contacts__detail span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.location {
  padding: 96px 0;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.location h2 {
  margin-bottom: 12px;
  color: var(--text);
  font-size: clamp(31px, 4vw, 52px);
  letter-spacing: -2.2px;
}

.location p:not(.eyebrow):not(.location__fallback) {
  margin-bottom: 28px;
  color: #c9bfc1;
}

.location__map {
  width: 100%;
  min-height: 380px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #171112;
}

.location__map-status {
  display: grid;
  min-height: 380px;
  margin: 0;
  place-items: center;
  color: #c9bfc1;
  font-size: 14px;
}

.location__fallback {
  margin-top: 16px;
  color: #c9bfc1;
}

.footer {
  padding: 45px 0;
  border-top: 1px solid var(--line);
  background: #080707;
  color: #c9bfc1;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 30px;
  align-items: end;
}

.logo--footer {
  margin-bottom: 15px;
}

.footer p {
  margin-bottom: 0;
  color: #817477;
  font-size: 12px;
}

.requisites {
  display: grid;
  gap: 4px;
}

.footer__legal {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.footer__legal > a {
  border-bottom: 1px solid rgba(255, 59, 59, 0.55);
  color: var(--accent-light);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  text-align: right;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer__legal > a:hover {
  border-bottom-color: var(--text);
  color: var(--text);
}

.footer__legal > .footer__telegram {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 0;
  color: #fff;
  font-size: 13px;
}

.footer__telegram svg {
  width: 25px;
  height: 25px;
  padding: 5px;
  border-radius: 50%;
  background: #229ed9;
  fill: #fff;
}

.footer__copyright {
  margin: 0;
  color: #817477;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 850px) {
  .header {
    border-bottom-color: var(--line);
    background: rgba(9, 9, 9, 0.9);
    backdrop-filter: blur(12px);
  }

  .header__inner {
    min-height: 72px;
  }

  .menu-button {
    display: block;
  }

  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    display: none;
    width: 100%;
    padding: 20px;
    border-bottom: 1px solid var(--line);
    background: #101010;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .nav.is-open {
    display: flex;
  }

  .nav__button {
    text-align: center;
  }

  .hero {
    min-height: 690px;
  }

  .services-grid,
  .request__grid,
  .about__grid,
  .contacts__grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .about__grid,
  .request__grid {
    gap: 32px;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .footer__legal {
    grid-column: 1 / -1;
    justify-items: start;
  }

  .footer__legal > a,
  .footer__copyright {
    text-align: left;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .hero__content {
    padding-top: 135px;
    padding-bottom: 55px;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: clamp(39px, 12vw, 56px);
    letter-spacing: -2.5px;
  }

  .hero__description {
    font-size: 15px;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero__actions .button {
    width: 100%;
  }

  .hero__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 60px;
  }

  .section {
    padding: 76px 0;
  }

  .section-heading {
    margin-bottom: 33px;
  }

  .section-heading h2,
  .about h2,
  .request h2,
  .contacts h2 {
    font-size: 34px;
    letter-spacing: -1.5px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
    padding: 27px 23px;
  }

  .service-card__number {
    margin-bottom: 35px;
  }

  .steps {
    grid-template-columns: 1fr;
    border-top: 0;
  }

  .step,
  .step:not(:first-child) {
    min-height: auto;
    padding: 26px 0;
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .step__number {
    margin-bottom: 26px;
  }

  .calculator-grid {
    grid-template-columns: 1fr;
  }

  .request__grid {
    gap: 30px;
  }

  .form {
    padding: 22px 17px;
    border-radius: 16px;
  }

  .contacts {
    padding: 70px 0;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .footer__legal {
    grid-column: auto;
  }
}
