/* Values below are measured from the original onepage.io site (desktop 1440 / mobile 375). */
:root {
  --orange: #ff6800;
  --orange-dark: #e65e00;
  --charcoal: #414141;
  --text: #414141;
  --card: #f2f2f2;
  --head: "Figtree", sans-serif;
  --body: "Instrument Sans", -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font-family: var(--body); color: var(--text); background: #fff; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 500; letter-spacing: -0.3px; margin: 0; }
p { margin: 0; }
.container { width: 100%; max-width: 1298px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 200; background: #fff; padding: 8px 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 56px; padding: 7px 28px; border: 0; border-radius: 0;
  background: var(--orange); color: #fff; cursor: pointer;
  font-family: var(--body); font-weight: 600; font-size: 15px; line-height: 1.5;
  transition: background .2s, box-shadow .2s, color .2s;
}
.btn:hover { background: var(--orange-dark); }
.btn--sm { font-family: var(--head); font-weight: 500; letter-spacing: -0.3px; line-height: 1.3; border-radius: 4px; }
.btn--ghost {
  background: transparent; box-shadow: inset 0 0 0 1px var(--orange); border-radius: 4px;
  color: #fff; font-size: 17px; line-height: 25.5px; padding: 12px 31px; min-height: 61px;
}
.btn--ghost:hover { background: var(--orange); }
.btn--shine { position: relative; overflow: hidden; }
.btn--shine::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.3) 50%, rgba(255,255,255,0) 70%);
  animation: blink-infinite 2.5s ease infinite;
}
@keyframes blink-infinite {
  0%   { transform: translate3d(-100%,0,0) scale(2); opacity: 1; }
  50%  { transform: translate3d(100%,0,0); opacity: 0; }
  51%  { transform: translate3d(-100%,0,0); opacity: 0; }
  100% { transform: translate3d(-100%,0,0); opacity: 1; }
}

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: inset 0 -1px 0 rgba(7,7,26,.1); }
.header .container { max-width: none; padding: 0 41px 0 24px; }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.header__logo img { height: 52.8px; width: auto; }
.header__actions { display: flex; align-items: center; gap: 69px; }
.phone { display: inline-flex; align-items: center; gap: 16px; color: var(--orange); font-weight: 600; font-size: 18px; line-height: 1.5; }
.phone svg { width: 25.2px; height: 25.2px; fill: var(--orange); flex: none; }
.menu-toggle { display: none; }

.mobile-menu { position: fixed; inset: 0; z-index: 120; background: #fff; padding: 0 24px; display: flex; flex-direction: column; align-items: flex-start; }
.mobile-menu[hidden] { display: none; }
.mobile-menu__top { width: 100%; height: 88px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.mobile-menu__close { background: none; border: 0; padding: 8px; cursor: pointer; }
.mobile-menu__close svg { width: 20px; height: 20px; }
.mobile-menu .phone { margin-bottom: 30px; }

/* ---------- Hero ---------- */
.hero { position: relative; background-size: cover; background-position: 50% 50%; color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.68); }
.hero__inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 150px 32px 106px; }
.hero h1 { font-size: clamp(24px, 4.45vw, 64px); line-height: 1.1; max-width: 986px; margin: 0 auto 30px; }
.checks { list-style: none; padding: 0; margin: 0 0 40px; display: flex; flex-direction: column; align-items: center; font-size: 18px; line-height: 27px; }
.checks li { position: relative; min-height: 56px; display: flex; align-items: center; padding-left: 60.6px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 39.2px; height: 39.2px; margin-top: -19.6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpolygon fill='%2372C472' points='4,22 8,18 18,26 40,9 44,12 18,38'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}

/* ---------- Section titles ---------- */
.title { font-size: clamp(28.23px, 3.34vw, 48px); line-height: 1.28; text-align: center; color: var(--text); margin: 0 auto; }
.title--light { color: #fff; }
.title--line::after { content: ""; display: block; width: 50%; height: 2px; background: var(--orange); margin: 15px auto 0; }

/* ---------- Advantages ---------- */
.advantages { padding: 44px 0 66px; }
.advantages .title { line-height: 1.4; max-width: 986px; margin-bottom: 94px; }
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 93px; }
.adv { text-align: center; }
.adv__icon { width: 96px; height: 96px; border-radius: 50%; background: var(--charcoal); display: grid; place-items: center; margin: 0 auto 30px; }
.adv__icon svg { width: 44.8px; height: 44.8px; overflow: visible; }
.adv__icon svg * { fill: none; stroke: #fff; stroke-width: 2px; vector-effect: non-scaling-stroke; }
.adv h3 { font-size: 24px; line-height: 1.3104; color: var(--text); margin-bottom: 35px; }
.adv h3::after { content: ""; display: block; width: 50%; height: 2px; background: var(--orange); margin: 15px auto 0; }
.adv:nth-child(3) h3 { color: #4a4a4a; }
.adv p { font-size: 16px; line-height: 1.5; color: var(--text); }
.adv:first-child p { max-width: 332px; }

/* ---------- Gallery (auto-scrolling strip) ---------- */
.gallery { background: var(--charcoal); padding: 56px 0 59px; }
.gallery .title { margin-bottom: 34px; }
.gallery .title--line::after { width: 54%; max-width: 675px; margin-top: 35px; }
.marquee {
  overflow: hidden; width: 100%; margin-bottom: 45px; background: #3f3f3f;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 780s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img { height: 403px; width: auto; max-width: none; margin: 0 4px; border-radius: 8px; object-fit: cover; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

.gal-modal { position: fixed; inset: 0; z-index: 130; background: rgba(0,0,0,.7); }
.gal-modal[hidden] { display: none; }
.gal-modal__panel {
  position: absolute; left: 50%; top: 28px; transform: translateX(-50%);
  width: min(1150px, calc(100% - 32px)); height: calc(100% - 56px); overflow-y: auto;
  background: #fff; border-radius: 8px; padding: 81px 81px 60px;
}
.gal-modal__grid { display: flex; gap: 8px; align-items: flex-start; }
.gal-col { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.gal-col img { width: 100%; height: auto; }
.gal-modal__close {
  position: fixed; top: 24px; right: 24px; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: #0b0b27; display: grid; place-items: center; cursor: pointer;
}
.gal-modal__close svg { width: 20px; height: 20px; }

/* ---------- Testimonials ---------- */
.testimonials { padding: 61px 0 0; }
.testimonials .title { margin-bottom: 71px; }
.testimonials .title--line::after { max-width: 491px; margin-top: 16px; }
.tcard {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start;
  background: var(--card); border-radius: 16px; padding: 57px 56px 56px;
}
.tcard--flip .tcard__text { order: 2; }
.tcard--flip { min-height: 714px; } /* the original leaves empty space under this card */
.tcard--center { align-items: center; }
.tcard h3 { font-size: clamp(24px, 2.23vw, 32px); line-height: 1.25; color: #3c3c3c; margin-bottom: 34px; }
.tcard p { font-size: 18px; line-height: 1.5; color: #3c3c3c; margin-bottom: 28px; max-width: 80.5%; }
.stars { display: flex; align-items: center; height: 14px; margin: 0 0 21px 3px; }
.stars svg { width: 14px; height: 14px; fill: #333; margin-right: 8px; }
.tcard strong { display: block; font-family: var(--head); font-weight: 500; font-size: 16.8px; line-height: 1.3; letter-spacing: -0.3px; color: #333; margin-bottom: 6px; }
.tcard small { display: block; font-size: 15.12px; line-height: 1.5; color: #333; opacity: .7; }
.cta-row { padding: 58px 0 43px; }

.slider { position: relative; overflow: hidden; }
.slider__track { display: flex; height: 100%; transition: transform .6s; }
.slider__track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; }
.tcard--contain .slider__track img { object-fit: contain; }
.slider .nav { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 6px; cursor: pointer; display: grid; place-items: center; }
.slider .nav svg { width: 28px; height: 28px; fill: #fff; }
.slider .prev { left: 18px; } .slider .prev svg { transform: scaleX(-1); }
.slider .next { right: 18px; }
.slider .dots { position: absolute; bottom: 20px; left: 0; right: 0; display: flex; justify-content: center; gap: 16px; }
.slider .dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); }
.slider .dots span.on { background: #fff; }

/* ---------- Form ---------- */
.form-section {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 80px 20px; background-size: cover; background-position: center;
}
.form-card { width: 100%; max-width: 817px; background: var(--charcoal); color: #fff; padding: 50px; }
.form-card h2 { font-size: 24px; line-height: 1.31; text-align: center; margin-bottom: 21px; }
.form-card__lead { font-size: 16px; line-height: 24px; text-align: center; margin-bottom: 20px; }
.form-card label { display: block; font-size: 18px; font-weight: 700; line-height: 18px; margin-bottom: 17px; }
.form-card input:not([type=checkbox]) {
  display: block; width: 100%; margin-top: 8px; height: 64px; padding: 19px;
  font: 400 18px/24px var(--body); color: #000; background: #fff;
  border: 1px solid rgba(255,255,255,.1); border-radius: 4px;
}
.form-card input::placeholder { color: rgba(0,0,0,.3); }
.form-card input:focus { outline: 2px solid var(--orange); outline-offset: -2px; }
.form-card input.err { outline: 2px solid #e53935; outline-offset: -2px; }
.tel-wrap { position: relative; display: block; }
.tel-flag { position: absolute; left: 23px; top: 8px; height: 64px; display: flex; align-items: center; gap: 7px; pointer-events: none; }
.tel-flag .flag { width: 18px; height: 12px; box-shadow: 0 0 0 .5px rgba(0,0,0,.25); }
.tel-flag .arrow { width: 8px; height: 6px; }
.form-card .tel-wrap input { padding-left: 64px; }
.consent {
  display: flex !important; gap: 12px; align-items: flex-start; padding: 19px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 4px;
  font-weight: 400 !important; line-height: 24px !important; cursor: pointer;
}
.consent input {
  appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; margin: 3px 0 0;
  background: #fff; border: 1px solid rgba(255,255,255,.1); border-radius: 3px; cursor: pointer;
}
.consent input:checked {
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='9' viewBox='0 0 11 9'%3E%3Cpath d='M10.708 1.832L9.097.221 4.493 4.825 2.19 2.523.58 4.134l3.913 3.913 6.215-6.215z' fill='%23fff'/%3E%3C/svg%3E") center no-repeat;
  border-color: var(--orange);
}
.consent.err { outline: 2px solid #e53935; }
.form-card .btn--block { width: 100%; min-height: 61px; padding: 8px 31px; font-size: 17px; line-height: 1.5; border-radius: 4px; }
.form-msg { text-align: center; font-size: 16px; }
.form-msg:not(:empty) { margin-top: 14px; }
.phone--center { display: flex; justify-content: center; width: max-content; margin: 20px auto 0; font-size: 20px; line-height: 30px; gap: 18px; }
.phone--center svg { width: 28px; height: 28px; }
.phone--center span { position: relative; }
.phone--center span::before { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: #4d4d4d; }

/* ---------- Footer ---------- */
.footer { background: var(--charcoal); color: #fff; padding: 36px 0 40px; font-size: 18px; line-height: 27px; }
.footer h4 { font-size: 24px; line-height: 1.31; margin-bottom: 20px; }
.footer__about { max-width: 1034px; margin-bottom: 47px; }
.footer__cols {
  display: grid; grid-template-columns: 493px 1fr; column-gap: 47px;
  grid-template-areas: "id contact" "bottom contact";
}
.footer__id { grid-area: id; }
.footer__id h4 { margin-bottom: 6px; }
.footer__contact { grid-area: contact; margin-top: -7px; }
.footer__contact h4 { margin-bottom: 9px; }
.footer__bottom { grid-area: bottom; padding-top: 55px; }
.contact { display: flex; gap: 22px; align-items: center; margin-bottom: 14px; font-size: 18px; line-height: 27px; }
.contact > span { padding: 4px 0; }
.contact svg { width: 32px; height: 32px; fill: #fff; flex: none; }
.contact small { display: block; font-size: 14.4px; line-height: 21.6px; letter-spacing: .5px; opacity: .7; margin-top: -2px; }
.footer__legal { margin-bottom: 8px; line-height: 0; }
.footer__legal a { display: inline-block; font-family: var(--head); font-size: 15.2px; line-height: 1.3; letter-spacing: -0.3px; color: rgba(255,255,255,.54); }
.footer__legal a:hover { color: #fff; }
.footer__copy { font-size: 16px; line-height: 24px; color: rgba(255,255,255,.51); }

/* ---------- Terms modal ---------- */
.modal { position: fixed; inset: 0; z-index: 140; background: rgba(0,0,0,.7); }
.modal[hidden] { display: none; }
.modal__box {
  position: absolute; left: 50%; top: 28px; transform: translateX(-50%);
  width: min(900px, calc(100% - 32px)); height: calc(100% - 56px); overflow-y: auto;
  background: #fff; border-radius: 8px; padding: 60px 56px 48px; color: #333;
}
.modal__box h2 { font-size: 32px; line-height: 1.3; margin-bottom: 24px; }
.modal__body h3 { font-size: 20px; line-height: 1.3; margin: 24px 0 10px; }
.modal__body p { font-size: 16px; line-height: 1.6; margin-bottom: 12px; }
.modal__close {
  position: sticky; top: 0; float: right; margin: -40px -32px 0 0; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: #0b0b27; color: #fff; font-size: 28px; line-height: 1; cursor: pointer;
}

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  .adv-grid { grid-template-columns: 1fr; gap: 36px; }
  .tcard { grid-template-columns: 1fr; }
  .tcard--flip { min-height: 0; }
  .header__actions { gap: 28px; }
}

/* ---------- Mobile (old site's phone layout) ---------- */
@media (max-width: 640px) {
  .header .container { padding: 0 24px; }
  .header__actions { display: none; }
  .menu-toggle { display: grid; place-items: center; width: 56px; height: 56px; border: 0; border-radius: 4px; background: #f2f2f2; cursor: pointer; }
  .menu-toggle svg { width: 21px; height: 21px; }

  .hero { background-position: 75% 55%; }
  .hero::before { background: rgba(0,0,0,.65); }
  .hero__inner { padding: 32px 24px 26px; }
  .hero h1 { font-size: 24px; line-height: 1.3104; margin-bottom: 16px; }
  .checks { font-size: 12px; line-height: 18px; margin-bottom: 26px; }
  .checks li { min-height: 40px; padding-left: 27.4px; }
  .checks li::before {
    width: 16.8px; height: 16.8px; margin-top: -8.4px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M11,15c-.256,0-.512-.098-.707-.293l-4-4c-.391-.391-.391-1.023,0-1.414s1.023-.391,1.414,0l3.293,3.293L21.293,2.293c.391-.391,1.023-.391,1.414,0s.391,1.023,0,1.414L11.707,14.707c-.195,.195-.451,.293-.707,.293Z'/%3E%3Cpath fill='%23fff' d='M18,23H4c-1.654,0-3-1.346-3-3V6c0-1.654,1.346-3,3-3H15c.552,0,1,.448,1,1s-.448,1-1,1H4c-.551,0-1,.449-1,1v14c0,.551,.449,1,1,1h14c.551,0,1-.449,1-1V12c0-.552,.448-1,1-1s1,.448,1,1v8c0,1.654-1.346,3-3,3Z'/%3E%3C/svg%3E");
  }
  .btn--lg { font-size: 13px; line-height: 1.2; padding: 5px 20px; min-height: 41.6px; border-radius: 4px; }

  .advantages { padding: 21.5px 0 28px; }
  .advantages .title { line-height: 1.279; margin-bottom: 70px; }
  .adv__icon { margin-bottom: 16px; }
  .adv h3 { font-size: 20px; line-height: 28px; margin-bottom: 23px; }
  .adv p { font-size: 14px; line-height: 21px; }
  .adv:first-child p { max-width: none; }

  .gallery { padding: 28px 0 41px; }
  .marquee { margin-bottom: 20px; }
  .testimonials { padding-top: 30px; }

  .tcard { padding: 24px; gap: 23px; }
  .tcard h3 { line-height: 1.28; margin-bottom: 24px; }
  .tcard p { font-size: 16px; max-width: none; }
  .tcard .slider { aspect-ratio: auto !important; height: var(--mh); }
  .cta-row { padding: 30px 0; }

  .form-section { min-height: 0; padding: 5px 24px; }
  .form-card { padding: 24px; }
  .form-card .btn--block { line-height: 1.2; padding: 16px 31px; }

  .footer { padding-top: 30px; font-size: 16px; line-height: 24px; }
  .footer h4 { font-size: 20px; line-height: 28px; }
  .footer > .container > h4:first-child { line-height: 24px; }
  .footer__about { border-bottom: 2px solid #4d4d4d; padding-bottom: 30px; margin-bottom: 41px; }
  .footer__cols { grid-template-columns: 1fr; grid-template-areas: "id" "contact" "bottom"; row-gap: 37px; }
  .footer__contact { margin-top: 0; }
  .footer__contact h4 { margin-bottom: 16px; }
  .footer__legal { margin-bottom: 4px; }
  .footer__id { padding-top: 0; }
  .footer__bottom { padding-top: 16px; margin-top: -4px; }
  .contact { gap: 16px; font-size: 17px; line-height: 20.4px; }
  .contact svg { width: 30px; height: 30px; }
  .contact small { font-size: 13.6px; }
  .footer__legal a { font-size: 13.6px; }
  .footer__copy { font-size: 14px; line-height: 21px; }

  .gal-modal__panel { padding: 64px 16px 24px; }
  .modal__box { padding: 56px 20px 32px; }
}
