:root {
    --paper: #ffffff;
    --mist: #f3f6ff;
    --mist-2: #e9efff;
    --aqua: #e8f7f4;
    --ink: #455c73;
    --ink-soft: #667b91;
    --accent: #667be6;
    --accent-strong: #5268cf;
    --line: #b8c6e8;
    --line-soft: #dbe3f5;
    --coral: #d77786;
    --focus: #8d54d6;
    --wrap: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.68;
    overflow-x: hidden;
}

a {
    color: inherit;
}

.wrap {
    width: min(calc(100% - 48px), var(--wrap));
    margin-inline: auto;
}

.site-header {
    border-bottom: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, 0.97);
}

.header-row {
    min-height: 86px;
    display: flex;
    align-items: center;
    gap: 26px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    white-space: nowrap;
}

.brand-mark {
    width: 38px;
    height: 38px;
    position: relative;
    display: inline-block;
}

.brand-mark span {
    position: absolute;
    width: 24px;
    height: 24px;
    border: 2px solid var(--accent);
    border-radius: 50%;
}

.brand-mark span:first-child {
    left: 0;
    top: 2px;
}

.brand-mark span:last-child {
    right: 0;
    bottom: 2px;
    border-color: var(--coral);
}

.brand-text {
    font-size: 15px;
    letter-spacing: 0.01em;
}

.brand-text strong {
    color: var(--accent-strong);
    font-weight: 750;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-nav a,
.footer-nav a {
    text-decoration: none;
}

.site-nav a {
    font-size: 14px;
    padding: 8px 9px;
    border-radius: 8px;
    color: var(--ink-soft);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    background: var(--mist);
    color: var(--accent-strong);
}

.phone-link {
    text-decoration: none;
    font-weight: 750;
}

.phone-link-header {
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    white-space: nowrap;
    color: var(--accent-strong);
}

.page-main {
    position: relative;
}

.thread-page::before {
    content: "";
    position: absolute;
    top: 64px;
    bottom: 88px;
    left: max(24px, calc((100vw - var(--wrap)) / 2 + 14px));
    width: 2px;
    background: linear-gradient(to bottom, var(--line), var(--line-soft) 72%, transparent);
    pointer-events: none;
}

.intro {
    padding: 78px 0 62px;
    position: relative;
}

.intro::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 72px;
    right: -36px;
    top: 38px;
    border: 2px solid var(--line-soft);
    border-radius: 50%;
    transform: rotate(-12deg);
    pointer-events: none;
}

.intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.75fr);
    gap: 84px;
    align-items: end;
}

.intro-grid-reverse {
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.55fr);
    align-items: center;
}

.intro-copy,
.measure-left,
.measure-right {
    position: relative;
    padding-left: 44px;
}

.measure-left {
    max-width: 820px;
}

.measure-right {
    max-width: 850px;
    margin-left: auto;
}

.intro-narrow .measure-left {
    max-width: 900px;
}

.kicker,
.section-index,
.note-number {
    display: inline-block;
    color: var(--accent-strong);
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.kicker {
    font-size: 12px;
    margin-bottom: 14px;
}

.section-index,
.note-number {
    font-size: 11px;
    margin-bottom: 10px;
}

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

h1 {
    margin-bottom: 26px;
    font-size: 40px;
    line-height: 1.12;
    letter-spacing: -0.035em;
    color: var(--ink);
}

h2 {
    margin-bottom: 18px;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--ink);
}

h3 {
    font-size: 20px;
    line-height: 1.3;
}

p {
    margin-bottom: 18px;
    font-size: 16px;
}

.intro-copy > p,
.measure-left > p,
.measure-right > p,
.stagger-main > p {
    max-width: 760px;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

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

.button:active {
    transform: translateY(0);
}

.button-primary {
    color: #ffffff;
    background: var(--accent);
}

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

.button-secondary {
    color: var(--accent-strong);
    background: #ffffff;
    border-color: var(--line);
}

.button-secondary:hover {
    background: var(--mist);
}

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

.dialogue-note,
.therapy-note,
.plain-aside {
    position: relative;
}

.dialogue-note {
    padding: 28px 28px 24px;
    border-left: 3px solid var(--coral);
    background: var(--aqua);
}

.dialogue-note::before,
.dialogue-note::after {
    content: "";
    position: absolute;
    border: 2px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
}

.dialogue-note::before {
    width: 18px;
    height: 18px;
    left: -11px;
    top: 36px;
}

.dialogue-note::after {
    width: 9px;
    height: 9px;
    left: -6px;
    top: 72px;
}

.compact-note {
    align-self: center;
}

.section {
    padding: 62px 0;
    position: relative;
}

.section-tint {
    background: var(--mist);
    border-block: 1px solid var(--line-soft);
}

.section-lined {
    background: linear-gradient(90deg, transparent 0 18%, var(--mist) 18% 100%);
}

.therapy-detail-grid,
.staggered-copy {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.68fr);
    gap: 72px;
    align-items: start;
}

.therapy-detail-grid > div:first-child,
.stagger-main {
    padding-left: 44px;
}

.therapy-note {
    padding: 4px 0 4px 24px;
    border-left: 2px solid var(--accent);
}

.therapy-note h2,
.plain-aside h2,
.dialogue-note h2 {
    font-size: 28px;
}

.plain-aside {
    margin-top: 30px;
    padding: 24px 26px;
    background: #ffffff;
    border-top: 2px solid var(--coral);
    box-shadow: 0 14px 32px rgba(83, 103, 159, 0.10);
}

.contact-band {
    padding: 42px 0;
    background: var(--mist-2);
    border-block: 1px solid var(--line);
}

.contact-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding-left: 44px;
}

.contact-band-inner h2 {
    margin-bottom: 10px;
}

.contact-band-inner p {
    margin-bottom: 0;
    max-width: 700px;
}

.contact-actions-right {
    margin-top: 0;
    flex-shrink: 0;
}

.extra-copy {
    padding: 22px 0;
    border-top: 1px solid var(--line-soft);
}

.extra-copy p {
    margin: 0;
    padding-left: 44px;
    font-size: 14px;
    color: var(--ink-soft);
}

.site-footer {
    padding: 34px 0 40px;
    background: #eef3ff;
    border-top: 1px solid var(--line-soft);
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.footer-brand {
    font-weight: 800;
    color: var(--accent-strong);
}

.footer-nav {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-nav a {
    font-size: 14px;
    color: var(--ink-soft);
}

.footer-nav a:hover {
    color: var(--accent-strong);
}

.privacy-link {
    opacity: 0.76;
}

.single-action {
    margin-top: 26px;
}

@media (max-width: 1100px) {
    .header-row {
        flex-wrap: wrap;
        padding-block: 16px;
        gap: 14px 18px;
    }

    .site-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
    }

    .phone-link-header {
        margin-left: auto;
    }

    .intro-grid,
    .intro-grid-reverse,
    .therapy-detail-grid,
    .staggered-copy {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .intro-grid-reverse .compact-note {
        order: 2;
    }

    .intro-grid-reverse .intro-copy {
        order: 1;
    }

    .dialogue-note,
    .therapy-note,
    .plain-aside {
        max-width: 760px;
        margin-left: 44px;
    }

    .section-lined {
        background: var(--mist);
    }

    .contact-band-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 760px) {
    .wrap {
        width: min(calc(100% - 32px), var(--wrap));
    }

    .header-row {
        min-height: 0;
    }

    .brand-text {
        font-size: 14px;
    }

    .phone-link-header {
        order: 2;
        font-size: 14px;
    }

    .site-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 2px;
        scrollbar-width: thin;
    }

    .site-nav a {
        flex: 0 0 auto;
    }

    .thread-page::before {
        left: 16px;
    }

    .intro,
    .section {
        padding-block: 48px;
    }

    .intro-copy,
    .measure-left,
    .measure-right,
    .therapy-detail-grid > div:first-child,
    .stagger-main,
    .contact-band-inner,
    .extra-copy p {
        padding-left: 20px;
    }

    .dialogue-note,
    .therapy-note,
    .plain-aside {
        margin-left: 20px;
    }

    .intro::after {
        width: 110px;
        height: 50px;
        right: -50px;
    }

    h1 {
        font-size: 40px;
        overflow-wrap: anywhere;
    }

    h2 {
        font-size: 28px;
        overflow-wrap: anywhere;
    }

    p {
        font-size: 16px;
    }

    .contact-actions,
    .contact-actions-right {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        width: 100%;
    }

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

    .footer-nav {
        justify-content: flex-start;
    }
}

@media (max-width: 430px) {
    .brand {
        width: 100%;
    }

    .phone-link-header {
        margin-left: 0;
    }

    .site-nav {
        margin-top: 2px;
    }
}
