/*
Theme Name: Stanislav Lebedev
Theme URI: https://stanislav-lebedev.local/
Author: Local theme
Description: Editable landing page theme for clinical psychologist Stanislav Lebedev.
Version: 1.0.0
Text Domain: lebedev
*/

:root {
    --green: #056c5f;
    --green-dark: #005046;
    --peach: #f8a683;
    --soft: #fbf7f3;
    --ink: #1d2a29;
    --muted: #60706e;
    --line: #dce5e2;
    --white: #ffffff;
    --shadow: 0 18px 50px rgba(0, 80, 70, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.65;
}

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

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

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

.section-pad {
    padding: 96px 0;
}

.section-band {
    padding: 64px 0;
    background: var(--green);
}

.section-title {
    margin: 0 0 48px;
    color: var(--green-dark);
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.1;
    text-align: center;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--peach);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 15px 30px;
    border: 0;
    border-radius: 0;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

.button-primary {
    color: var(--white);
    background: var(--green);
}

.button-secondary {
    color: var(--green-dark);
    background: var(--peach);
}

.site-header {
    position: relative;
    z-index: 20;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.header-top {
    display: flex;
    align-items: center;
    gap: 28px;
    width: min(1320px, calc(100% - 40px));
    margin: 0 auto;
    padding: 18px 0;
}

.site-logo {
    flex: 0 0 auto;
}

.site-logo img {
    width: 220px;
    max-height: 78px;
    object-fit: contain;
}

.header-meta {
    display: flex;
    justify-content: flex-end;
    gap: 28px;
    flex: 1;
}

.header-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--green);
}

.meta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    color: var(--peach);
    flex: 0 0 26px;
}

.meta-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.meta-icon-whatsapp svg {
    fill: currentColor;
    stroke: none;
}

.meta-copy {
    display: grid;
    font-size: 15px;
    line-height: 1.25;
}

.meta-label {
    color: var(--muted);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: var(--green);
    padding: 10px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 6px 0;
    background: var(--white);
}

.primary-nav {
    border-top: 1px solid var(--line);
}

.primary-nav ul {
    display: flex;
    justify-content: center;
    gap: 34px;
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 18px 0;
    list-style: none;
}

.primary-nav a {
    color: var(--green);
    font-weight: 700;
}

.primary-nav a:hover {
    color: var(--peach);
}

.hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
    gap: 0;
}

.hero-media {
    --hero-dots-space: 76px;
    position: relative;
    display: grid;
    grid-template-rows: auto var(--hero-dots-space);
    background: var(--soft);
    overflow: hidden;
}

.hero-media img {
    position: relative;
    grid-row: 1;
    grid-column: 1;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 500ms ease;
}

.hero-media img.is-active {
    opacity: 1;
}

.carousel-dots {
    position: relative;
    left: auto;
    bottom: auto;
    grid-row: 2;
    grid-column: 1;
    align-self: center;
    justify-self: center;
    display: flex;
    gap: 8px;
    transform: none;
    z-index: 2;
}

.carousel-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 50%;
    background: rgba(5, 108, 95, 0.24);
}

.carousel-dots button.is-active {
    background: var(--peach);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: var(--green-dark);
    background: rgba(255, 255, 255, 0.82);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 180ms ease, color 180ms ease;
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
    color: var(--white);
    background: var(--peach);
}

.carousel-arrow svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.carousel-arrow-prev {
    left: 24px;
}

.carousel-arrow-next {
    right: 24px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px min(6vw, 78px) 76px;
    background: var(--soft);
}

.hero-content h1 {
    margin: 0 0 24px;
    color: var(--green-dark);
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.1;
}

.hero-text {
    max-width: 620px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

.hero-highlight {
    max-width: 620px;
    margin: 20px 0 28px;
    padding: 22px;
    border: 8px solid var(--peach);
    color: var(--green-dark);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.education-card {
    display: flex;
    flex-direction: column;
    gap: 22px;
    color: var(--white);
}

.education-card-head {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: center;
    gap: 22px;
    min-height: 76px;
}

.education-card h2 {
    margin: 0;
    color: var(--white);
    font-size: 30px;
    line-height: 1.15;
}

.education-card img {
    width: 70px;
    max-height: 70px;
    object-fit: contain;
}

.education-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.education-card li {
    position: relative;
    margin-bottom: 12px;
    padding-left: 22px;
    line-height: 1.55;
}

.education-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--white);
}

.specialization-section {
    background: var(--soft);
}

.specialization-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.feature-card {
    display: flex;
    gap: 24px;
    padding: 34px;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: background 220ms ease, color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.feature-card:hover {
    background: var(--green);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 22px 54px rgba(0, 80, 70, 0.2);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    color: var(--white);
    background: var(--green);
    flex: 0 0 62px;
    transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}

.feature-icon svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-card:hover .feature-icon {
    color: var(--green);
    background: var(--white);
    transform: scale(1.05);
}

.feature-card h3 {
    margin: 0 0 10px;
    color: var(--green-dark);
    font-size: 24px;
    transition: color 220ms ease;
}

.feature-card:hover h3 {
    color: var(--white);
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    transition: color 220ms ease;
}

.feature-card:hover p {
    color: rgba(255, 255, 255, 0.88);
}

.image-slider {
    position: relative;
    margin-top: 42px;
}

.image-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 40px) / 3);
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.image-strip::-webkit-scrollbar {
    display: none;
}

.image-strip img {
    width: 100%;
    aspect-ratio: 370 / 340;
    object-fit: cover;
    scroll-snap-align: start;
}

.image-slider-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: var(--green-dark);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 30px rgba(0, 80, 70, 0.16);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 180ms ease, color 180ms ease, opacity 180ms ease;
}

.image-slider-arrow:hover,
.image-slider-arrow:focus-visible {
    color: var(--white);
    background: var(--green);
}

.image-slider-arrow:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.image-slider-arrow svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.image-slider-prev {
    left: 14px;
}

.image-slider-next {
    right: 14px;
}

.pricing-section {
    background: var(--white);
}

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

.price-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 32px;
    background: var(--soft);
    border: 1px solid var(--line);
}

.price-card-head {
    display: block;
}

.price-card-head h3 {
    margin: 0;
    color: var(--green-dark);
    font-size: 26px;
    line-height: 1.2;
    text-align: center;
}

.price-summary,
.price-description {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 0;
    text-align: center;
}

.price-summary {
    color: var(--green-dark);
    font-weight: 700;
}

.price-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin: 0 auto;
    border-radius: 50%;
    color: var(--green);
    background: var(--white);
    flex: 0 0 auto;
}

.price-info-icon svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.price-value {
    display: block;
    margin-top: auto;
    color: var(--green);
    font-size: 34px;
    line-height: 1.1;
    text-align: center;
}

.price-note {
    color: var(--muted);
    font-size: 14px;
}

.price-card .button {
    width: 100%;
}

.booking-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.booking-modal.is-open {
    display: flex;
}

.booking-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 80, 70, 0.62);
}

.booking-modal-panel {
    position: relative;
    z-index: 1;
    width: min(620px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 38px;
    background: var(--soft);
    box-shadow: 0 24px 80px rgba(0, 80, 70, 0.24);
}

.booking-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    color: var(--green-dark);
    background: var(--white);
    cursor: pointer;
}

.booking-modal-close svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.booking-modal-panel h2 {
    margin: 0 0 10px;
    color: var(--green-dark);
    font-size: clamp(30px, 5vw, 42px);
    line-height: 1.12;
}

.booking-modal-service {
    margin: 0 0 22px;
    color: var(--muted);
    font-weight: 700;
}

.booking-form textarea {
    min-height: 120px;
}

.form-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1100;
    display: grid;
    gap: 4px;
    width: min(360px, calc(100% - 48px));
    padding: 20px 48px 20px 22px;
    color: var(--white);
    background: var(--green);
    box-shadow: 0 18px 50px rgba(0, 80, 70, 0.2);
}

.form-toast-error {
    background: #8f2e24;
}

.form-toast strong {
    font-size: 18px;
}

.form-toast button {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

body.modal-open {
    overflow: hidden;
}

.methods-section {
    background: #f6f6f6;
}

.methods-section .section-title {
    color: var(--green-dark);
}

.methods-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 44px;
    align-items: center;
}

.methods-image {
    width: 100%;
    max-height: 620px;
    object-fit: contain;
}

.methods-section .accordion-item {
    background: var(--green-dark);
    border: 0;
}

.methods-section .accordion-item.is-open {
    background: var(--soft);
    border: 1px solid var(--line);
}

.accordion {
    display: grid;
    gap: 14px;
}

.accordion-item,
.faq-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.accordion-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
    padding: 24px;
    border: 0;
    color: var(--white);
    background: transparent;
    font: inherit;
    font-size: 22px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.accordion-title b {
    font-size: 30px;
    line-height: 1;
}

.accordion-content {
    display: none;
    padding: 0 24px 24px;
    color: rgba(255, 255, 255, 0.82);
}

.is-open > .accordion-title,
.is-open > .accordion-content {
    color: var(--green-dark);
}

.is-open {
    background: var(--soft);
}

.is-open > .accordion-content {
    display: block;
}

.faq-section {
    background-color: var(--soft);
    background-position: center right;
    background-repeat: no-repeat;
    background-size: 53% auto;
}

.faq-inner {
    width: min(520px, calc(47% - 40px));
    max-width: none;
    margin-left: calc((100% - min(1200px, calc(100% - 40px))) / 2);
    margin-right: 0;
}

.faq-inner h2 {
    margin: 0 0 44px;
    color: var(--green-dark);
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.1;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--line);
}

.faq-item .accordion-title {
    color: var(--green-dark);
    font-size: 19px;
}

.faq-item .accordion-content {
    color: var(--muted);
}

.reviews-section {
    background: var(--white);
}

.scroll-controls {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin: -24px 0 18px;
}

.scroll-controls button {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    color: var(--green-dark);
    background: var(--white);
    font-size: 30px;
    cursor: pointer;
}

.reviews-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(320px, 48%);
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 8px 0 22px;
}

.review-card {
    min-height: 330px;
    padding: 30px;
    background: var(--soft);
    border: 1px solid var(--line);
    scroll-snap-align: start;
}

.review-card p {
    margin: 0 0 18px;
}

.review-card h3 {
    margin: 10px 0 0;
    color: var(--green-dark);
}

.review-card span {
    color: var(--muted);
    font-size: 14px;
}

.stars {
    color: var(--peach);
}

.review-button {
    display: flex;
    width: fit-content;
    margin: 24px auto 0;
}

.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 700px;
    background: var(--green-dark);
}

.contact-image {
    background-position: center;
    background-size: cover;
}

.contact-form-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px min(7vw, 92px);
    background: var(--green-dark);
}

.contact-form-wrap h2 {
    margin: 0 0 30px;
    color: var(--white);
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.08;
}

.contact-form {
    display: grid;
    gap: 18px;
}

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

.contact-form input:not([type="checkbox"]),
.contact-form select,
.contact-form textarea {
    width: 100%;
    min-height: 58px;
    border: 0;
    padding: 15px 18px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
}

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

.form-consent {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    align-items: start;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    line-height: 1.45;
}

.form-consent input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--peach);
}

.form-consent a {
    color: var(--peach);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.booking-modal-panel .form-consent {
    color: var(--muted);
}

.form-message {
    padding: 14px 18px;
    background: var(--white);
}

.form-message.success {
    color: var(--green);
}

.form-message.error {
    color: #a32a2a;
}

.articles-section {
    background: var(--soft);
}

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

.article-card {
    background: var(--white);
    box-shadow: var(--shadow);
}

.article-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.article-card-body {
    display: grid;
    gap: 14px;
    padding: 24px;
}

.article-card time {
    color: var(--muted);
}

.article-card h3 {
    min-height: 92px;
    margin: 0;
    color: var(--green-dark);
    font-size: 24px;
    line-height: 1.25;
}

.article-card p {
    min-height: 118px;
    margin: 0;
    color: var(--muted);
}

.site-footer {
    color: var(--white);
    background: var(--green-dark);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 42px;
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 82px 0 56px;
}

.footer-brand img {
    width: 120px;
    margin-bottom: 22px;
}

.footer-brand p {
    max-width: 320px;
}

.footer-brand h3,
.footer-column h2 {
    color: var(--white);
}

.footer-column ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-column li {
    margin-bottom: 14px;
}

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

.footer-contacts strong {
    display: block;
    color: var(--peach);
}

.footer-bottom {
    padding: 22px 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.18);
}

.footer-bottom p {
    margin: 0;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
}

.footer-legal a:hover {
    color: var(--peach);
}

.entry-content {
    max-width: 900px;
}

.entry-content h2 {
    margin: 34px 0 12px;
    color: var(--green-dark);
    font-size: 28px;
    line-height: 1.2;
}

.entry-content p,
.entry-content li {
    color: var(--muted);
}

.entry-content a {
    color: var(--green-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 1100px) {
    .header-meta {
        gap: 16px;
    }

    .header-meta-item:first-child {
        display: none;
    }

    .pricing-grid,
    .articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .faq-inner {
        width: min(500px, calc(47% - 40px));
    }
}

@media (max-width: 860px) {
    .section-pad {
        padding: 68px 0;
    }

    .header-top {
        gap: 18px;
    }

    .header-meta {
        display: none;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .primary-nav {
        display: none;
    }

    .primary-nav.is-open {
        display: block;
    }

    .primary-nav ul {
        display: grid;
        gap: 0;
        padding: 8px 0;
    }

    .primary-nav a {
        display: block;
        padding: 12px 0;
    }

    .hero-section,
    .contact-section,
    .methods-layout,
    .education-grid,
    .specialization-grid,
    .footer-main {
        grid-template-columns: 1fr;
    }

    .carousel-arrow {
        width: 42px;
        height: 42px;
    }

    .carousel-arrow-prev {
        left: 14px;
    }

    .carousel-arrow-next {
        right: 14px;
    }

    .hero-content {
        padding: 44px 20px 60px;
    }

    .image-strip {
        grid-auto-columns: calc((100% - 20px) / 2);
    }

    .pricing-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .faq-inner {
        width: min(1200px, calc(100% - 40px));
        margin: 0 auto;
    }

    .faq-section {
        background-image: none !important;
        background-size: 0;
    }

    .contact-image {
        min-height: 480px;
    }

    .contact-form-wrap {
        padding: 56px 20px;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 28px, 1200px);
    }

    .site-logo img {
        width: 180px;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .hero-highlight {
        padding: 18px;
        font-size: 18px;
    }

    .education-card-head {
        grid-template-columns: 56px 1fr;
        gap: 16px;
        min-height: 56px;
    }

    .education-card img {
        width: 52px;
    }

    .feature-card {
        display: grid;
        padding: 24px;
    }

    .booking-modal-panel {
        padding: 34px 20px 24px;
    }

    .form-toast {
        right: 14px;
        bottom: 14px;
        width: calc(100% - 28px);
    }

    .image-strip {
        grid-auto-columns: 100%;
    }

    .image-slider-arrow {
        width: 40px;
        height: 40px;
    }

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

    .reviews-track {
        grid-auto-columns: 88%;
    }

    .accordion-title {
        padding: 18px;
        font-size: 18px;
    }
}
