/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c5f4f;
    --secondary-color: #8ab893;
    --accent-color: #d4a574;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ===== HEADER & NAVIGATION ===== */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--bg-light);
    border-bottom: 1px solid #e0e0e0;
}

.header-top-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.4rem 2rem;
    display: flex;
    justify-content: flex-end;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover .logo-main {
    color: var(--secondary-color);
}

.logo-main {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
    transition: var(--transition);
}

.logo-sub {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-light);
    line-height: 1;
    letter-spacing: 0.05em;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-contacts a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.header-contacts a:hover {
    color: var(--primary-color);
}

.header-contacts svg {
    width: 16px;
    height: 16px;
    fill: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

nav a:hover,
nav a.active {
    color: var(--primary-color);
    border-bottom-color: var(--accent-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 5rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: var(--shadow);
}

.cta-button:hover {
    background: #c69463;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* ===== MAIN CONTENT ===== */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem;
}

.section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ===== ABOUT THERAPIST ===== */
.about-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr; /* фото уже, текст шире */
    gap: 2.5rem;
    align-items: center;
}

.about-therapist {
    padding: 1.5rem 2rem;
}

.about-photo {
    justify-self: center;
    width: 100%;
    max-width: 250px;
}

.about-photo img {
    width: 100%;
    aspect-ratio: 3 / 4; /* вертикальный формат */
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow);
    object-fit: cover;
}

.about-text .section-title,
.about-text .section-subtitle {
    text-align: left;
}

.about-text p {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

/* ===== CARDS GRID ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 100%;
    height: 200px;
    min-height: 200px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

/* Когда используется фоновое изображение, можно добавить оверлей */
.card-image.has-bg-image {
    background: linear-gradient(135deg, rgba(44, 95, 79, 0.3), rgba(138, 184, 147, 0.2)), 
                var(--bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Стиль для img внутри card-image - 100% responsive и заполняет все пространство */
.card-image img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.card-content {
    padding: 1.5rem;
}

.card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.card-footer {
    padding: 0 1.5rem 1.5rem;
}

/* ===== PRICE TABLE ===== */
.price-table {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e9ecef;
}

.price-row:last-child {
    border-bottom: none;
}

.price-row:hover {
    background: var(--bg-light);
}

.price-name {
    font-weight: 600;
    color: var(--text-dark);
}

.price-details {
    color: var(--text-light);
    font-size: 0.9rem;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* ===== CONTACT FORM ===== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: start;
    margin-bottom: 1.5rem;
}

.contact-item span {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--accent-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 95, 79, 0.1);
}

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

.submit-button {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.submit-button:hover {
    background: #234939;
    transform: translateY(-2px);
}

/* ===== FEATURES SECTION ===== */
.features {
    background: var(--bg-light);
    padding: 2rem 2rem;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    background: var(--bg-light);
    padding: 2rem 2rem;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    text-align: center;
}

.faq-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

/* ===== FOOTER ===== */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 1.5rem 2rem 0.5rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-section a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

/* ===== THANK YOU PAGE ===== */
.thank-you-section {
    text-align: center;
    padding: 0 2rem;
}

.thank-you-section main {
    padding: 0;
}

.thank-you-container {
    max-width: 700px;
    margin: 0 auto;
}

.thank-you-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow);
}

.thank-you-message {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin: 2rem 0;
    line-height: 1.8;
}

.thank-you-info {
    color: var(--text-light);
    margin: 1.5rem 0 3rem;
    line-height: 1.8;
}

.thank-you-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.cta-button-secondary {
    background: var(--white);
    color: var(--primary-color);
    padding: 1rem 2rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
}

.cta-button-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.thank-you-contact {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.thank-you-contact h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.contact-quick {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-quick-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--white);
    border-radius: 8px;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.contact-quick-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.contact-icon {
    font-size: 1.5rem;
}

/* ===== RESPONSIVE ===== */
/* ===== PRICING TABLE ===== */
.pricing-table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    font-size: 1rem;
}

.pricing-table thead {
    background: var(--primary-color);
    color: var(--white);
}

.pricing-table thead th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 1.05rem;
}

.pricing-table thead th:last-child {
    text-align: right;
}

.pricing-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: var(--transition);
}

.pricing-table tbody tr:hover:not(.category-header) {
    background: #f8f9fa;
}

.pricing-table tbody td {
    padding: 1rem;
}

.pricing-table .category-header {
    background: var(--bg-light);
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.05rem;
    border-top: 2px solid var(--primary-color);
}

.pricing-table .category-header td {
    padding: 0.75rem 1rem;
}

.pricing-table .price {
    text-align: right;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.pricing-table .popular {
    background: #fff9f0;
    border-left: 4px solid var(--accent-color);
}

.pricing-table .badge {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.info-box {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

.info-box p {
    margin: 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.5;
}

/* ===== SPECIAL OFFERS ===== */
.special-offers {
    background: var(--bg-light);
    padding: 1.5rem 2rem;
    margin-top: 1.5rem;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 2rem auto 0;
}

.offer-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.offer-card.highlight {
    border-color: var(--accent-color);
    background: linear-gradient(to bottom, #fff9f0, var(--white));
}

.offer-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.offer-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.offer-details {
    text-align: left;
}

.offer-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.offer-item:last-child {
    margin-bottom: 0;
}

.offer-label {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
}

.offer-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.offer-save {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
}

.offer-discount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 1rem 0;
    text-align: center;
}

.offer-condition {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 1rem;
    text-align: center;
}

@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
    }

    .logo-main {
        font-size: 1.3rem;
    }

    .logo-sub {
        font-size: 0.65rem;
    }

    .menu-toggle {
        display: flex;
    }

    /* Show contacts on mobile as icons (hide text for space) */
    .header-contacts {
        display: flex;
        gap: 1rem;
    }
    .header-contacts a span {
        display: none;
    }
    .header-right {
        gap: 0.75rem;
    }

    .header-top-container {
        padding: 0.35rem 1rem;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: var(--shadow);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    nav.active {
        max-height: 500px;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 1rem;
    }

    nav li {
        padding: 0.5rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .about-photo {
        margin-bottom: 1rem;
        max-width: 200px;
    }

    .about-therapist {
        padding: 1rem 1rem;
    }

    .card-image {
        height: 250px;
        min-height: 250px;
    }

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

    .price-row {
        flex-direction: column;
        align-items: start;
        gap: 0.5rem;
    }

    .pricing-table {
        font-size: 0.9rem;
    }

    .pricing-table thead th,
    .pricing-table tbody td {
        padding: 0.75rem 0.5rem;
    }

    .pricing-table .price {
        font-size: 1.1rem;
    }

    .info-box {
        grid-template-columns: 1fr;
        padding: 1.25rem 1rem;
        gap: 0.75rem;
    }

    .info-box p {
        font-size: 0.85rem;
    }

    .offers-grid {
        grid-template-columns: 1fr;
    }

    .offer-card {
        padding: 1.5rem;
    }

    .offer-icon {
        font-size: 2.5rem;
    }

    .offer-discount {
        font-size: 2rem;
    }

    .special-offers {
        padding: 1rem 1rem;
    }

    .thank-you-section {
        padding: 0 1rem;
    }

    .thank-you-icon {
        width: 60px;
        height: 60px;
        font-size: 2.5rem;
    }

    .thank-you-message {
        font-size: 1.1rem;
    }

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

    .cta-button,
    .cta-button-secondary {
        width: 100%;
    }

    .contact-quick {
        flex-direction: column;
        gap: 1rem;
    }

    .contact-quick-item {
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 1.5rem 1rem;
    }

    main {
        padding: 1rem 1rem;
    }

    .card-image {
        height: 200px;
        min-height: 200px;
    }

    .cta-button {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
}

