:root {
  --bg: #15215e;
  --bg-dark: #10184d;
  --card: rgba(42, 54, 111, .78);
  --card-solid: #253370;
  --gold: #ffc43d;
  --gold-dark: #f1a915;
  --text: #fff8dc;
  --white: #ffffff;
  --muted: #d6daf6;
  --line: rgba(255,255,255,.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at 18% 6%, rgba(255,196,61,.08), transparent 25%),
    radial-gradient(circle at 86% 24%, rgba(255,255,255,.05), transparent 22%),
    linear-gradient(180deg, #1b2768 0%, #16225e 44%, #10194d 100%);
  line-height: 1.55;
}

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

.section { padding: 86px 0; }

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(17, 25, 77, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header__inner {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.logo img {
  display: block;
  width: 180px;
  max-height: 74px;
  object-fit: contain;
}
.header__actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
.phone {
  color: var(--white);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.phone:hover { color: var(--gold); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), var(--gold-dark));
  color: var(--white);
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(255,188,49,.28);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.btn:hover {
  transform: translateY(-4px) scale(1.035);
  box-shadow: 0 22px 45px rgba(255,188,49,.42);
  filter: saturate(1.08);
}
.btn:active { transform: translateY(-1px) scale(.99); }
.btn--small { min-height: 44px; padding: 0 24px; font-size: 13px; }
.btn--ghost {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: none;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 96px;
}
.hero__grid,
.consultation__grid {
  display: grid;
  grid-template-columns: 1.05fr .82fr;
  gap: 62px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-size: 13px;
}
h1 {
  margin: 0 0 22px;
  color: var(--text);
  font-size: clamp(42px, 6vw, 76px);
  line-height: .98;
  font-weight: 900;
  letter-spacing: -.04em;
}
.hero h2,
.section-head h2,
.consultation h2 {
  margin: 0 0 22px;
  color: var(--gold);
  font-size: clamp(28px, 3.7vw, 48px);
  line-height: 1.08;
  font-weight: 900;
}
.hero__content p,
.consultation__text p,
.section-head p {
  color: var(--white);
  font-size: 17px;
  max-width: 650px;
}
.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.form-card {
  position: relative;
  padding: 34px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(44,57,121,.96), rgba(28,38,92,.96));
  box-shadow: 0 30px 70px rgba(0,0,0,.26);
}
.form-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 18% 0%, rgba(255,196,61,.18), transparent 32%);
}
.form-card h3,
.modal h3 {
  position: relative;
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 27px;
  line-height: 1.15;
  font-weight: 900;
}
.form-card p,
.modal p {
  position: relative;
  margin: 0 0 24px;
  color: var(--muted);
}
form { position: relative; }
label { display: block; margin-bottom: 16px; }
label span {
  display: block;
  margin-bottom: 7px;
  color: var(--gold);
  font-weight: 800;
  font-size: 13px;
}
input {
  width: 100%;
  height: 52px;
  padding: 0 17px;
  border: 2px solid rgba(255,196,61,.72);
  border-radius: 13px;
  background: rgba(9,15,59,.82);
  color: var(--white);
  outline: 0;
  font: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(255,196,61,.13);
}
.form-card .btn,
.modal .btn { width: 100%; margin-top: 8px; }
.form-status {
  min-height: 22px;
  margin-top: 14px;
  color: var(--gold);
  font-weight: 800;
  text-align: center;
}

.about { padding-top: 72px; }
.section-head { text-align: center; margin-bottom: 42px; }
.section-head p { margin: 0 auto; }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.info-card {
  min-height: 350px;
  padding: 34px 28px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.16);
  background: var(--card);
  box-shadow: 0 20px 44px rgba(0,0,0,.16);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.info-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,196,61,.55);
  background: rgba(49, 63, 135, .86);
}
.icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(180deg, var(--gold), var(--gold-dark));
  box-shadow: 0 12px 28px rgba(255,188,49,.24);
}
.info-card h3 {
  margin: 0 0 16px;
  color: var(--gold);
  text-align: center;
  font-size: 19px;
  line-height: 1.2;
}
.info-card p { margin: 0 0 12px; color: var(--white); font-size: 14px; }
.about__button { text-align: center; margin-top: 38px; }

.consultation {
  background: linear-gradient(180deg, rgba(11,17,58,.16), rgba(9,14,49,.45));
}
.price-box {
  display: grid;
  gap: 12px;
  width: fit-content;
  margin-top: 30px;
  padding: 22px 26px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  background: rgba(42,54,111,.68);
  color: var(--white);
  font-size: 18px;
}
.price-box b { color: var(--gold); }

.footer {
  padding: 46px 0;
  background: rgba(10,16,57,.78);
  border-top: 1px solid rgba(255,255,255,.1);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer h3 {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 18px;
}
.footer p,
.footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
.footer a:hover { color: var(--gold); }
.footer__links { display: grid; gap: 8px; }
.socials { display: flex; gap: 12px; }
.socials a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
}
.footer-logo { justify-self: end; align-self: center; }
.footer-logo img { width: 190px; display: block; }

.modal {
  display: none;
  width: min(460px, 92vw);
  padding: 34px;
  border-radius: 22px;
  background: linear-gradient(180deg, #273674, #17225d);
  color: var(--white);
}
.modal label span { color: var(--gold); }

.doodle {
  position: absolute;
  pointer-events: none;
  opacity: .12;
  color: #dbe1ff;
  border-color: #dbe1ff;
}
.doodle--cloud { left: 5%; top: 96px; width: 95px; height: 38px; border: 3px solid; border-radius: 45px; }
.doodle--cloud::before,
.doodle--cloud::after { content:""; position:absolute; border:3px solid; border-color:inherit; border-bottom:0; border-radius:50px 50px 0 0; }
.doodle--cloud::before { width:45px; height:30px; left:17px; top:-22px; }
.doodle--cloud::after { width:50px; height:34px; right:4px; top:-21px; }
.doodle--bulb { right: 7%; top: 105px; width: 52px; height: 66px; border: 3px solid; border-radius: 50% 50% 44% 44%; }
.doodle--arrow { left: 8%; bottom: 70px; width: 86px; height: 30px; border-bottom: 4px solid; transform: rotate(34deg); }

@media (max-width: 960px) {
  .hero__grid,
  .consultation__grid,
  .cards,
  .footer__grid { grid-template-columns: 1fr; }
  .footer-logo { justify-self: start; }
  .hero { padding-top: 66px; }
}


@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1160px); }
  .header__inner { height: auto; padding: 16px 0; align-items: flex-start; }
  .logo img { width: 142px; }
  .header__actions { 
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    height: -webkit-fill-available;
    gap: 10px; 
    flex-direction: row-reverse;
  }
  .header__actions .btn.btn--small{
    display: none;
  }
  .phone { font-size: 13px; }
  .btn { width: 100%; min-height: 48px; padding: 0 18px; font-size: 12px; }
  .header__actions .btn { width: auto; }
  .hero__buttons { display: grid; }
  .form-card { padding: 24px; }
  .section { padding: 58px 0; }
}

@media (max-width: 768px) {
  .header__actions .phone {
    font-size: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f1a915;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
  }

  .header__actions .phone::before {
    content: "";
    width: 22px;
    height: 22px;
    background: #fff;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1C10.61 21 3 13.39 3 4c0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.24.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1C10.61 21 3 13.39 3 4c0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.24.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E") center / contain no-repeat;
  }
}

.policy-check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: flex-start;
  margin: 14px 0 18px;
  cursor: pointer;
}

.policy-check input {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 3px 0 0;
  padding: 0;
  accent-color: var(--gold);
  cursor: pointer;
}

.policy-check span {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 500;
}

.policy-check a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-check a:hover {
  color: var(--white);
}

.consult-info {
  margin: 80px auto;
  max-width: 900px;
  text-align: center;
}

.consult-info h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.consult-info p {
  opacity: 0.9;
  margin-bottom: 15px;
  line-height: 1.6;
}

.consult-info h3 {
  margin-top: 30px;
  margin-bottom: 20px;
}

.consult-list {
  text-align: left;
  padding-left: 0;
  list-style: none;
}

.consult-list li {
  margin-bottom: 15px;
  padding: 15px;
  background: #1b2a6b;
  border-radius: 10px;
  transition: 0.3s;
}

.consult-list li:hover {
  transform: translateY(-5px);
  background: #24358a;
}

.cookie {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #1b2a6b;
  padding: 15px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 500px;
  width: calc(100% - 40px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 9999;
  animation: fadeUp 0.5s ease;
}

.cookie p {
  margin: 0;
  font-size: 13px;
  opacity: 0.8;
}

.cookie a {
  color: #f6bd35;
}

.cookie .btn {
  padding: 8px 14px;
  font-size: 14px;
}

.cookie.hide {
  display: none;
}

/* маленькая анимация */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.policy-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 20px;
}

.policy-content {
  width: 100%;
}

.policy-card {
  background: rgba(27, 42, 107, 0.92);
  border: 1px solid rgba(246, 189, 53, 0.18);
  border-radius: 24px;
  padding: 42px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.policy-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.policy-updated {
  display: inline-block;
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(246, 189, 53, 0.12);
  color: #f6bd35;
  font-size: 13px;
}

.policy-section-title {
  margin: 0 0 34px;
  font-size: 30px;
  line-height: 1.25;
  color: #ffffff;
}

.policy-h3 {
  margin: 36px 0 16px;
  font-size: 22px;
  line-height: 1.3;
  color: #f6bd35;
}

.policy-card p,
.policy-card li {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.7;
}

.policy-card p {
  margin: 0 0 14px;
}

.policy-card strong {
  color: #ffffff;
}

.policy-inline-link {
  color: #f6bd35;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.policy-inline-link:hover {
  color: #ffd56b;
}

.policy-list {
  margin: 12px 0 22px;
  padding-left: 22px;
}

.policy-list li {
  margin-bottom: 10px;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 24px 0 36px;
}

.policy-box {
  background: rgba(15, 28, 77, 0.75);
  border: 1px solid rgba(246, 189, 53, 0.16);
  border-radius: 18px;
  padding: 24px;
}

.policy-box-title {
  margin: 0 0 10px;
  font-size: 16px;
  color: #f6bd35;
}

.policy-box-text {
  margin-bottom: 18px;
}

@media (max-width: 768px) {
  .policy-container {
    padding: 40px 15px;
  }

  .policy-card {
    padding: 26px 18px;
    border-radius: 18px;
  }

  .policy-section-title {
    font-size: 23px;
  }

  .policy-h3 {
    font-size: 19px;
  }

  .policy-grid {
    grid-template-columns: 1fr;
  }
}

/* ошибка */
input.error {
  border: 1px solid #ff4d4d;
}

/* текст ошибки */
span.error {
  display: block;
  margin-top: 6px!important;
  font-size: 12px!important;
  color: #ff4d4d!important;
}

/* чекбокс */
.form-policy input.error {
  outline: 2px solid #ff4d4d;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-3px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.3s ease;
}

.success-modal {
  max-width: 420px;
  padding: 36px 32px;
  border-radius: 22px;
  background: #1b2a6b;
  color: #fff;
  text-align: center;
}

.success-modal h2 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.2;
}

.success-modal p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.85;
}

.policy-check.policy-error {
  color: #ff4d4d;
}

.policy-check.policy-error a {
  color: #ff4d4d;
}

.policy-check input.error {
  outline: 2px solid #ff4d4d;
}


.callback-fixed {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;

  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #f3ad1b;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  text-decoration: none;
}

.callback-fixed::before {
  content: "";
  width: 28px;
  height: 28px;
  background: #fff;

  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1C10.61 21 3 13.39 3 4c0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.24.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1C10.61 21 3 13.39 3 4c0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.24.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

@keyframes callback-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(245, 196, 0, 0.7);
  }

  70% {
    transform: scale(1.08);
    box-shadow: 0 0 0 18px rgba(245, 196, 0, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(245, 196, 0, 0);
  }
}

.callback-fixed {
  animation: callback-pulse 1.6s infinite;
}
