:root {
    --ink: #142437;
    --muted: #536476;
    --line: #dce4eb;
    --surface: #f5f8fa;
    --white: #fff;
    --brand: #086b72;
    --brand-dark: #064c55;
    --accent: #c9e9e4;
    --focus: #db7b28;
    --radius: 18px;
    --shadow: 0 16px 36px rgb(24 47 69 / 8%)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6
}

a {
    color: inherit;
    text-underline-offset: 3px
}

a:hover {
    color: var(--brand)
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px
}

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

.narrow {
    display: flex;
    flex-direction: column;
    justify-content: start;
    width: min(1160px, calc(100% - 40px));
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 20;
    padding: 9px 14px;
    background: var(--ink);
    color: #fff;
    transform: translateY(-150%)
}

.skip-link:focus {
    transform: translateY(0)
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgb(255 255 255 / 95%);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px)
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 750;
    line-height: 1.1;
    letter-spacing: -.02em
}

.brand:hover {
    color: var(--ink)
}

.brand small {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
    letter-spacing: 0
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--brand);
    color: white;
    font-family: Georgia, serif;
    font-size: 23px
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px
}

.site-nav>a:not(.button) {
    font-size: 14px;
    font-weight: 650;
    text-decoration: none
}

.site-nav .is-active {
    color: var(--brand)
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    padding: 9px;
    cursor: pointer
}

.menu-toggle span {
    display: block;
    width: 23px;
    height: 2px;
    margin: 5px;
    background: var(--ink);
    transition: .2s
}

.hero {
    padding: 92px 0 84px;
    background: linear-gradient(125deg, #f5fbfa 0%, #fff 55%)
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr);
    align-items: center;
    gap: 70px
}

.eyebrow {
    margin: 0 0 13px;
    color: var(--brand);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase
}

.eyebrow-light {
    color: #9de0d6
}

h1,
h2,
h3,
p {
    margin-top: 0
}

h1,
h2,
h3 {
    line-height: 1.15;
    letter-spacing: -.035em
}

h1 {
    margin-bottom: 22px;
    font-size: clamp(2.35rem, 5vw, 4.6rem)
}

h2 {
    font-size: clamp(1.75rem, 3.3vw, 2.7rem);
    margin-bottom: 22px
}

h3 {
    font-size: 1.14rem;
    margin-bottom: 8px
}

.lead {
    max-width: 720px;
    color: var(--muted);
    font-size: clamp(1.05rem, 1.5vw, 1.22rem);
    line-height: 1.65
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 34px
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border: 1px solid var(--brand);
    border-radius: 10px;
    background: var(--brand);
    color: #fff !important;
    font: inherit;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, transform .2s
}

.button:hover {
    background: var(--brand-dark);
    transform: translateY(-1px)
}

.button-small {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 13px
}

.text-link {
    font-weight: 750;
    color: var(--brand);
    text-decoration: none
}

.text-link span {
    display: inline-block;
    transition: transform .2s
}

.text-link:hover span {
    transform: translateX(4px)
}

.hero-panel {
    padding: 30px;
    border: 1px solid #cce6e2;
    border-radius: var(--radius);
    background: #e9f7f4;
    box-shadow: var(--shadow)
}

.panel-label {
    margin-bottom: 18px;
    font-weight: 750
}

.check-list {
    padding: 0;
    margin: 0;
    list-style: none
}

.check-list li {
    position: relative;
    margin: 13px 0;
    padding-left: 27px
}

.check-list li:before {
    position: absolute;
    left: 0;
    content: "✓";
    color: var(--brand);
    font-weight: 900
}

.panel-note {
    margin: 24px 0 0;
    padding-top: 18px;
    border-top: 1px solid #c0ded9;
    color: var(--muted);
    font-size: 14px
}

.section {
    padding: 88px 0
}

.section-tint {
    background: var(--surface)
}

.two-column {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 100px
}

.two-column p {
    color: var(--muted)
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
    margin-bottom: 34px
}

.section-heading h2 {
    margin: 0
}

.card-grid {
    display: grid;
    gap: 18px
}

.three {
    grid-template-columns: repeat(3, 1fr)
}

.card {
    min-height: 225px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff
}

.card-number {
    display: block;
    margin-bottom: 28px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em
}

.card p,
.direction-grid p {
    color: var(--muted);
    font-size: 15px
}

.direction-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 35px;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line)
}

.direction-grid>div {
    padding: 28px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line)
}

.direction-grid strong {
    font-size: 18px;
    letter-spacing: -.02em
}

.direction-grid p {
    margin: 8px 0 0
}

.section-dark,
.cta-section {
    background: var(--ink);
    color: #fff
}

.section-dark h2 {
    max-width: 900px
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 44px;
    margin-top: 46px
}

.benefit-grid span {
    color: #9de0d6;
    font-size: 13px;
    font-weight: 800
}

.benefit-grid h3 {
    margin-top: 12px
}

.benefit-grid p {
    color: #c5d0d9
}

.steps {
    display: grid;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none
}

.steps li {
    display: flex;
    gap: 16px
}

.steps span {
    flex: 0 0 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: var(--brand-dark);
    font-size: 14px;
    font-weight: 800
}

.steps h3 {
    margin: 2px 0 4px
}

.steps p {
    margin: 0
}

.cta-section {
    padding: 65px 0;
    background: var(--brand-dark)
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px
}

.cta-inner h2 {
    margin-bottom: 8px
}

.cta-inner p:not(.eyebrow) {
    margin: 0;
    color: #c4e9e3
}

.button-light {
    border-color: #fff;
    background: #fff;
    color: var(--brand-dark) !important
}

.button-light:hover {
    background: #e4f4f1
}

.contact-strip h2 {
    margin-bottom: 30px
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 46px
}

.contact-links a {
    font-weight: 700
}

.site-footer {
    padding: 26px 0;
    background: #0d1c2c;
    color: #bdc9d2;
    font-size: 13px
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px
}

.footer-inner p {
    margin: 0
}

.footer-inner div {
    display: flex;
    gap: 20px
}

.footer-inner a {
    text-decoration: none
}

.page-hero {
    padding: 84px 0 68px;
    background: linear-gradient(120deg, #f2f9f8, #fff)
}

.service-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px
}

.service-card {
    min-height: 332px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff
}

.service-card h2 {
    font-size: 1.45rem;
    margin-bottom: 14px
}

.service-card p {
    color: var(--muted);
    font-size: 15px
}

.service-card .card-number {
    margin-bottom: 20px
}

.contact-layout {
    display: grid;
    grid-template-columns: .75fr 1.25fr;
    gap: 70px
}

.contact-details dl {
    margin: 30px 0
}

.contact-details dl>div {
    padding: 16px 0;
    border-bottom: 1px solid var(--line)
}

dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700
}

dd {
    margin: 3px 0 0;
    font-weight: 700
}

dd a {
    display: block;
    color: var(--brand)
}

.contact-note {
    padding: 23px;
    background: var(--surface);
    border-radius: 12px
}

.contact-note h3 {
    font-size: 17px
}

.contact-note ol {
    padding-left: 20px;
    margin: 0;
    color: var(--muted);
    font-size: 14px
}

.form-panel {
    padding: 36px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow)
}

.form-panel h2 {
    font-size: 2rem
}

.form-intro {
    color: var(--muted);
    font-size: 14px
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px
}

.field,
fieldset {
    margin-top: 20px
}

.field label,
legend {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 750
}

fieldset {
    padding: 0;
    border: 0
}

input[type="text"],
textarea {
    width: 100%;
    border: 1px solid #aebdca;
    border-radius: 8px;
    padding: 12px 13px;
    background: #fff;
    color: var(--ink);
    font: inherit
}

textarea {
    resize: vertical
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 17px
}

.radio-group label {
    font-size: 14px
}

.selected-contact {
    min-height: 24px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 14px
}

.selected-contact a {
    color: var(--brand);
    font-weight: 750
}

.field-hint,
.field-error {
    min-height: 19px;
    margin: 5px 0 0;
    font-size: 12px
}

.field-hint {
    color: var(--muted)
}

.field-error {
    color: #ac2d2d;
    font-weight: 650
}

.has-error input,
.has-error textarea {
    border-color: #ac2d2d
}

.form-panel .button {
    margin-top: 22px
}

.form-status {
    margin-top: 17px;
    font-size: 14px;
    font-weight: 650
}

.form-status.success {
    color: var(--brand-dark)
}

@media (max-width:800px) {
    .site-nav {
        position: absolute;
        top: 78px;
        left: 0;
        right: 0;
        display: none;
        align-items: stretch;
        gap: 0;
        padding: 12px 20px 20px;
        border-bottom: 1px solid var(--line);
        background: #fff;
        box-shadow: 0 12px 20px rgb(20 36 55 / 8%)
    }

    .site-nav.is-open {
        display: flex;
        flex-direction: column
    }

    .site-nav a:not(.button) {
        padding: 12px 0
    }

    .site-nav .button {
        margin-top: 8px
    }

    .menu-toggle {
        display: block
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg)
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg)
    }

    .hero {
        padding: 62px 0
    }

    .hero-grid,
    .two-column,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 38px
    }

    .section {
        padding: 62px 0
    }

    .three,
    .benefit-grid {
        grid-template-columns: 1fr
    }

    .benefit-grid {
        gap: 26px;
        margin-top: 32px
    }

    .card {
        min-height: auto
    }

    .cta-inner {
        align-items: flex-start;
        flex-direction: column
    }

    .page-hero {
        padding: 60px 0 50px
    }

    .service-list {
        grid-template-columns: 1fr
    }

    .service-card {
        min-height: 0
    }

    .contact-layout {
        gap: 45px
    }
}

@media (max-width:540px) {
    .container {
        width: min(100% - 32px, 1160px)
    }

    .header-inner {
        min-height: 70px
    }

    .site-nav {
        top: 70px;
        padding-left: 16px;
        padding-right: 16px
    }

    .brand {
        font-size: 15px
    }

    .brand small {
        font-size: 10px
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 17px
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column
    }

    .direction-grid {
        grid-template-columns: 1fr
    }

    .direction-grid>div {
        padding: 22px
    }

    .form-panel {
        padding: 25px 18px
    }

    .form-row {
        grid-template-columns: 1fr
    }

    .radio-group {
        gap: 10px 16px
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column
    }

    .footer-inner div {
        gap: 16px
    }

    .contact-links {
        flex-direction: column;
        gap: 13px
    }
}

/* Стримані анімації появи елементів під час прокручування */
.reveal-section,
.reveal-title,
.reveal-item {
    opacity: 0;
    will-change: opacity, transform
}

.reveal-section {
    transform: translateY(26px);
    transition: opacity .65s ease, transform .65s cubic-bezier(.22, 1, .36, 1)
}

.reveal-title {
    transform: translateY(18px);
    transition: opacity .58s ease .08s, transform .58s cubic-bezier(.22, 1, .36, 1)
}

.reveal-item {
    transform: translateY(20px);
    transition: opacity .52s ease var(--reveal-delay, 0ms), transform .52s cubic-bezier(.22, 1, .36, 1) var(--reveal-delay, 0ms)
}

.reveal-section.is-visible,
.reveal-title.is-visible,
.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0)
}

.card.reveal-item.is-visible,
.service-card.reveal-item.is-visible {
    transition-property: opacity, transform, box-shadow
}

.card.reveal-item.is-visible:hover,
.service-card.reveal-item.is-visible:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow)
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto }
    .reveal-section,
    .reveal-title,
    .reveal-item {
        opacity: 1;
        transform: none;
        transition: none
    }
}
