* {
    box-sizing: border-box;
}

:root {
    --bg: #ffffff;
    --bg-soft: #f7f9fc;
    --bg-warm: #fbfaf8;
    --bg-line: #edf1f6;
    --text: #28364d;
    --text-soft: #34445d;
    --muted: #657184;
    --muted-2: #8792a3;
    --border: #e2e7ef;
    --border-strong: #d2dae7;
    --primary: #356fdd;
    --primary-dark: #2959b6;
    --primary-soft: #eef4ff;
    --accent: #6b64d8;
    --shadow: 0 18px 55px rgba(40, 54, 77, 0.075);
    --shadow-soft: 0 12px 34px rgba(40, 54, 77, 0.055);
    --radius: 22px;
    --shell: min(100% - 56px, 1240px);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--text-soft);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

p {
    margin: 0;
    color: var(--muted);
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--text);
    letter-spacing: -0.028em;
    line-height: 1.12;
    font-weight: 720;
}

h1 {
    font-size: clamp(2.15rem, 4.2vw, 4.75rem);
    max-width: 960px;
}

h2 {
    font-size: clamp(1.55rem, 2.55vw, 2.65rem);
}

h3 {
    font-size: 1.18rem;
    letter-spacing: -0.015em;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 231, 239, 0.9);
}

.header-shell,
.page-shell,
.footer-shell {
    width: var(--shell);
    margin: 0 auto;
}

.header-shell {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    display: inline-flex;
    align-items: center;
    width: 178px;
    min-width: 178px;
}

.brand img {
    width: 100%;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    font-size: 0.94rem;
    color: #5b6679;
}

.main-nav a {
    padding: 10px 12px;
    border-radius: 999px;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: var(--primary-dark);
    background: var(--primary-soft);
}

.main-nav .nav-cta {
    margin-left: 8px;
    background: #eff5ff;
    color: var(--primary-dark);
    border: 1px solid #d7e5ff;
    padding-inline: 18px;
    font-weight: 700;
}

.main-nav .nav-cta:hover,
.main-nav .nav-cta.is-active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #ffffff;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    border-radius: 999px;
}

.hero-simple {
    min-height: calc(100vh - 84px);
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 10% 18%, rgba(53, 111, 221, 0.08), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%);
    border-bottom: 1px solid var(--bg-line);
}

.hero-simple-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) 400px;
    gap: 70px;
    align-items: center;
    padding: 92px 0;
}

.hero-copy .lead {
    margin-top: 26px;
    max-width: 760px;
    font-size: clamp(1.06rem, 1.35vw, 1.22rem);
    color: #566376;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 17px;
    color: var(--primary-dark);
    font-weight: 760;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.kicker::before {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
    opacity: 0.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 740;
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(53, 111, 221, 0.18);
}

.button-primary:hover {
    background: var(--primary-dark);
}

.button-soft {
    background: #ffffff;
    border-color: var(--border-strong);
    color: var(--text);
}

.button-soft:hover {
    border-color: #bac6d7;
    background: #f8fbff;
}

.intro-card {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px;
    box-shadow: var(--shadow);
}

.intro-card h2 {
    font-size: 1.72rem;
    margin-bottom: 14px;
}

.intro-card p {
    color: #657184;
}

.intro-card dl {
    margin: 28px 0 0;
}

.intro-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 0;
    border-top: 1px solid var(--bg-line);
}

.intro-card dt {
    color: var(--muted-2);
}

.intro-card dd {
    margin: 0;
    color: var(--text);
    font-weight: 740;
    text-align: right;
}

.intro-card a {
    color: var(--primary-dark);
}

.section-white,
.section-soft {
    padding: 96px 0;
}

.section-soft {
    background: var(--bg-soft);
    border-top: 1px solid var(--bg-line);
    border-bottom: 1px solid var(--bg-line);
}

.section-warm {
    padding: 96px 0;
    background: var(--bg-warm);
    border-top: 1px solid #f0ece6;
    border-bottom: 1px solid #f0ece6;
}

.section-title {
    max-width: 840px;
    margin-bottom: 38px;
}

.section-title p {
    margin-top: 18px;
    font-size: 1.04rem;
}

.service-grid,
.compact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.plain-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    min-height: 252px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.plain-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e4;
    box-shadow: var(--shadow-soft);
}

.plain-card p {
    margin: 15px 0 24px;
    color: #647086;
}

.plain-card a,
.text-link,
.contact-box a,
.legal-text a {
    color: var(--primary-dark);
    font-weight: 740;
}

.two-column {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 78px;
    align-items: start;
}

.text-block p + p {
    margin-top: 18px;
}

.text-block .text-link {
    display: inline-flex;
    margin-top: 22px;
}

.info-note {
    margin-top: 24px;
    padding: 18px 20px;
    border-left: 3px solid var(--primary);
    background: #f7fbff;
    border-radius: 0 16px 16px 0;
}

.info-note p {
    color: #566376;
}

.cta-simple {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(135deg, #ffffff, #f7faff);
}

.cta-simple p {
    max-width: 620px;
    margin-top: 12px;
}

.page-intro {
    padding: 92px 0 72px;
    background: linear-gradient(180deg, #fbfcfe 0%, #f7f9fc 100%);
    border-bottom: 1px solid var(--bg-line);
}

.page-intro p:not(.kicker) {
    max-width: 880px;
    margin-top: 22px;
    font-size: 1.1rem;
    color: #5d697c;
}

.list-layout {
    display: grid;
    gap: 18px;
}

.line-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 30px;
    padding: 36px 0;
    border-top: 1px solid var(--border);
}

.line-card:last-child {
    border-bottom: 1px solid var(--border);
}

.line-card > span,
.step-row > span {
    color: var(--primary-dark);
    font-weight: 800;
    letter-spacing: 0.08em;
}

.line-card p {
    margin-top: 14px;
    max-width: 900px;
}

.line-card ul,
.simple-list {
    display: grid;
    gap: 9px;
    margin: 20px 0 0;
    padding-left: 19px;
    color: var(--muted);
}

.three-items .plain-card {
    min-height: 205px;
}

.steps-clean {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--border);
}

.step-row {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 28px;
    padding: 34px 0;
    border-bottom: 1px solid var(--border);
}

.step-row p {
    margin-top: 10px;
    max-width: 900px;
}

.contact-clean {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.contact-box {
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #ffffff;
}

.contact-box p {
    margin-top: 12px;
}

.form-clean-layout {
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
    gap: 44px;
    align-items: start;
}

.form-side {
    position: sticky;
    top: 118px;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
}

.form-side p {
    margin-top: 14px;
}

.small-contact {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.small-contact span {
    display: block;
    color: var(--muted-2);
    font-size: 0.9rem;
}

.small-contact a {
    display: inline-flex;
    margin-top: 4px;
    font-weight: 800;
    color: var(--primary-dark);
}

.contact-form {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px;
    background: #ffffff;
    box-shadow: 0 16px 46px rgba(40, 54, 77, 0.052);
}

.form-row {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.two-fields {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

label {
    font-weight: 720;
    color: #3a4659;
}

input,
select,
textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 14px;
    font: inherit;
    color: var(--text);
    background: #ffffff;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(53, 111, 221, 0.11);
}

.privacy-check {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin: 12px 0 24px;
    color: var(--muted);
    font-weight: 500;
}

.privacy-check input {
    width: 18px;
    min-height: 18px;
    margin-top: 4px;
}

.privacy-check a {
    color: var(--primary-dark);
    font-weight: 800;
}

.hidden-field {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

.alert {
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 20px;
}

.alert.success {
    background: #ecfdf3;
    color: #027a48;
    border: 1px solid #abefc6;
}

.alert.error {
    background: #fff1f3;
    color: #b42318;
    border: 1px solid #fecdd6;
}

.alert ul {
    margin: 8px 0 0;
    padding-left: 18px;
}

.legal-intro {
    padding-bottom: 54px;
}

.legal-text {
    max-width: 920px;
}

.legal-text h2 {
    font-size: 1.38rem;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.legal-text h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.legal-text p {
    margin-top: 12px;
}

.site-footer {
    background: #f8fafc;
    border-top: 1px solid var(--border);
    padding: 62px 0 28px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 48px;
}

.footer-logo {
    width: 170px;
    display: inline-flex;
}

.footer-brand-area p {
    margin-top: 18px;
    max-width: 460px;
}

.footer-column {
    display: grid;
    align-content: start;
    gap: 10px;
}

.footer-column h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.footer-column a {
    color: var(--muted);
}

.footer-column a:hover {
    color: var(--primary-dark);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 50px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.95rem;
}

.footer-bottom a {
    color: var(--primary-dark);
    font-weight: 800;
}

.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 500ms ease, transform 500ms ease;
}

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 1080px) {
    :root {
        --shell: min(100% - 36px, 1280px);
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 84px;
        left: 18px;
        right: 18px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        background: #ffffff;
        border: 1px solid var(--border);
        border-radius: 18px;
        padding: 12px;
        box-shadow: var(--shadow);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a,
    .main-nav .nav-cta {
        margin: 0;
        border-radius: 12px;
        padding: 13px 14px;
    }

    .hero-simple-grid,
    .two-column,
    .form-clean-layout {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .intro-card {
        max-width: 650px;
    }

    .service-grid,
    .compact-grid,
    .contact-clean,
    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .form-side {
        position: static;
    }
}

@media (max-width: 720px) {
    :root {
        --shell: min(100% - 28px, 1280px);
    }

    .header-shell {
        min-height: 78px;
    }

    .brand {
        width: 150px;
        min-width: 150px;
    }

    .main-nav {
        top: 78px;
    }

    .hero-simple {
        min-height: auto;
    }

    .hero-simple-grid {
        padding: 64px 0;
    }

    .section-white,
    .section-soft,
    .section-warm {
        padding: 70px 0;
    }

    .page-intro {
        padding: 72px 0 52px;
    }

    .service-grid,
    .compact-grid,
    .contact-clean,
    .footer-main,
    .two-fields {
        grid-template-columns: 1fr;
    }

    .cta-simple {
        align-items: flex-start;
        flex-direction: column;
        padding: 28px;
    }

    .line-card,
    .step-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .plain-card {
        min-height: auto;
    }

    .contact-form {
        padding: 24px;
    }

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