:root {
  --ink: #234b65;
  --ink-strong: #143c59;
  --blue: #2fa9df;
  --blue-dark: #0b5b9b;
  --line: #d8e4ec;
  --muted: #5f7481;
  --soft: #f4f7f9;
  --white: #ffffff;
  --danger: #c6263e;
  --success: #21884a;
  --shadow: 0 18px 45px rgba(27, 72, 102, 0.16);
  --notch-width: min(740px, 58vw);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  overflow-x: hidden;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--white);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--white);
}

a {
  color: inherit;
}

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

button,
input,
select {
  font: inherit;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--white);
}

.shell {
  width: min(100% - 32px, 1200px);
  margin: 0 auto;
}

.phone {
  color: #17618c;
  text-decoration: none;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.home-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 100vw;
  overflow: hidden;
}

.home-head {
  display: grid;
  grid-template-columns: minmax(0, 760px) 1fr;
  align-items: start;
  gap: 52px;
  padding-top: 26px;
}

.home-title {
  margin: 0;
  max-width: 780px;
  color: #2c4b5e;
  font-size: clamp(38px, 3.35vw, 46px);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.home-head .phone {
  justify-self: end;
  padding-top: 18px;
  text-align: right;
  font-size: 48px;
}

.phone__prefix {
  color: #6cabd0;
  font-size: 30px;
}

.home-scene {
  position: relative;
  flex: 1;
  min-height: 606px;
  margin-top: 12px;
  overflow: visible;
}

.home-lead {
  position: relative;
  z-index: 2;
  width: 410px;
  margin: 0 0 0 0;
  padding-top: 8px;
  color: #17618c;
  font-size: 30px;
  line-height: 1.35;
  font-weight: 800;
}

.home-cta {
  position: relative;
  z-index: 2;
  margin-top: 26px;
}

.home-button-img {
  display: block;
  width: 390px;
  height: 109px;
}

.home-button-img img {
  width: 100%;
  height: auto;
}

.home-graphic {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 72px;
  width: min(1500px, 92vw);
  max-width: none;
  transform: translateX(-45%);
}

.home-graphic img {
  width: 100%;
  max-width: none;
}

.home-tree-left,
.home-tree-right {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.home-tree-left {
  left: -280px;
  bottom: 10px;
  width: 300px;
}

.home-tree-right {
  right: -280px;
  bottom: 10px;
  width: 281px;
}

@media (min-width: 1501px) {
  .home-graphic {
    transform: translateX(-58%);
  }
}

@media (max-width: 1500px) {
  .home-tree-left,
  .home-tree-right {
    display: none;
  }
}

.button {
  position: relative;
  appearance: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  color: var(--white);
  background: linear-gradient(180deg, #48bee9 0%, #23a6de 56%, #0f62a5 100%);
  box-shadow: inset 0 -7px 0 rgba(1, 43, 116, 0.28), inset 0 3px 0 rgba(255, 255, 255, 0.22), 0 8px 18px rgba(22, 97, 140, 0.22);
  border-radius: 999px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.button--big {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 390px;
  min-height: 92px;
  padding: 0 82px 8px 28px;
  font-size: 28px;
}

.button::after {
  content: "";
  width: 24px;
  height: 24px;
  border-top: 6px solid currentColor;
  border-right: 6px solid currentColor;
  transform: rotate(45deg);
  position: absolute;
  right: 36px;
  top: 50%;
  margin-top: -16px;
}

.button--small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  min-width: 220px;
  padding: 0 26px 3px;
  background: var(--white);
  color: #17618c;
  box-shadow: inset 0 0 0 2px #bcd5e3;
  font-size: 15px;
  letter-spacing: 0.3px;
}

.button--small::after {
  display: none;
}

.top-plate,
.bottom-plate {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f6f6f6 0%, #d7d7d7 100%);
}

.top-plate {
  min-height: 124px;
}

.top-plate::after,
.bottom-plate::before {
  content: "";
  position: absolute;
  left: 50%;
  width: var(--notch-width);
  height: 96px;
  transform: translateX(-50%);
  background: var(--white);
  box-shadow: 0 0 32px rgba(0, 0, 0, 0.08);
}

.top-plate::after {
  top: 30px;
  border-radius: 42px 42px 0 0;
}

.bottom-plate {
  min-height: 118px;
  margin-top: 0;
}

.bottom-plate::before {
  top: -76px;
  height: 112px;
  border-radius: 0 0 42px 42px;
}

.plate-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  min-height: 124px;
}

.plate-logo,
.plate-title,
.plate-inner .phone {
  position: absolute;
  z-index: 1;
}

.plate-logo {
  left: calc((100vw - var(--notch-width)) / 4 - 46px);
  top: 29px;
}

.plate-logo img {
  width: 92px;
}

.plate-title {
  left: 50%;
  top: 44px;
  width: var(--notch-width);
  transform: translateX(-50%);
  margin: 0;
  color: #234b65;
  text-align: center;
  font-size: 36px;
  line-height: 1.1;
  font-weight: 900;
  text-transform: uppercase;
}

.plate-inner .phone {
  left: calc(50% + var(--notch-width) / 2 + (100vw - var(--notch-width)) / 4);
  top: 54px;
  transform: translateX(-50%);
  text-align: center;
  font-size: 24px;
}

.choice-main {
  flex: 0 0 auto;
  padding: 76px 0 86px;
}

.services-main {
  flex: 0 0 auto;
  padding: 118px 0 96px;
}

.choice-grid {
  width: min(100%, 840px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 399px);
  justify-content: center;
  gap: 30px 22px;
}

.graphic-link,
.graphic-button {
  display: block;
  width: 399px;
  height: 121px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.graphic-link img,
.graphic-button img {
  width: 100%;
  height: auto;
}

.choice-request {
  display: flex;
  align-items: center;
  justify-content: center;
}

.choice-request .button {
  width: 360px;
  min-height: 86px;
  font-size: 23px;
}

.services-title {
  display: none;
  margin: 0 0 56px;
  color: #143c59;
  text-align: center;
  font-size: 42px;
  line-height: 1.15;
  font-weight: 900;
  text-transform: uppercase;
}

.services-grid {
  width: min(100%, 1030px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  gap: 54px 26px;
}

.service-card {
  appearance: none;
  width: 330px;
  height: 84px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.service-card:hover {
  transform: translateY(-1px);
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-card--wide {
  grid-column: 2;
}

.footer {
  position: relative;
  z-index: 1;
  padding: 20px 0;
  color: #87949c;
  text-align: center;
  font-size: 14px;
}

.footer a {
  text-decoration: none;
}

.bottom-plate .footer {
  padding-top: 96px;
}

.disclaimer-footer {
  margin-top: auto;
  padding: 8px 12px 10px;
  color: rgba(255, 255, 255, 0.78);
  background: #2d1f73;
  font-size: 16px;
  line-height: 1.18;
}

.disclaimer-footer p {
  max-width: 1280px;
  margin: 0 auto;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 39, 54, 0.72);
}

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

.modal__box {
  width: min(100%, 560px);
  padding: 28px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  position: relative;
}

.modal__box h2 {
  margin: 0 42px 22px 0;
  color: var(--ink-strong);
  font-size: 26px;
  line-height: 1.18;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--soft);
  cursor: pointer;
}

.modal__close::before,
.modal__close::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 17px;
  width: 16px;
  height: 2px;
  background: currentColor;
}

.modal__close::before {
  transform: rotate(45deg);
}

.modal__close::after {
  transform: rotate(-45deg);
}

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

.field {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.field input,
.field select {
  width: 100%;
  min-height: 52px;
  border: 1px solid #bcd5e3;
  border-radius: 8px;
  padding: 0 16px;
  color: var(--ink);
  font-weight: 500;
  background: var(--white);
}

.field input:focus,
.field select:focus {
  outline: 2px solid rgba(47, 169, 223, 0.35);
  border-color: var(--blue);
}

.form-status {
  min-height: 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.form-status[data-kind="error"] {
  color: var(--danger);
}

.form-status[data-kind="success"] {
  color: var(--success);
}

.policy,
.success {
  width: min(100% - 32px, 940px);
  margin: 0 auto;
  padding: 54px 0;
}

.policy h1,
.success h1 {
  margin: 0 0 24px;
  color: var(--ink-strong);
  font-size: 42px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.policy h2 {
  margin: 28px 0 10px;
  color: var(--ink-strong);
  font-size: 24px;
}

.policy p,
.policy li,
.success p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.policy ul {
  padding-left: 0;
  list-style-position: inside;
}

.success {
  text-align: center;
}

.success img {
  width: 92px;
  margin: 0 auto 24px;
}

@media (max-width: 1200px) {
  .home-head {
    grid-template-columns: minmax(0, 690px) 1fr;
    gap: 28px;
  }

  .home-title {
    font-size: 42px;
    line-height: 1.08;
  }

  .home-head .phone {
    font-size: 36px;
  }

  .phone__prefix {
    font-size: 24px;
  }

  .home-graphic {
    left: 50%;
    top: 70px;
    width: min(1280px, 94vw);
    transform: translateX(-44%);
  }

  .home-scene {
    min-height: 576px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    width: min(100%, 720px);
  }

  .service-card--wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1100px) {
  .home-head {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 14px;
    padding-top: 24px;
  }

  .home-title {
    max-width: 680px;
    text-align: center;
    font-size: clamp(28px, 4.1vw, 34px);
    line-height: 1.08;
    letter-spacing: 0.4px;
  }

  .home-head .phone {
    padding-top: 0;
    font-size: clamp(26px, 4vw, 34px);
    text-align: center;
  }

  .phone__prefix {
    font-size: inherit;
  }

  .home-scene {
    min-height: 512px;
    margin-top: 8px;
  }

  .home-lead {
    width: 100%;
    text-align: center;
    font-size: clamp(24px, 3.6vw, 30px);
  }

  .home-cta {
    display: flex;
    justify-content: center;
    margin: 14px auto 0;
  }

  .home-graphic {
    left: 50%;
    top: 174px;
    width: min(760px, 108vw);
    transform: translateX(-50%);
  }

  .top-plate::after,
  .bottom-plate::before {
    display: none;
  }

  .top-plate {
    min-height: 150px;
  }

  .plate-inner {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 10px;
    min-height: 150px;
    width: min(100% - 24px, 1200px);
    padding: 10px 0 18px;
    margin: 0 auto;
  }

  .plate-logo,
  .plate-title,
  .plate-inner .phone {
    position: static;
    transform: none;
  }

  .plate-logo {
    align-self: start;
  }

  .plate-logo img {
    width: 61px;
  }

  .plate-title {
    grid-column: 1 / -1;
    grid-row: 2;
    width: auto;
    font-size: clamp(30px, 6vw, 42px);
  }

  .plate-inner .phone {
    justify-self: end;
    align-self: center;
    font-size: clamp(18px, 3vw, 24px);
  }

  .choice-main,
  .services-main {
    padding-top: 34px;
  }
}

@media (max-width: 900px) {
  .choice-grid {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 14px;
  }

  .graphic-link,
  .graphic-button {
    width: min(100%, 399px);
    height: auto;
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 24px, 1200px);
  }

  .home-title {
    max-width: 320px;
    font-size: 28px;
    line-height: 1.03;
    letter-spacing: 0;
  }

  .home-head .phone,
  .phone__prefix {
    font-size: 24px;
  }

  .home-scene {
    min-height: 390px;
    margin-top: 8px;
  }

  .home-lead {
    width: 100%;
    text-align: center;
    font-size: 22px;
  }

  .home-cta {
    margin-top: 8px;
  }

  .button--big {
    width: 306px;
    min-height: 88px;
    padding-right: 64px;
    font-size: 22px;
  }

  .home-button-img {
    width: 306px;
    height: 88px;
  }

  .button::after {
    right: 28px;
    width: 20px;
    height: 20px;
    border-width: 5px;
  }

  .home-graphic {
    left: 50%;
    top: 176px;
    width: 620px;
    transform: translateX(-50%);
  }

  .home-tree-left,
  .home-tree-right {
    display: none;
  }

  .plate-title {
    font-size: 30px;
  }

  .plate-inner .phone {
    font-size: 18px;
  }

  .choice-main,
  .services-main {
    padding: 28px 0 70px;
  }

  .choice-grid,
  .services-grid {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 14px;
  }

  .graphic-link,
  .graphic-button,
  .service-card {
    width: min(100%, 290px);
    height: auto;
    margin: 0 auto;
  }

  .choice-request .button {
    width: min(100%, 330px);
    min-height: 72px;
    font-size: 18px;
  }

  .services-title {
    margin-bottom: 24px;
    font-size: 30px;
  }

  .service-card--wide {
    grid-column: auto;
  }

  .bottom-plate {
    min-height: auto;
  }

  .bottom-plate .footer,
  .footer {
    padding: 18px 0;
  }

  .modal {
    padding: 12px;
  }

  .modal__box {
    padding: 22px 16px;
  }

  .policy,
  .success {
    width: min(100% - 24px, 940px);
    padding: 34px 0;
  }

  .policy h1,
  .success h1 {
    font-size: 28px;
  }

  .disclaimer-footer {
    padding: 8px 10px 10px;
    font-size: 12px;
    line-height: 1.22;
  }
}
