:root {
    --paper: #f5f3ee;
    --white: #fff;
    --ink: #10263a;
    --muted: #536574;
    --navy: #102f49;
    --navy-deep: #092238;
    --blue: #276c91;
    --blue-soft: #c7d7df;
    --wash: #e8eef1;
    --line: #bdcbd2;
    --header: 76px;
    --wrap: 1160px;
    --serif: "Source Serif 4", Georgia, serif;
    --sans: "IBM Plex Sans", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 1.04rem;
    line-height: 1.65;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 0.55em;
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.035em;
}

h1 {
    max-width: 10ch;
    font-size: clamp(3rem, 6vw, 5.8rem);
    color: var(--white);
}

h2 {
    font-size: clamp(2.25rem, 4vw, 4rem);
}

h3 {
    font-size: 1.55rem;
}

h4 {
    margin-bottom: 0.2em;
    font-size: 1.2rem;
}

p {
    margin: 0 0 1em;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wrap {
    width: min(var(--wrap), calc(100% - 48px));
    margin: 0 auto;
}

.section {
    padding: 112px 0;
}

.section-ice {
    background: var(--wash);
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--blue);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.section-head {
    max-width: 680px;
    margin-bottom: 52px;
}

.section-head.center {
    margin-right: auto;
    margin-left: auto;
    text-align: left;
}

.section-head.center p,
.section-head p,
.lead {
    color: var(--muted);
}

a.plain-text-link,
a.plain-text-link:hover,
a.plain-text-link:focus {
    color: inherit;
    text-decoration: none;
    cursor: text;
}

header {
    position: sticky;
    top: 0;
    z-index: 40;
    height: var(--header);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(12px);
}

header.scrolled {
    border-bottom-color: var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 26px;
    width: min(var(--wrap), calc(100% - 48px));
    height: 100%;
    margin: 0 auto;
}

.brand img {
    width: auto;
    height: 52px;
    max-width: min(260px, 58vw);
    object-fit: contain;
}

nav {
    margin-left: auto;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 24px;
}

nav a {
    font-size: 0.9rem;
    font-weight: 500;
}

nav a.active,
nav a:hover {
    color: var(--blue);
}

.mobile-contact {
    display: none;
}

.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 8px 16px;
    border: 1px solid var(--navy);
    border-radius: 999px;
    color: var(--navy);
    font-weight: 600;
}

.header-phone:hover {
    color: var(--white);
    background: var(--navy);
}

.mobile-menu-toggle {
    display: none;
    margin-left: auto;
    padding: 8px;
    border: 0;
    color: var(--ink);
    background: transparent;
    font-size: 1.3rem;
    cursor: pointer;
}

.hero {
    padding: 88px 24px 128px;
    color: #e8f1fb;
    text-align: center;
    background:
        radial-gradient(900px 420px at 80% -10%, rgba(59, 130, 196, 0.45), transparent 60%),
        linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%);
}

.hero-inner {
    width: min(760px, 100%);
    margin: 0 auto;
}

.hero h1 {
    max-width: none;
    margin-right: auto;
    margin-left: auto;
    font-size: clamp(2.7rem, 5.4vw, 4.6rem);
}

.hero .eyebrow {
    color: #9ec4ea;
}

.hero p {
    color: #d5e4f4;
    font-size: 1.15rem;
}

.hero .cta-row {
    justify-content: center;
}

.hero .btn {
    border-radius: 999px;
}

.hero .btn-line {
    color: #fff;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.55);
}

.hero .btn-line:hover {
    color: var(--navy);
    background: #fff;
}

.hero-note {
    margin: 22px 0 0;
    font-size: 0.95rem;
}

.free-badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 22px;
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    color: var(--white);
    font-weight: 500;
    font-size: 1rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.free-badge:hover {
    background: var(--white);
    color: var(--navy);
}

.hero-perks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
    color: var(--white);
    font-weight: 500;
    font-size: 0.98rem;
}

.hero-perks i {
    margin-right: 4px;
    color: #9ec4ea;
}

.rail-wrap {
    position: relative;
    z-index: 2;
    width: min(var(--wrap), calc(100% - 40px));
    margin: -72px auto 0;
}

.photo-rail {
    display: grid;
    grid-template-columns: 1.3fr 0.85fr 0.85fr;
    gap: 12px;
}

.photo-rail img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(12, 34, 54, 0.16);
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    margin-top: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 2px;
    font: 600 0.98rem var(--sans);
    cursor: pointer;
}

.btn-primary {
    color: var(--white);
    background: var(--navy);
}

.btn-primary:hover {
    background: var(--blue);
}

.btn-light {
    color: var(--navy-deep);
    background: var(--white);
}

.btn-light:hover {
    color: var(--white);
    background: var(--blue);
}

.btn-line,
.btn-ghost {
    color: inherit;
    background: transparent;
}

.phone-link {
    padding: 10px 0;
    border-bottom: 1px solid #8fabb8;
    color: var(--white);
    font-weight: 600;
}

.phone-link:hover {
    border-color: var(--white);
}

.text-link {
    color: var(--blue);
    font-weight: 600;
    border-bottom: 1px solid currentColor;
}

.about {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    gap: 90px;
    align-items: center;
}

.about > div p {
    color: var(--muted);
}

.about figure {
    margin: 0;
}

.about figure img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.about figcaption {
    display: flex;
    justify-content: flex-end;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.86rem;
}

.team {
    margin-top: 128px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 52px 24px;
}

.team-grid li {
    grid-column: span 3;
}

.team-grid li:nth-child(-n + 3) {
    grid-column: span 4;
}

.team-grid img {
    width: 100%;
    aspect-ratio: 3 / 4;
    margin-bottom: 16px;
    object-fit: cover;
    object-position: center top;
    filter: saturate(0.82);
}

.team-grid li:hover img {
    filter: saturate(1);
}

.team-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.services {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.6fr);
    gap: 100px;
    align-items: start;
}

.services ol {
    margin: 46px 0 34px;
    border-bottom: 1px solid var(--line);
}

.services li {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 18px;
    padding: 28px 0;
    border-top: 1px solid var(--line);
}

.services li span {
    color: var(--blue);
    font-family: var(--serif);
    font-size: 1.5rem;
}

.services li h3 {
    margin-bottom: 0.35em;
}

.services li p {
    max-width: 640px;
    margin: 0;
    color: var(--muted);
}

.services-copy .cta-row {
    justify-content: flex-start;
}

.services-aside {
    position: sticky;
    top: 110px;
    padding: 40px 0 0 36px;
    border-left: 1px solid var(--blue);
}

.aside-kicker {
    color: var(--blue);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.aside-title {
    margin: 18px 0;
    font: 600 clamp(2rem, 3vw, 3.2rem)/1.06 var(--serif);
}

.services-aside > p:last-of-type {
    color: var(--muted);
}

.services-aside a {
    display: inline-flex;
    gap: 10px;
    margin-top: 12px;
    color: var(--blue);
    font-weight: 600;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
}

.cards article {
    min-height: 300px;
    padding: 30px 32px 16px 0;
    border-right: 1px solid var(--line);
}

.cards article + article {
    padding-left: 32px;
}

.cards article:last-child {
    border-right: 0;
}

.card-index {
    margin-bottom: 78px;
    color: var(--blue);
    font: 500 1rem var(--serif);
}

.cards p:last-child {
    color: var(--muted);
}

.band-cta {
    padding: 96px 0;
    color: #dce6eb;
    background: var(--navy);
}

.band-cta .wrap {
    display: grid;
    grid-template-columns: 1fr 0.7fr;
    gap: 64px;
    align-items: end;
}

.band-cta h2 {
    max-width: 730px;
    margin: 0;
    color: var(--white);
}

.band-cta p {
    margin: 0 0 22px;
}

.band-cta .cta-row {
    gap: 14px;
    margin: 0;
}

.topics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    counter-reset: topic;
}

.topics li {
    position: relative;
    min-height: 220px;
    padding: 34px 50px 26px 76px;
    border-top: 1px solid var(--line);
    counter-increment: topic;
}

.topics li:nth-child(odd) {
    border-right: 1px solid var(--line);
}

.topics li::before {
    position: absolute;
    top: 34px;
    left: 8px;
    color: var(--blue);
    content: "0" counter(topic);
    font-family: var(--serif);
}

.topics p {
    color: var(--muted);
}

.support {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 100px;
}

.support > div > p:last-child {
    color: var(--muted);
}

.support ul {
    border-top: 1px solid var(--line);
}

.support li {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 26px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.support li h3 {
    margin: 0;
    font-size: 1.3rem;
}

.support li p {
    margin: 0;
    color: var(--muted);
}

.testimonial-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.testimonial-slider::-webkit-scrollbar {
    display: none;
}

.testimonial {
    flex: 0 0 100%;
    min-height: 310px;
    margin: 0;
    padding: 14px 10% 30px 0;
    scroll-snap-align: start;
}

.testimonial::before {
    display: block;
    margin-bottom: 22px;
    color: var(--blue);
    content: "“";
    font: 600 5rem/0.7 var(--serif);
}

.testimonial p {
    max-width: 940px;
    font: 500 clamp(1.7rem, 3vw, 2.8rem)/1.25 var(--serif);
}

.testimonial footer {
    color: var(--blue);
    font-weight: 600;
}

.testimonial-controls {
    display: flex;
    gap: 18px;
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.testimonial-controls button {
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    color: var(--navy);
    background: transparent;
    cursor: pointer;
}

.testimonial-controls button:hover {
    color: var(--blue);
}

.contact {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 70px;
    align-items: start;
}

.contact-form {
    padding-right: 70px;
    border-right: 1px solid var(--line);
}

.contact-info {
    padding-top: 4px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.9rem;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid #9eafb8;
    border-radius: 0;
    color: var(--ink);
    background: transparent;
    font: inherit;
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus {
    outline: 0;
    border-color: var(--blue);
}

.invalid-field {
    border-color: #a64242 !important;
}

.valid-field {
    border-color: var(--blue) !important;
}

.form-group.check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 28px 0;
}

.form-group.check input {
    margin-top: 5px;
}

.form-group.check label {
    margin: 0;
    color: var(--muted);
    font-weight: 400;
}

.form-message {
    margin-top: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.form-message.success {
    color: #245a3b;
}

.form-message.error {
    color: #8e3d33;
}

.form-message.loading {
    color: var(--muted);
}

.contact-info p {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.contact-info i {
    width: 18px;
    margin-top: 5px;
    color: var(--blue);
}

.contact-info a:hover {
    color: var(--blue);
}

.map {
    margin-top: 28px;
    filter: grayscale(0.25) saturate(0.65);
}

footer {
    padding-top: 64px;
    color: #c9d7df;
    background: var(--navy-deep);
}

footer a:hover {
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 1.1fr;
    gap: 48px;
    padding-bottom: 48px;
}

footer h4 {
    color: var(--white);
}

footer p,
footer li {
    color: #b7c9d2;
}

footer li {
    margin-bottom: 8px;
}

.footer-bottom {
    padding: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    text-align: center;
    font-size: 0.86rem;
}

.float-call {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 30;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    color: var(--white);
    background: var(--blue);
    box-shadow: 0 8px 22px rgba(9, 34, 56, 0.24);
}

.float-call::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--blue);
    z-index: -1;
    animation: float-pulse 2.4s ease-out infinite;
}

.float-call i {
    animation: float-ring 2.4s ease-in-out infinite;
}

.float-call:hover {
    background: var(--navy);
}

@keyframes float-pulse {
    0% { transform: scale(1); opacity: 0.45; }
    70% { transform: scale(1.7); opacity: 0; }
    100% { transform: scale(1.7); opacity: 0; }
}

@keyframes float-ring {
    0%, 62%, 100% { transform: rotate(0); }
    70% { transform: rotate(-14deg); }
    78% { transform: rotate(12deg); }
    86% { transform: rotate(-6deg); }
}

section[id] {
    scroll-margin-top: calc(var(--header) + 12px);
}

@media (max-width: 980px) {
    .about,
    .services,
    .contact,
    .support,
    .band-cta .wrap,
    .footer-grid,
    .photo-rail {
        grid-template-columns: 1fr;
    }

    .photo-rail img:nth-child(3) {
        display: none;
    }

    .about {
        gap: 52px;
    }

    .team-grid li,
    .team-grid li:nth-child(-n + 3) {
        grid-column: span 6;
    }

    .services {
        gap: 70px;
    }

    .services-aside {
        position: static;
        padding: 32px 0 0;
        border-top: 1px solid var(--blue);
        border-left: 0;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .cards article,
    .cards article + article {
        min-height: auto;
        padding: 28px 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .card-index {
        margin-bottom: 32px;
    }

    .support {
        gap: 54px;
    }

    .contact-form {
        padding-right: 0;
        padding-bottom: 56px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 760px) {
    :root {
        --header: 64px;
    }

    .wrap,
    .header-inner {
        width: min(100% - 28px, var(--wrap));
    }

    .header-inner {
        gap: 12px;
    }

    .brand img {
        height: 38px;
        max-width: min(180px, 48vw);
    }

    .header-phone {
        padding: 6px 10px;
        font-size: 0.88rem;
        gap: 6px;
        white-space: nowrap;
    }

    .hero-perks {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .hero .cta-row {
        flex-direction: column;
        align-items: center;
    }

    .hero .cta-row .btn {
        width: min(100%, 320px);
    }

    .contact {
        gap: 36px;
    }

    .contact-form {
        padding-bottom: 36px;
    }

    .contact-form .btn {
        width: 100%;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea {
        font-size: 16px;
        padding: 14px 0;
    }

    .form-group.check {
        gap: 12px;
        align-items: flex-start;
    }

    .form-group.check input {
        flex-shrink: 0;
        width: 18px;
        height: 18px;
        margin-top: 3px;
    }

    .form-group.check label {
        font-size: 0.92rem;
        line-height: 1.45;
        word-break: break-word;
    }

    .contact-info p,
    .contact-info a {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .map iframe {
        width: 100%;
        max-width: 100%;
        height: 220px;
    }

    .float-call {
        right: 14px;
        bottom: 14px;
    }

    nav.mobile-active ul {
        position: absolute;
        top: var(--header);
        right: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 18px 22px 24px;
        border-bottom: 1px solid var(--line);
        background: var(--white);
        box-shadow: 0 16px 30px rgba(9, 34, 56, 0.1);
    }

    .mobile-contact {
        display: list-item;
    }

    .section {
        padding: 76px 0;
    }

    .hero {
        padding: 56px 20px 104px;
    }

    .photo-rail img:nth-child(2) {
        display: none;
    }

    .about {
        grid-template-columns: 1fr;
    }

    .about figure img {
        aspect-ratio: 4 / 3;
    }

    .team {
        margin-top: 84px;
    }

    .team-grid {
        gap: 36px 14px;
    }

    .topics {
        grid-template-columns: 1fr;
    }

    .topics li {
        min-height: auto;
        padding-right: 0;
    }

    .topics li:nth-child(odd) {
        border-right: 0;
    }

    .support li {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .testimonial {
        min-height: 360px;
        padding-right: 0;
    }

    .footer-grid {
        gap: 26px;
    }
}

@media (max-width: 470px) {
    h1 {
        font-size: 3rem;
    }

    .brand img {
        height: 34px;
        max-width: min(150px, 52vw);
    }

    .header-phone {
        padding: 8px 10px;
        font-size: 0;
        gap: 0;
    }

    .header-phone i {
        font-size: 0.95rem;
    }

    .team-grid li,
    .team-grid li:nth-child(-n + 3) {
        grid-column: span 12;
    }

    .contact-form .btn,
    .hero .cta-row .btn {
        white-space: normal;
        line-height: 1.3;
        padding-top: 14px;
        padding-bottom: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .float-call::before,
    .float-call i {
        animation: none;
    }
}
