:root {
    --home-blue: #2563eb;
    --home-blue-dark: #1d4ed8;
    --home-blue-soft: #eff6ff;
    --home-ink: #0f172a;
    --home-muted: #64748b;
    --home-line: #dbeafe;
    --home-bg: #f8fafc;
    --home-surface: #ffffff;
    --home-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    --home-shadow-soft: 0 10px 26px rgba(37, 99, 235, 0.1);
}

.web-home {
    color: var(--home-ink);
    background: var(--home-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

.web-home .container {
    width: calc(100% - 32px);
    max-width: 1120px;
    margin: 0 auto;
}

.web-home .narrow {
    max-width: 820px;
}

.home-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(37, 99, 235, 0.12);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(18px);
}

.home-header .container {
    max-width: 1320px;
}

.home-nav {
    display: grid;
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "logo actions"
        "menu menu";
    gap: 0.65rem clamp(1.25rem, 2.4vw, 2.4rem);
    min-height: 98px;
    padding: 0.75rem 0 0.82rem;
}

.home-logo {
    grid-area: logo;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    width: fit-content;
    flex: 0 0 auto;
    color: var(--home-blue) !important;
    font-size: 1.25rem;
    font-weight: 900;
    text-decoration: none !important;
}

.home-logo img {
    width: 38px;
    height: 38px;
    display: block;
    border-radius: 50%;
    object-fit: contain;
}

.home-menu,
.home-actions,
.hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.home-menu {
    grid-area: menu;
    flex: 1 1 auto;
    justify-content: flex-start;
    gap: clamp(1.05rem, 2.2vw, 2rem);
    min-width: 0;
    width: 100%;
    padding: 0.15rem 0 0;
    border-top: 1px solid rgba(37, 99, 235, 0.12);
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.home-menu::-webkit-scrollbar {
    display: none;
}

.home-actions {
    grid-area: actions;
    flex: 0 0 auto;
    gap: 1rem;
}

.home-menu a,
.home-link {
    color: #334155;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none !important;
    transition: color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.home-menu a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0.35rem 0;
    color: #475569;
}

.home-menu a:hover,
.home-link:hover,
.contact-section a {
    color: var(--home-blue);
}

.home-menu a:hover {
    background: transparent;
    box-shadow: none;
}

.home-menu a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--home-blue);
    opacity: 0;
    transform: scaleX(0.4);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.home-menu a:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.home-btn,
.home-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.78rem 1.1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 850;
    line-height: 1;
    text-decoration: none !important;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.home-btn {
    color: #fff !important;
    background: var(--home-blue);
    border: 1px solid var(--home-blue);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.16);
}

.home-btn:hover {
    background: var(--home-blue-dark);
    border-color: var(--home-blue-dark);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
    transform: translateY(-1px);
}

.home-btn-secondary {
    color: var(--home-blue) !important;
    background: #fff;
    border: 1px solid rgba(37, 99, 235, 0.18);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.045);
}

.home-btn-secondary:hover {
    border-color: rgba(37, 99, 235, 0.34);
    box-shadow: var(--home-shadow-soft);
    transform: translateY(-1px);
}

.home-btn-lg {
    min-height: 50px;
    padding-inline: 1.35rem;
}

.home-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(3.25rem, 8vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
    background:
        radial-gradient(circle at 78% 28%, rgba(96, 165, 250, 0.22) 0, rgba(96, 165, 250, 0.08) 28%, transparent 50%),
        radial-gradient(circle at 12% 12%, rgba(37, 99, 235, 0.12) 0, transparent 34%),
        linear-gradient(115deg, rgba(239, 246, 255, 0.88) 0%, rgba(255, 255, 255, 0.86) 46%, rgba(255, 255, 255, 1) 100%),
        linear-gradient(rgba(37, 99, 235, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.035) 1px, transparent 1px),
        #fff;
    background-size: auto, auto, auto, 36px 36px, 36px 36px;
}

.hero-grid,
.split-grid,
.video-grid {
    display: grid;
    align-items: center;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    gap: clamp(2rem, 5vw, 4rem);
}

.eyebrow {
    margin: 0 0 0.65rem;
    color: var(--home-blue);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.home-hero h1,
.home-section h2 {
    margin: 0;
    color: var(--home-ink);
    font-weight: 900;
    letter-spacing: 0;
}

.home-hero h1 {
    max-width: 12.5ch;
    font-size: clamp(2.65rem, 6.2vw, 4.85rem);
    line-height: 1;
}

.hero-lead,
.home-section p {
    color: var(--home-muted);
    font-size: 1rem;
    line-height: 1.75;
}

.hero-lead {
    max-width: 620px;
    margin: 1.2rem 0 1.75rem;
    font-size: 1.1rem;
}

.hero-media {
    position: relative;
    max-width: 430px;
    justify-self: end;
    padding: clamp(1rem, 2.5vw, 1.7rem);
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(239, 246, 255, 0.92), rgba(255, 255, 255, 0.98));
    box-shadow: var(--home-shadow);
}

.hero-media img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 24px 30px rgba(37, 99, 235, 0.1));
}

.home-section {
    padding: clamp(3.4rem, 7vw, 5.6rem) 0;
    background: #fff;
}

.home-section:nth-of-type(even) {
    background: #f8fafc;
}

.section-heading {
    width: min(760px, 100%);
    margin: 0 auto 2.3rem;
    text-align: center;
}

.section-heading h2,
.intro-section h2,
.split-section h2,
.video-section h2,
.contact-section h2 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.08;
}

.intro-section {
    text-align: center;
}

.intro-section p {
    max-width: 760px;
    margin: 1rem auto 0;
}

.feature-list {
    display: grid;
    gap: 0.9rem;
}

.feature-list div,
.step-grid article,
.testimonial-grid article,
.profile-grid article {
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.055);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.feature-list div:hover,
.step-grid article:hover,
.testimonial-grid article:hover,
.profile-grid article:hover,
.blog-grid article:hover {
    border-color: rgba(37, 99, 235, 0.24);
    box-shadow: var(--home-shadow);
    transform: translateY(-2px);
}

.feature-list div {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
}

.feature-list span,
.step-grid span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: var(--home-blue);
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
}

.step-grid,
.testimonial-grid,
.blog-grid,
.profile-grid,
.founder-grid,
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}

.psychologists-section .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.step-grid article,
.testimonial-grid article,
.founder-grid article,
.contact-grid article {
    min-height: 100%;
    padding: 1.35rem;
}

.step-grid h3,
.blog-grid h3,
.profile-grid h3,
.founder-grid h3 {
    margin: 0.9rem 0 0.35rem;
    color: var(--home-ink);
    font-weight: 850;
}

.pricing-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.5rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    border-radius: 8px;
    color: #fff;
    background: var(--home-blue);
    box-shadow: 0 22px 50px rgba(37, 99, 235, 0.22);
}

.pricing-card img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    padding: 0.5rem;
    border-radius: 8px;
    background: #fff;
}

.pricing-card ul {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding-left: 1.1rem;
}

.pricing-card .home-btn {
    color: var(--home-blue) !important;
    background: #fff;
    border-color: #fff;
    box-shadow: none;
}

.profile-grid article {
    display: grid;
    align-items: flex-start;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 1rem;
    padding: 1.15rem;
}

.profile-grid img {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--home-blue-soft);
}

.profile-grid article h3 {
    margin-top: 0;
}

.profile-grid article p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.62;
}

.profile-grid article p strong,
.testimonial-grid article strong {
    color: var(--home-blue);
}

.testimonial-grid article {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.testimonial-grid article p {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.65;
}

.blog-grid article {
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(37, 99, 235, 0.12);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.055);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.blog-grid img {
    width: 100%;
    height: 185px;
    object-fit: cover;
}

.blog-grid h3 {
    margin: 0 0 0.45rem;
}

.blog-grid div {
    padding: 1rem;
}

.blog-grid p {
    margin: 0;
    color: var(--home-muted);
    font-size: 0.92rem;
    line-height: 1.58;
}

.founder-grid article,
.contact-grid article {
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.055);
}

.founder-grid article {
    text-align: center;
}

.founder-grid img {
    width: 112px;
    height: 112px;
    margin: 0 auto;
    border: 4px solid var(--home-blue-soft);
    border-radius: 50%;
    object-fit: cover;
}

.founder-grid p,
.contact-grid p {
    margin: 0;
    color: var(--home-muted);
    font-size: 0.94rem;
    line-height: 1.62;
}

.contact-grid article {
    text-align: left;
}

.contact-grid span {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--home-muted);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.contact-grid a {
    color: var(--home-blue);
    font-size: 1.08rem;
    font-weight: 850;
}

.video-grid video {
    width: 100%;
    border-radius: 8px;
    background: #000;
    box-shadow: var(--home-shadow);
}

.contact-section {
    text-align: center;
}

.home-contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    max-width: 820px;
    margin: 1.8rem auto 0;
    padding: clamp(1rem, 2.4vw, 1.5rem);
    text-align: left;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.055);
}

.home-form-row {
    display: grid;
    gap: 0.4rem;
}

.home-form-full,
.home-form-message {
    grid-column: 1 / -1;
}

.home-contact-form label {
    color: var(--home-ink);
    font-size: 0.86rem;
    font-weight: 850;
}

.home-contact-form input,
.home-contact-form textarea {
    width: 100%;
    min-height: 46px;
    padding: 0.78rem 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 8px;
    color: var(--home-ink);
    background: #fff;
    outline: none;
}

.home-contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.home-contact-form input:focus,
.home-contact-form textarea:focus {
    border-color: var(--home-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.home-captcha-row {
    grid-column: 1 / -1;
    padding: 0.85rem;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 8px;
    background: #eff6ff;
}

.home-form-submit {
    grid-column: 1 / -1;
    width: 100%;
}

.home-form-message {
    min-height: 1.5rem;
    margin: 0;
    text-align: center;
    font-weight: 800;
}

.home-form-message.is-success {
    color: #0f766e;
}

.home-form-message.is-error {
    color: #e11d48;
}

.home-footer {
    padding: 2.2rem 0;
    background: var(--home-blue);
}

.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-grid img {
    width: 168px;
    padding: 0.35rem;
    border-radius: 8px;
    background: #fff;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.footer-grid a {
    color: #fff;
    font-weight: 800;
}

.footer-grid p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.88rem;
    font-weight: 700;
}

@media (max-width: 900px) {
    .home-menu {
        display: none;
    }

    .hero-grid,
    .split-grid,
    .video-grid,
    .pricing-card {
        grid-template-columns: 1fr;
    }

    .home-hero h1 {
        max-width: 100%;
    }

    .hero-copy,
    .section-heading,
    .intro-section,
    .contact-section {
        text-align: left;
    }

    .home-contact-form {
        grid-template-columns: 1fr;
    }

    .step-grid,
    .testimonial-grid,
    .blog-grid,
    .profile-grid,
    .founder-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .psychologists-section .profile-grid {
        grid-template-columns: 1fr;
    }

    .home-actions {
        gap: 0.45rem;
    }

    .home-link {
        display: none;
    }

    .home-logo {
        font-size: 1.12rem;
    }

    .home-logo img {
        width: 34px;
        height: 34px;
    }

    .home-btn {
        padding-inline: 0.85rem;
    }

    .footer-grid,
    .footer-links {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 980px) {
    .home-menu {
        display: none;
    }

    .home-nav {
        grid-template-areas: "logo actions";
        min-height: 78px;
        padding: 0;
    }
}

@media (max-width: 560px) {
    .web-home .container,
    .web-home .narrow {
        width: calc(100% - 24px);
    }

    .home-nav {
        min-height: 68px;
    }

    .home-logo span {
        display: none;
    }

    .home-logo img {
        width: 36px;
        height: 36px;
    }

    .home-actions .home-btn {
        min-height: 40px;
        font-size: 0.78rem;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .home-hero {
        padding-top: 2.25rem;
    }

    .hero-media {
        padding: 0.75rem;
    }

    .pricing-card img {
        width: 112px;
        height: 112px;
    }
}
