:root {
  color-scheme: dark;
  --bg: #080b0f;
  --text: #f7f7f7;
  --muted: #cfd3d8;
  --red: #c92727;
  --red-bright: #f0443e;
  --field: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.18);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.045), transparent 28rem),
    radial-gradient(circle at 20% 95%, rgba(63, 79, 94, 0.24), transparent 22rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 8px),
    var(--bg);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 4px),
    linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.42));
  opacity: 0.45;
  mix-blend-mode: screen;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-content: center;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: clamp(34px, 7vh, 72px) clamp(18px, 5vw, 64px) clamp(26px, 5vw, 58px);
  transform: translateY(-8vh);
}

.brand {
  width: min(100%, 920px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

h1 {
  margin: 0;
  font-size: clamp(46px, 9.2vw, 118px);
  line-height: 0.82;
  font-weight: 900;
  letter-spacing: 0;
  color: #fff;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.22),
    0 7px 18px rgba(0, 0, 0, 0.58);
}

.redline {
  position: relative;
  width: min(100%, 880px);
  height: 14px;
  margin: 13px 0 4px;
  overflow: hidden;
}

.redline::before {
  content: "";
  position: absolute;
  left: 1px;
  right: 2px;
  top: 3px;
  height: 7px;
  background: linear-gradient(90deg, transparent, #681b1b 10%, var(--red-bright) 78%, #8e1b1b);
  transform: skewX(-38deg);
  transform-origin: right;
  box-shadow: 0 0 18px rgba(201, 39, 39, 0.38);
}

.redline::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 3px;
  border-top: 7px solid var(--red-bright);
  border-right: 44px solid transparent;
  filter: drop-shadow(0 0 12px rgba(240, 68, 62, 0.48));
}

.service-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2.8vw, 32px);
  align-items: center;
  justify-items: center;
  width: min(100%, 880px);
}

.tab {
  position: relative;
  min-height: 52px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: clamp(20px, 4vw, 42px);
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  opacity: 0.86;
  transition:
    color 160ms ease,
    opacity 160ms ease,
    text-shadow 160ms ease;
}

.tab::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: min(78%, 170px);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--red-bright), transparent);
  box-shadow: 0 0 12px rgba(240, 68, 62, 0.58);
  opacity: 0;
  transform: translateX(-50%) scaleX(0.72);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.tab:hover,
.tab:focus-visible,
.tab.is-active {
  opacity: 1;
  color: #fff;
  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.36),
    0 0 18px rgba(255, 255, 255, 0.22),
    0 7px 18px rgba(0, 0, 0, 0.58);
}

.tab.is-active::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

.service-description {
  width: min(100%, 620px);
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(14px, 1.45vw, 17px);
  line-height: 1.45;
  font-weight: 500;
  text-align: center;
  text-wrap: balance;
}

.request {
  width: min(100%, 880px);
  margin: clamp(24px, 5vh, 48px) auto 0;
  padding-top: clamp(22px, 4vh, 34px);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  text-align: center;
}

.request h2 {
  margin: 0 0 18px;
  font-size: clamp(22px, 3.5vw, 36px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
  color: #fff;
}

form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(190px, 1fr);
  gap: 12px;
  margin: 0 auto;
  width: 100%;
}

input,
form button {
  width: 100%;
  min-height: 52px;
  border-radius: 4px;
  font: inherit;
  font-size: 15px;
  letter-spacing: 0;
}

input {
  border: 1px solid var(--border);
  background: var(--field);
  color: #fff;
  padding: 0 15px;
  outline: none;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

input:focus {
  border-color: rgba(240, 68, 62, 0.76);
  box-shadow: 0 0 0 3px rgba(240, 68, 62, 0.12);
}

input.is-callback-focus {
  border-color: rgba(255, 255, 255, 0.46);
  box-shadow:
    0 0 8px rgba(255, 255, 255, 0.16),
    0 0 20px rgba(255, 255, 255, 0.1);
}

form button {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #e43b35, #9e1f1f);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(158, 31, 31, 0.28);
  transition:
    background 170ms ease,
    border-color 170ms ease,
    box-shadow 170ms ease,
    text-shadow 170ms ease;
}

form button:hover,
form button:focus-visible {
  background: linear-gradient(180deg, #e43b35, #a92121);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow:
    0 0 8px rgba(255, 255, 255, 0.18),
    0 0 18px rgba(255, 255, 255, 0.12),
    0 10px 28px rgba(158, 31, 31, 0.3);
  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.34),
    0 0 16px rgba(255, 255, 255, 0.18);
  outline: none;
}

form button:active {
  box-shadow:
    0 0 6px rgba(255, 255, 255, 0.14),
    0 8px 22px rgba(188, 37, 37, 0.28);
}

.messengers {
  margin-top: 20px;
  text-align: center;
}

.messengers p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
  line-height: 1.25;
}

.messenger-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.messenger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 132px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition:
    border-color 170ms ease,
    background 170ms ease,
    box-shadow 170ms ease,
    color 170ms ease,
    text-shadow 170ms ease;
}

.messenger svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  opacity: 0.9;
}

.messenger:hover,
.messenger:focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.075);
  box-shadow:
    0 0 7px rgba(255, 255, 255, 0.16),
    0 0 18px rgba(255, 255, 255, 0.1);
  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.3),
    0 0 15px rgba(255, 255, 255, 0.16);
  outline: none;
}

.phone-contact {
  margin-top: 15px;
  text-align: center;
}

.phone-contact p {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
  line-height: 1.2;
}

.phone-contact a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
  transition:
    color 170ms ease,
    text-shadow 170ms ease;
}

.phone-contact a:hover,
.phone-contact a:focus-visible {
  color: #fff;
  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.34),
    0 0 18px rgba(255, 255, 255, 0.18);
  outline: none;
}

.callback-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin: 13px auto 0;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color 170ms ease,
    background 170ms ease,
    box-shadow 170ms ease,
    color 170ms ease,
    text-shadow 170ms ease;
}

.callback-button:hover,
.callback-button:focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.065);
  box-shadow:
    0 0 7px rgba(255, 255, 255, 0.14),
    0 0 18px rgba(255, 255, 255, 0.08);
  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.28),
    0 0 15px rgba(255, 255, 255, 0.14);
  outline: none;
}

.instagram-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: fit-content;
  margin: 13px auto 0;
  color: rgba(255, 255, 255, 0.58);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition:
    color 170ms ease,
    text-shadow 170ms ease;
}

.instagram-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  opacity: 0.92;
}

.instagram-link:hover,
.instagram-link:focus-visible {
  color: #fff;
  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.28),
    0 0 15px rgba(255, 255, 255, 0.14);
  outline: none;
}

@media (max-width: 760px) {
  .page {
    min-height: 100svh;
    justify-content: center;
    padding: 30px 18px 34px;
    transform: translateY(-3vh);
  }

  .brand {
    width: 100%;
    text-align: center;
  }

  h1 {
    font-size: clamp(34px, 10vw, 48px);
    line-height: 0.9;
    text-shadow:
      0 1px 0 rgba(255, 255, 255, 0.2),
      0 6px 15px rgba(0, 0, 0, 0.58);
  }

  .redline {
    width: min(100%, 540px);
    height: 11px;
    margin: 9px 0 3px;
  }

  .redline::before {
    top: 3px;
    height: 5px;
  }

  .redline::after {
    top: 3px;
    border-top-width: 5px;
    border-right-width: 28px;
  }

  .service-tabs {
    width: 100%;
    gap: 6px;
  }

  .tab {
    min-height: 36px;
    font-size: clamp(13px, 3.9vw, 18px);
  }

  .service-description {
    width: min(100%, 420px);
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.32;
  }

  .request {
    width: 100%;
    margin-top: clamp(22px, 5vh, 34px);
    padding-top: 24px;
  }

  .request h2 {
    margin-bottom: 16px;
    font-size: clamp(20px, 6vw, 25px);
    line-height: 1.12;
  }

  form {
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: 420px;
  }

  input,
  form button {
    min-height: 50px;
    font-size: 15px;
  }

  .messengers {
    margin-top: 18px;
  }

  .messengers p {
    font-size: 13px;
  }

  .messenger-links {
    gap: 8px;
  }

  .messenger {
    min-width: 0;
    flex: 1;
    min-height: 42px;
    padding: 0 8px;
    font-size: 13px;
  }

  .messenger svg {
    width: 18px;
    height: 18px;
  }

  .phone-contact {
    margin-top: 14px;
  }

  .phone-contact a {
    font-size: 19px;
  }

  .callback-button {
    min-height: 39px;
    margin-top: 12px;
    font-size: 12px;
  }

  .instagram-link {
    margin-top: 14px;
    font-size: 12px;
  }

  .instagram-link svg {
    width: 17px;
    height: 17px;
  }
}

@media (max-width: 380px) {
  .page {
    padding-right: 14px;
    padding-left: 14px;
  }

  h1 {
    font-size: clamp(31px, 9.6vw, 38px);
  }

  .tab {
    font-size: clamp(12px, 3.7vw, 14px);
  }

  .request h2 {
    font-size: 19px;
  }

  .service-description {
    font-size: 12px;
  }

  .messenger {
    gap: 5px;
    font-size: 12px;
  }
}
