/* ==========================================================================
   MediaScale Inc — main stylesheet
   ========================================================================== */

:root {
  --ink: #2B3237;
  --text: #4A555B;
  --muted: #8A969C;
  --line: #E4EEF1;
  --teal: #26BAD3;
  --teal-d: #1FA3BD;
  --teal-dd: #178AA1;
  --aqua: #F0FAFC;
  --pink: #EC4C85;
  --orange: #E4431F;
  --grad-orange: linear-gradient(90deg, #F7893B, #E4431F);
  --grad-teal: linear-gradient(90deg, #2BBFD6, #1D8DA6);
  --shadow-soft: 0 20px 60px rgba(20, 60, 80, 0.07);
  --gutter: clamp(20px, 5vw, 40px);
  --header-h: 96px;
  --font: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Sora', 'Nunito Sans', system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--ink); -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal-d); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal-dd); }
button { font-family: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-head); letter-spacing: -0.02em; color: var(--ink); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
[hidden] { display: none !important; }
::selection { background: #CDEFF5; }

/* ---------- Layout ---------- */
.site { min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; }
.site-main { flex: 1 0 auto; display: flex; flex-direction: column; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.container--narrow { max-width: 1080px; }
.under-header { margin-top: calc(var(--header-h) * -1); padding-top: var(--header-h); }
.bg-contour {
  background:
    repeating-radial-gradient(ellipse 55% 42% at 12% 8%, rgba(255,255,255,0) 0 36px, rgba(255,255,255,.75) 37px 38px),
    repeating-radial-gradient(ellipse 45% 50% at 88% 18%, rgba(255,255,255,0) 0 32px, rgba(255,255,255,.6) 33px 34px),
    linear-gradient(180deg, #CDEFF5 0%, #E9F7F7 38%, #FDF7F1 70%, #FFFFFF 100%);
}
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Typography ---------- */
.h1 { font-size: clamp(40px, 5.4vw, 72px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; }
.h2 { font-size: clamp(30px, 3.8vw, 54px); line-height: 1.15; letter-spacing: -0.025em; font-weight: 800; text-wrap: balance; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--text); margin: 32px 0 0; max-width: 600px; text-wrap: pretty; }
.text { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--text); margin: 24px 0 0; text-wrap: pretty; }
.eyebrow { font-weight: 800; font-size: 14px; letter-spacing: .14em; color: var(--teal-d); }
.illus { width: 100%; mix-blend-mode: multiply; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 40px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: filter .2s, background .2s, color .2s, transform .2s, box-shadow .2s; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn-orange { background: var(--grad-orange); color: #fff; font-size: clamp(18px, 1.7vw, 22px); font-weight: 600; padding: 18px 38px; box-shadow: 0 10px 24px rgba(228, 67, 31, .25); }
.btn-orange:hover { filter: brightness(1.06); color: #fff; }
.btn-sm { font-size: 17px; padding: 14px 30px; box-shadow: none; }
.btn-teal { background: var(--grad-teal); color: #fff; font-weight: 800; font-size: 16px; letter-spacing: .02em; padding: 14px 30px; }
.btn-teal:hover { filter: brightness(1.08); color: #fff; }
.btn-soft { background: #FFEDE6; color: var(--orange); font-size: clamp(17px, 1.5vw, 19px); font-weight: 600; padding: 14px 34px; }
.btn-soft:hover { background: #FFE0D4; color: #C9361A; }
.round-btn { width: 52px; height: 52px; flex: none; border-radius: 50%; border: 2px solid #D8E3E6; background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: border-color .2s, color .2s; }
.round-btn i { font-size: 22px; }
.round-btn:hover { border-color: var(--teal); color: var(--teal-d); }

/* ---------- Logo ---------- */
.logo { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 900; font-size: 24px; letter-spacing: -0.02em; flex: none; }
.logo:hover { color: var(--ink); }
.logo img { width: 30px; height: 30px; }
.logo sup { font-size: 11px; font-weight: 700; color: var(--teal-d); margin-left: 2px; }
.logo--light, .logo--light:hover { color: #fff; font-size: 26px; }
.logo--light img { width: 32px; height: 32px; }
.logo--light sup { color: #34D1E6; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; padding: 20px clamp(12px, 3vw, 24px) 0; pointer-events: none; }
.header-bar { pointer-events: auto; max-width: 1280px; margin: 0 auto; background: #fff; border-radius: 60px; box-shadow: 0 10px 40px rgba(20, 60, 80, .08); padding: 12px 12px 12px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.main-nav { display: flex; align-items: center; gap: 30px; flex: 1 1 auto; padding-left: 12px; white-space: nowrap; font-size: 17px; }
.main-nav a { color: #3A4449; }
.main-nav a:hover, .main-nav a.is-active { color: var(--teal-d); }
.main-nav a.is-active { font-weight: 700; }
.header-cta { flex: none; }
.burger { display: none; width: 52px; height: 52px; flex: none; border: 0; border-radius: 50%; background: linear-gradient(135deg, #2BBFD6, #1D8DA6); color: #fff; place-items: center; cursor: pointer; }
.burger i { font-size: 26px; }

@media (max-width: 959px) {
  .main-nav, .header-cta { display: none; }
  .burger { display: grid; }
  .header-bar { padding: 10px 10px 10px 22px; }
}

/* ---------- Mobile menu (fullscreen) ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 100; overflow-y: auto;
  visibility: hidden; pointer-events: none;
  clip-path: circle(0px at calc(100% - 50px) 50px);
  transition: clip-path .6s cubic-bezier(.7, 0, .2, 1), visibility 0s linear .6s;
}
.mobile-menu.is-open {
  visibility: visible; pointer-events: auto;
  clip-path: circle(150% at calc(100% - 50px) 50px);
  transition: clip-path .6s cubic-bezier(.7, 0, .2, 1), visibility 0s;
}
.mobile-menu__inner { min-height: 100%; padding-top: 30px; padding-bottom: 40px; display: flex; flex-direction: column; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; }
.mobile-menu__nav { display: flex; flex-direction: column; gap: 6px; margin-top: clamp(40px, 10vh, 88px); }
.mobile-menu__link {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid rgba(43, 50, 55, .08);
  font-family: var(--font-head); font-size: clamp(32px, 9vw, 52px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink);
  opacity: 0; transform: translateY(24px);
  transition: opacity .4s ease, transform .5s cubic-bezier(.2, .8, .2, 1), color .2s;
}
.mobile-menu__link i { font-size: 28px; color: var(--teal); }
.mobile-menu__link:hover, .mobile-menu__link.is-active { color: var(--teal-d); }
.mobile-menu.is-open .mobile-menu__link { opacity: 1; transform: none; }
.mobile-menu.is-open .mobile-menu__link:nth-child(1) { transition-delay: .18s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(2) { transition-delay: .24s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(3) { transition-delay: .30s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(4) { transition-delay: .36s; }
.mobile-menu__bottom { margin-top: auto; padding-top: 48px; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.mobile-menu__contacts { display: flex; flex-direction: column; gap: 6px; font-size: 17px; color: var(--text); }
.mobile-menu__contacts a { color: var(--ink); font-weight: 700; }

/* ---------- Hero ---------- */
.hero__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 48px; align-items: center; padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 8vw, 110px); }
.rotator { display: inline-block; min-width: 4ch; }
.rotator span { display: inline-block; animation: ms-word .5s cubic-bezier(.2, .8, .2, 1); }
.hero__cta { margin-top: clamp(36px, 4vw, 52px); }
.hero__media { width: 100%; max-width: 540px; justify-self: center; }
@keyframes ms-word { from { opacity: 0; transform: translateY(30%); } to { opacity: 1; transform: none; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: 10px 0 clamp(56px, 7vw, 90px); }
.marquee__track { display: flex; align-items: center; gap: clamp(56px, 7vw, 96px); width: max-content; animation: ms-marquee 45s linear infinite; }
.marquee__item { flex: none; white-space: nowrap; font-size: clamp(28px, 3vw, 40px); color: #A7B2B8; font-weight: 900; letter-spacing: .04em; }
.marquee__item:nth-child(even) { font-weight: 800; letter-spacing: -0.01em; }
.marquee__item:nth-child(3n+2) { font-style: italic; }
@keyframes ms-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Split sections ---------- */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: clamp(40px, 6vw, 72px); align-items: center; padding-top: clamp(64px, 8vw, 100px); padding-bottom: clamp(64px, 8vw, 100px); }
.split__media { width: 100%; max-width: 560px; justify-self: center; }
.checklist { list-style: none; margin: 44px 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 26px; }
.checklist li { display: flex; gap: 16px; align-items: center; font-weight: 800; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.35; }
.checklist i { flex: none; font-size: 30px; color: var(--teal); }
.split .btn-soft { margin-top: 48px; }
@media (max-width: 640px) { .checklist { margin-left: 0; gap: 20px; } }

/* ---------- Solutions (tabs + cards) ---------- */
.solutions { position: relative; text-align: center; }
.solutions::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; background: var(--aqua); clip-path: ellipse(80% 100% at 50% 100%); }
.solutions > .container { position: relative; padding-top: clamp(64px, 8vw, 100px); padding-bottom: clamp(72px, 9vw, 120px); }
.solutions .h2 { max-width: 900px; margin: 0 auto; }
.solutions .text { max-width: 820px; margin-left: auto; margin-right: auto; }
.tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 56px; padding: 12px; border: 2px solid var(--line); border-radius: 24px; background: #fff; }
.tab { border: 0; border-radius: 14px; background: transparent; color: #9DB0B7; font-weight: 800; font-size: clamp(16px, 1.8vw, 22px); padding: 14px clamp(18px, 2.6vw, 34px); cursor: pointer; transition: all .2s; }
.tab:hover { color: var(--teal-d); }
.tab.is-active { background: var(--teal); color: #fff; box-shadow: 0 6px 16px rgba(38, 186, 211, .3); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 28px; max-width: 1100px; margin: 72px auto 0; text-align: left; }
.card { display: flex; flex-direction: column; gap: 22px; min-height: 420px; padding: 44px 32px 48px; border-radius: 28px; border: 1.5px solid #EEF2F4; background: #fff; color: var(--ink); box-shadow: 0 20px 50px rgba(20, 60, 80, .05); transition: border-color .25s, box-shadow .25s, transform .25s; }
.card:hover { color: var(--ink); }
.card__icon { font-size: 64px; color: #AFBFC5; transition: color .25s; }
.card__title { display: flex; align-items: center; gap: 18px; margin-top: 12px; font-size: clamp(26px, 2.4vw, 36px); font-weight: 600; line-height: 1.15; color: var(--ink); transition: color .25s; }
.card__title i { font-size: 32px; opacity: 0; transition: opacity .2s; }
.card__desc { font-size: 18px; line-height: 1.55; }
.card__list { list-style: none; margin: 0; padding: 0 0 0 22px; display: flex; flex-direction: column; gap: 14px; }
.card__list li { display: flex; align-items: center; gap: 14px; font-size: 18px; }
.card__list li::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #C5D0D4; }
.card.is-hot, .card:hover { border-color: var(--pink); box-shadow: 14px 16px 0 var(--pink); transform: translate(-4px, -4px); }
.card.is-hot .card__icon, .card:hover .card__icon,
.card.is-hot .card__title, .card:hover .card__title { color: var(--pink); }
.card.is-hot .card__title i, .card:hover .card__title i { opacity: 1; }
.cards:hover .card.is-hot:not(:hover) { border-color: #EEF2F4; box-shadow: 0 20px 50px rgba(20, 60, 80, .05); transform: none; }
.cards:hover .card.is-hot:not(:hover) .card__icon { color: #AFBFC5; }
.cards:hover .card.is-hot:not(:hover) .card__title { color: var(--ink); }
.cards:hover .card.is-hot:not(:hover) .card__title i { opacity: 0; }
@media (max-width: 640px) { .card { min-height: 0; padding: 36px 28px 40px; } .card__icon { font-size: 52px; } }

/* ---------- Services ---------- */
.services { background: var(--aqua); }
.services > .container { padding-top: 40px; padding-bottom: clamp(72px, 9vw, 120px); }
.services__box { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 48px; padding: clamp(32px, 5vw, 72px); border-radius: 36px; background: #fff; box-shadow: var(--shadow-soft); }
.service { display: flex; flex-direction: column; gap: 16px; }
.service__icon { width: 64px; height: 64px; border-radius: 20px; background: #E3F6FA; display: grid; place-items: center; }
.service__icon i { font-size: 32px; color: var(--teal-d); }
.service h3 { margin-top: 8px; font-size: 24px; font-weight: 800; line-height: 1.25; }
.service p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--text); }

/* ---------- Stats ---------- */
.stats > .container { padding-top: clamp(72px, 9vw, 120px); padding-bottom: clamp(72px, 9vw, 120px); text-align: center; }
.stats .h2 { max-width: 880px; margin: 0 auto; }
.stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 48px; margin-top: clamp(48px, 6vw, 80px); }
.stat__k { font-weight: 800; font-size: 16px; letter-spacing: .12em; color: var(--teal-d); }
.stat__v { margin-top: 18px; font-family: var(--font-head); font-size: clamp(54px, 6vw, 88px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.stat__d { max-width: 280px; margin: 18px auto 0; font-size: 18px; line-height: 1.5; color: var(--text); }

/* ---------- Testimonials ---------- */
.testimonials { background: linear-gradient(180deg, #FFFFFF 0%, #EEF9FB 100%); }
.testimonials > .container { padding-top: clamp(72px, 9vw, 110px); padding-bottom: clamp(72px, 9vw, 110px); text-align: center; }
.quote-card { display: grid; margin-top: clamp(40px, 5vw, 64px); padding: clamp(32px, 5vw, 64px); border-radius: 36px; background: #fff; box-shadow: 0 20px 60px rgba(20, 60, 80, .08); }
.quote { margin: 0; grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility 0s linear .4s; }
.quote.is-active { opacity: 1; visibility: visible; transition: opacity .4s ease; }
.quote > i { font-size: 48px; color: var(--teal); }
.quote blockquote { margin: 20px 0 0; font-size: clamp(19px, 2.2vw, 26px); line-height: 1.55; color: var(--ink); text-wrap: pretty; }
.quote cite { display: block; margin-top: 28px; font-style: normal; font-weight: 800; font-size: 17px; color: var(--ink); }
.slider-nav { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 36px; }
.dots { display: flex; gap: 10px; }
.dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 6px; background: #CFDADE; cursor: pointer; transition: all .2s; }
.dot.is-active { width: 28px; background: var(--teal); }

/* ---------- Process ---------- */
.process > .container { padding-top: clamp(72px, 9vw, 120px); padding-bottom: clamp(72px, 9vw, 120px); }
.process .text { max-width: 720px; margin-left: auto; margin-right: auto; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 28px; margin-top: clamp(48px, 6vw, 72px); }
.step { display: flex; flex-direction: column; gap: 14px; padding: 36px 30px; border: 2px solid #EDF1F3; border-radius: 28px; background: #fff; transition: border-color .25s, box-shadow .25s; }
.step:hover { border-color: var(--teal); box-shadow: 0 20px 50px rgba(38, 186, 211, .14); }
.step__n { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, #2BBFD6, #1D8DA6); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 20px; }
.step h3 { margin-top: 10px; font-size: 22px; font-weight: 800; }
.step p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text); }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(180deg, #FFFFFF 0%, #FDF4EE 100%); }
.cta .split { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 64px; padding-bottom: clamp(72px, 9vw, 130px); }
.cta .split__media { max-width: 520px; }
.cta .text { max-width: 560px; }
.cta .btn-orange { margin-top: 44px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: auto; background: var(--ink); color: #C9D2D6; }
.site-footer > .container { padding-top: clamp(64px, 8vw, 88px); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 56px 64px; }
.footer-brand { flex: 1 1 300px; max-width: 400px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.footer-brand p { margin: 0; font-size: 16px; line-height: 1.65; color: #AEB9BE; }
.footer-cols { flex: 2 1 520px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 14px; font-size: 16px; }
.footer-col__title { margin-bottom: 6px; font-weight: 800; font-size: 13px; letter-spacing: .14em; color: #34D1E6; }
.footer-col a { color: #C9D2D6; }
.footer-col a:hover { color: #fff; }
.footer-contact { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; color: #C9D2D6; }
.footer-contact i { flex: none; margin-top: 3px; font-size: 18px; color: #34D1E6; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; margin-top: 72px; padding: 28px 0 36px; border-top: 1px solid #3C454A; font-size: 14px; color: var(--muted); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 28px; }
.footer-legal a { color: #AEB9BE; }
.footer-legal a:hover { color: #fff; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 64px; align-items: start; padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(72px, 9vw, 130px); }
.contact-grid .h1 { font-size: clamp(38px, 5vw, 68px); text-wrap: balance; }
.contact-grid .lead { max-width: 520px; margin-top: 28px; }
.info-list { display: flex; flex-direction: column; gap: 30px; margin-top: 56px; }
.info { display: flex; align-items: center; gap: 20px; color: var(--ink); }
a.info:hover { color: var(--teal-d); }
.info__icon { flex: none; width: 60px; height: 60px; border-radius: 50%; background: #fff; box-shadow: 0 10px 30px rgba(20, 60, 80, .08); display: grid; place-items: center; }
.info__icon i { font-size: 28px; color: var(--teal-d); }
.info__label { display: block; font-weight: 800; font-size: 14px; letter-spacing: .12em; color: var(--teal-d); }
.info__value { display: block; margin-top: 4px; font-weight: 800; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.35; }
.form-card { padding: clamp(28px, 4vw, 56px); border-radius: 36px; background: #fff; box-shadow: 0 30px 80px rgba(20, 60, 80, .12); }
.form { display: flex; flex-direction: column; gap: 22px; }
.form h2 { margin-bottom: 6px; font-size: clamp(26px, 2.6vw, 32px); font-weight: 800; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; font-weight: 700; font-size: 15px; }
.field__label { font-weight: 700; font-size: 15px; }
.chips-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips-field legend { padding: 0; margin-bottom: 10px; }
.input { width: 100%; padding: 16px 18px; border: 1.5px solid #DDE5E8; border-radius: 14px; background: #FAFCFD; font-family: inherit; font-size: 17px; color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.input::placeholder { color: #A3AFB4; }
.input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px #DDF4F8; background: #fff; }
textarea.input { min-height: 130px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; border: 0; margin: 0; padding: 0; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 11px 20px; border: 1.5px solid #DDE5E8; border-radius: 12px; background: #fff; font-weight: 700; font-size: 15px; color: var(--text); transition: all .15s; }
.chip:hover span { border-color: var(--teal); }
.chip input:checked + span { background: var(--teal); border-color: var(--teal); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn-orange { align-self: flex-start; margin-top: 8px; }
.form-error { margin: 0; padding: 14px 18px; border-radius: 14px; background: #FFEDE6; color: #B8321A; font-weight: 700; font-size: 15px; }
.form-success { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 40px 0; }
.form-success > i { font-size: 64px; color: var(--teal); }
.form-success h2 { font-size: clamp(28px, 3vw, 36px); font-weight: 800; }
.form-success p { margin: 0; font-size: 19px; line-height: 1.6; color: var(--text); }
.form-success .btn-soft { margin-top: 12px; }

/* ---------- Commitments ---------- */
.commitments > .container { padding-top: clamp(72px, 9vw, 120px); padding-bottom: clamp(72px, 9vw, 120px); }
.commit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 28px; margin-top: clamp(48px, 6vw, 72px); }
.commit { display: flex; flex-direction: column; gap: 14px; padding: 34px 30px; border: 2px solid #EDF1F3; border-radius: 28px; background: #fff; }
.commit h3 { margin-top: 8px; font-size: 21px; font-weight: 800; }
.commit p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text); }
.marquee__label { margin-bottom: 28px; text-align: center; font-weight: 800; font-size: 14px; letter-spacing: .14em; color: var(--muted); }
.form-consent { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ---------- Payment badges ---------- */
.footer-bottom__left { display: flex; flex-direction: column; gap: 4px; }
.pay { display: flex; align-items: center; gap: 10px; }
.pay__card { width: 58px; height: 38px; border-radius: 6px; background: #fff; display: grid; place-items: center; }
.pay__card--amex { background: #1F72CD; }
.footer-contacts { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; font-size: 16px; }

/* ---------- Success popup ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(43, 50, 55, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .25s ease; }
.modal.is-open { opacity: 1; }
.modal__box { position: relative; width: 100%; max-width: 520px; padding: clamp(36px, 5vw, 56px); border-radius: 36px; background: #fff; box-shadow: 0 40px 100px rgba(20, 60, 80, .3); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; transform: translateY(16px) scale(.97); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.modal.is-open .modal__box { transform: none; }
.modal__close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; }
.modal__icon { width: 88px; height: 88px; border-radius: 50%; background: #E3F6FA; display: grid; place-items: center; }
.modal__icon i { font-size: 56px; color: var(--teal); }
.modal h2 { margin-top: 8px; font-size: clamp(26px, 3vw, 34px); font-weight: 800; }
.modal p { margin: 0; max-width: 400px; font-size: 18px; line-height: 1.6; color: var(--text); }
.modal .btn-orange { margin-top: 14px; padding: 16px 44px; }

/* ---------- Legal pages ---------- */
.page-hero .container { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(40px, 6vw, 72px); }
.page-title { margin-top: 16px; font-size: clamp(38px, 5vw, 64px); line-height: 1.08; font-weight: 800; letter-spacing: -0.03em; }
.page-meta { margin: 20px 0 0; font-size: 18px; color: var(--text); }
.legal { display: flex; align-items: flex-start; gap: 72px; padding-top: 40px; padding-bottom: clamp(72px, 9vw, 120px); }
.toc { flex: 0 0 260px; position: sticky; top: 120px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.toc__title { margin-bottom: 6px; font-weight: 800; font-size: 13px; letter-spacing: .14em; color: var(--muted); }
.toc a { color: var(--text); }
.toc a:hover { color: var(--teal-d); }
.legal-body { flex: 1 1 0; min-width: 0; max-width: 780px; display: flex; flex-direction: column; gap: 48px; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.75; color: #3A4449; }
.legal-body .intro { margin: 0; font-size: clamp(18px, 1.6vw, 20px); color: var(--ink); }
.legal-body h2 { margin: 0 0 14px; font-size: clamp(21px, 2vw, 26px); font-weight: 800; line-height: 1.3; }
.legal-body p { margin: 0; }
.legal-body p + p, .legal-body p + ul, .legal-body ul + p { margin-top: 14px; }
.legal-body ul { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.legal-body strong { color: var(--ink); }
.legal-contact { margin-top: 18px; padding: 28px 32px; border-radius: 24px; background: var(--aqua); line-height: 1.7; color: var(--ink); }
@media (max-width: 1023px) { .toc { display: none; } }

/* ---------- 404 ---------- */
.notfound { flex: 1; display: flex; align-items: center; text-align: center; }
.notfound .container { padding-top: clamp(64px, 8vw, 100px); padding-bottom: clamp(72px, 9vw, 120px); }
.notfound__code { font-family: var(--font-head); font-size: clamp(120px, 24vw, 300px); font-weight: 800; line-height: .9; letter-spacing: -0.05em; background: linear-gradient(135deg, #34D1E6 0%, #1D8DA6 55%, #2B3237 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound h1 { margin-top: 28px; font-size: clamp(30px, 4vw, 52px); font-weight: 800; line-height: 1.15; }
.notfound .text { max-width: 560px; margin: 20px auto 0; }
.notfound__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 44px; }
.notfound__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; margin-top: 56px; font-size: 17px; font-weight: 700; }
.notfound__links a { color: var(--ink); }
.notfound__links a:hover { color: var(--teal-d); }

/* ---------- Header dropdowns ---------- */
.nav-group { position: relative; padding: 10px 0; }
.nav-group__btn { display: flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer; font-size: 17px; color: #3A4449; transition: color .2s; }
.nav-group__btn i { font-size: 14px; transition: transform .2s; }
.nav-group__btn.is-active { font-weight: 700; color: var(--teal-d); }
.nav-group:hover .nav-group__btn, .nav-group.is-open .nav-group__btn { color: var(--teal-d); }
.nav-group:hover .nav-group__btn i, .nav-group.is-open .nav-group__btn i { transform: rotate(180deg); }
.dropdown { position: absolute; top: 100%; left: -24px; z-index: 5; width: 380px; padding: 10px; border-radius: 26px; background: #fff; box-shadow: 0 24px 60px rgba(20, 60, 80, .14); display: flex; flex-direction: column; gap: 2px; white-space: normal; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; }
.nav-group:hover .dropdown, .nav-group:focus-within .dropdown, .nav-group.is-open .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: flex; align-items: flex-start; gap: 16px; padding: 14px 16px; border-radius: 18px; color: var(--ink); }
.dropdown a:hover { background: var(--aqua); color: var(--ink); }
.dropdown__icon { flex: none; width: 44px; height: 44px; border-radius: 14px; background: #E3F6FA; display: grid; place-items: center; }
.dropdown__icon i { font-size: 22px; color: var(--teal-d); }
.dropdown__text { display: flex; flex-direction: column; gap: 2px; }
.dropdown__title { font-weight: 800; font-size: 16px; }
.dropdown__desc { font-size: 14px; line-height: 1.45; color: var(--text); }

/* Mobile menu groups */
.mobile-menu__nav { gap: 28px; margin-top: clamp(32px, 7vh, 64px); }
.mobile-menu__label { margin-bottom: 10px; font-weight: 800; font-size: 13px; letter-spacing: .14em; color: var(--teal-d); }
.mobile-menu__group { display: flex; flex-direction: column; opacity: 0; transform: translateY(24px); transition: opacity .4s ease, transform .5s cubic-bezier(.2, .8, .2, 1); }
.mobile-menu.is-open .mobile-menu__group { opacity: 1; transform: none; }
.mobile-menu.is-open .mobile-menu__group:nth-child(1) { transition-delay: .18s; }
.mobile-menu.is-open .mobile-menu__group:nth-child(2) { transition-delay: .26s; }
.mobile-menu.is-open .mobile-menu__group:nth-child(3) { transition-delay: .34s; }
.mobile-menu .mobile-menu__link { padding: 10px 0; font-size: clamp(22px, 6vw, 30px); font-weight: 700; opacity: 1; transform: none; transition: color .2s; }
.mobile-menu .mobile-menu__link i { font-size: 22px; }

/* ---------- Detail pages (services / solutions) & About ---------- */
.section-pad { padding-top: clamp(64px, 8vw, 110px); padding-bottom: clamp(64px, 8vw, 110px); }
.h3 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.15; letter-spacing: -0.025em; font-weight: 800; text-wrap: balance; }
.detail-title { font-size: clamp(38px, 5vw, 66px); margin-top: 20px; text-wrap: balance; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--text); }
.crumbs a { color: var(--text); }
.crumbs a:hover { color: var(--teal-d); }
.crumbs i { font-size: 12px; color: var(--muted); }
.crumbs span { color: var(--teal-d); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: clamp(32px, 4vw, 44px); }
.section-title { max-width: 820px; margin-top: 14px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; margin-top: clamp(40px, 5vw, 56px); }
.feature { display: flex; flex-direction: column; gap: 14px; padding: 34px 30px; border: 1.5px solid #EEF2F4; border-radius: 28px; background: #fff; transition: border-color .25s, box-shadow .25s, transform .25s; }
.feature:hover { border-color: var(--pink); box-shadow: 12px 14px 0 var(--pink); transform: translate(-3px, -3px); }
.feature__icon { flex: none; width: 60px; height: 60px; border-radius: 18px; background: #E3F6FA; display: grid; place-items: center; }
.feature__icon i { font-size: 30px; color: var(--teal-d); }
.feature h3 { margin-top: 8px; font-size: 21px; font-weight: 700; }
.feature p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text); }
.kpis { background: var(--aqua); }
.kpis__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; align-items: center; padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.kpis .text { max-width: 520px; margin-top: 20px; }
.kpi-list { display: flex; flex-wrap: wrap; gap: 12px; }
.kpi { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 40px; background: #fff; box-shadow: 0 8px 24px rgba(20, 60, 80, .06); font-weight: 800; font-size: 17px; }
.kpi i { font-size: 22px; color: var(--teal); }
.faq { background: linear-gradient(180deg, #FFFFFF 0%, #EEF9FB 100%); }
.container--faq { max-width: 920px; padding-top: clamp(64px, 8vw, 110px); padding-bottom: clamp(64px, 8vw, 110px); }
.faq-list { display: flex; flex-direction: column; gap: 14px; margin-top: clamp(40px, 5vw, 56px); }
.faq-item { border-radius: 24px; background: #fff; box-shadow: 0 10px 30px rgba(20, 60, 80, .06); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 28px; cursor: pointer; list-style: none; font-family: var(--font-head); font-size: clamp(17px, 1.6vw, 20px); font-weight: 700; letter-spacing: -0.01em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { flex: none; font-size: 22px; color: var(--teal-d); transition: transform .25s; }
.faq-item[open] summary i { transform: rotate(45deg); }
.faq-item p { margin: 0; padding: 0 28px 26px; font-size: 17px; line-height: 1.65; color: var(--text); }
.related-wrap { padding-top: clamp(64px, 8vw, 110px); }
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; margin-top: 40px; }
.related-card { display: flex; align-items: center; gap: 22px; padding: 30px; border: 1.5px solid #EEF2F4; border-radius: 28px; background: #fff; color: var(--ink); transition: border-color .25s, box-shadow .25s; }
.related-card:hover { border-color: var(--teal); box-shadow: 0 20px 50px rgba(38, 186, 211, .14); color: var(--ink); }
.related-card__text { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.related-card__title { font-family: var(--font-head); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.related-card__desc { font-size: 16px; line-height: 1.5; color: var(--text); }
.related-card__arrow { font-size: 24px; color: var(--teal); }
.cta-box-wrap { padding-top: clamp(64px, 8vw, 110px); padding-bottom: clamp(72px, 9vw, 120px); }
.cta-box { padding: clamp(40px, 6vw, 80px); border-radius: 36px; text-align: center; background: repeating-radial-gradient(ellipse 60% 50% at 10% 0%, rgba(255,255,255,0) 0 36px, rgba(255,255,255,.7) 37px 38px), linear-gradient(135deg, #CDEFF5 0%, #FDF4EE 100%); }
.cta-box .h3 { max-width: 760px; margin: 0 auto; }
.cta-box .text { max-width: 600px; margin: 20px auto 0; }
.cta-box .btn-orange { margin-top: 36px; }
.more-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-weight: 700; font-size: 17px; }
.about-mission { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(40px, 6vw, 80px); align-items: start; }
.about-mission__text { display: flex; flex-direction: column; gap: 20px; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.7; color: var(--text); }
.about-mission__text p { margin: 0; }
.about-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; margin-top: 48px; }
.about-service { display: flex; flex-direction: column; gap: 14px; padding: 36px 32px; border-radius: 28px; background: #fff; color: var(--ink); box-shadow: var(--shadow-soft); transition: box-shadow .25s, transform .25s; }
.about-service:hover { box-shadow: 12px 14px 0 var(--pink); transform: translate(-3px, -3px); color: var(--ink); }
.about-service h3 { margin-top: 8px; font-size: 22px; font-weight: 700; }
.about-service p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text); }
.about-service__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-weight: 700; color: var(--teal-d); }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 40px; margin-top: clamp(40px, 5vw, 64px); }
.value { display: flex; flex-direction: column; gap: 12px; }
.value > i { font-size: 36px; color: var(--teal); }
.value h3 { margin-top: 6px; font-size: 21px; font-weight: 700; }
.value p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text); }
.office-wrap { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(72px, 9vw, 120px); }
.office { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 40px; align-items: center; padding: clamp(32px, 5vw, 64px); border-radius: 36px; background: #fff; box-shadow: 0 20px 60px rgba(20, 60, 80, .08); }
.office .text { margin-top: 16px; }
.office .btn-orange { margin-top: 32px; }
.office__list { display: flex; flex-direction: column; gap: 22px; }
.office__item { display: flex; align-items: center; gap: 16px; font-weight: 800; font-size: 18px; line-height: 1.4; color: var(--ink); }
a.office__item:hover { color: var(--teal-d); }
.office__icon { flex: none; width: 52px; height: 52px; border-radius: 50%; background: #E3F6FA; display: grid; place-items: center; }
.office__icon i { font-size: 24px; color: var(--teal-d); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee__track { animation: none; }
}
