* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: "Segoe UI", Arial, sans-serif;
    color: #4a3f33;
    background: #f3ece2;
}

nav { position: absolute; top: 26px; right: 60px; z-index: 3; }
nav a {
    color: #fffdf8;
    text-decoration: none;
    margin-left: 26px;
    font-size: 17px;
    text-shadow: 0 1px 4px rgba(74, 63, 51, .6);
}
nav a:hover, nav a.active { text-decoration: underline; text-underline-offset: 4px; }

/* ─── Главная: ровно один экран без прокрутки ─── */
.hero {
    position: relative;
    height: 100vh;
    height: 100svh;
    display: flex;
    flex-direction: column;
    background: url("/static/bg.jpg") center / cover no-repeat;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    padding: 0 8%;
    margin-top: 10vh;
}
.hero h1 {
    color: #fffdf8;
    font-size: 48px;
    font-weight: 400;
    max-width: 640px;
    line-height: 1.35;
    letter-spacing: 0.02em;
    text-align: center;
    text-shadow: 0 2px 10px rgba(74, 63, 51, .55);
}

.photo-block { text-align: center; color: #fffdf8; }
.photo-block img {
    width: 360px;
    height: 360px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fffdf8;
    box-shadow: 0 4px 24px rgba(74, 63, 51, .25);
}
.photo-block .name { font-size: 28px; margin-top: 20px; }
.photo-block .role { font-size: 20px; opacity: .8; }

.info-strip {
    display: flex;
    justify-content: center;
    gap: 110px;
    background: rgba(255, 253, 248, .75);
    padding: 30px 0 26px;
    margin-top: auto;
}
.info-item { text-align: center; width: 280px; }
.info-item .icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #4a3f33;
    color: #fffdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 14px;
}
.info-item .label { font-size: 18px; margin-bottom: 10px; font-weight: 600; }
.info-item .value { font-size: 17px; line-height: 1.6; }
.info-item a { color: #4a3f33; }

.page-hero {
    height: 260px;
    background: url("/static/bg.jpg") center 35% / cover no-repeat;
    display: flex;
    align-items: flex-end;
    padding: 0 8% 36px;
}
.page-hero h1 {
    color: #fffdf8;
    font-size: 38px;
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(74, 63, 51, .7);
}

.content {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 24px 80px;
    background: #faf6ef;
    box-shadow: 0 2px 18px rgba(74, 63, 51, .07);
}
.content h2 { margin: 28px 0 12px; font-weight: 600; color: #a8875a; }
.content p, .content li { line-height: 1.7; font-size: 17px; margin-bottom: 10px; }
.content ul { padding-left: 24px; }
.content a { color: #a8875a; }
.btn {
    display: inline-block;
    background: #c8a878;
    color: #4a3f33;
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 24px;
    text-decoration: none;
    margin-top: 12px;
}
.btn:hover {
    background: #b3925f;
    color: #fffdf8;
}


table { border-collapse: collapse; width: 100%; margin-top: 16px; }
th, td { border: 1px solid #e6d8c3; padding: 10px 14px; text-align: left; }
th { background: #f3ead9; }
tr:nth-child(even) td { background: #faf6f0; }

/* ─── Услуги: карточки ─── */
.services-content { padding: 40px 24px 80px; }
.services-subtitle {
    text-align: center;
    color: #8a7a66;
    font-size: 17px;
    margin-bottom: 30px;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
}
.service-card {
    background: #fffdf8;
    border: 1px solid #e6d8c3;
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    transition: transform .25s, box-shadow .25s;
    cursor: pointer;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(74, 63, 51, .12);
}
.service-icon { font-size: 44px; margin-bottom: 16px; }
.service-title { font-size: 20px; color: #4a3f33; margin-bottom: 10px; }
.service-desc { color: #6d5f4e; line-height: 1.6; margin-bottom: 18px; flex-grow: 1; }
.service-price { font-weight: 700; color: #a8875a; font-size: 18px; margin-bottom: 16px; }
.btn-book {
    background: #c8a878;
    color: #fffdf8;
    padding: 11px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
}
.btn-book:hover { background: #b3925f; color: #fffdf8; }

/* ─── О себе ─── */
.profile-section {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 20px;
}
.profile-img-about {
    width: clamp(220px, 26vw, 380px);
    height: clamp(220px, 26vw, 380px);
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #c8a878;
    box-shadow: 0 10px 25px rgba(74, 63, 51, .18);
    flex-shrink: 0;
}
.bio-text h3 { color: #4a3f33; margin-bottom: 14px; font-size: 24px; }
.bio-text p { line-height: 1.65; color: #6d5f4e; margin-bottom: 12px; }
.stats-title {
    text-align: center;
    color: #a8875a;
    margin-top: 46px;
    margin-bottom: 24px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}
.stat-card {
    background: #fffdf8;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(74, 63, 51, .08);
    border-top: 4px solid #c8a878;
}
.stat-card .number { font-size: 32px; font-weight: 700; color: #4a3f33; }
.stat-card .label { color: #8a7a66; font-size: 15px; margin-top: 6px; }

.about-content {
    max-width: none;
    margin: 0;
    padding: 50px 5% 70px;
    min-height: calc(100vh - 260px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 60px;
}
.about-content .profile-section { gap: 60px; }
.about-content .bio-text { max-width: 760px; }
.about-content .bio-text p { font-size: 19px; line-height: 1.8; }
.about-content .bio-text h3 { font-size: 30px; }
.about-content .stat-card { padding: 32px 24px; }

/* ─── Литература ─── */
.lit-content {
    max-width: 1240px;
    padding: 50px 5% 70px;
}
.lit-subtitle {
    text-align: center;
    color: #8a7a66;
    font-size: 17px;
    margin-bottom: 10px;
}
.lit-section-title {
    color: #4a3f33;
    text-align: center;
    font-size: 24px;
    margin: 44px 0 24px;
}
.lit-section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: #c8a878;
    margin: 10px auto 0;
    border-radius: 2px;
}
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.book-card {
    background: #fffdf8;
    border: 1px solid #e6d8c3;
    border-radius: 14px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s;
}
.book-card:hover {
    box-shadow: 0 8px 20px rgba(74, 63, 51, .10);
}
.book-title { font-size: 19px; color: #4a3f33; margin-bottom: 8px; }
.book-author { color: #a8875a; font-weight: 600; font-size: 15px; margin-bottom: 12px; }
.book-desc { color: #6d5f4e; line-height: 1.65; }

.tips-list { list-style: none; padding: 0; margin-top: 30px; }
.tips-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    line-height: 1.65;
    color: #4a3f33;
}
.tips-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #c8a878;
    font-weight: bold;
}

/* ─── Статья ─── */
.article-full {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 24px 70px;
}
.article-full-title {
    color: #4a3f33;
    font-size: 30px;
    margin-bottom: 26px;
}
.article-full h3 {
    color: #a8875a;
    font-size: 22px;
    margin: 30px 0 14px;
}
.article-full p,
.article-full li {
    font-size: 18px;
    line-height: 1.75;
    color: #4a3f33;
}
.article-full ul { padding-left: 24px; margin-bottom: 20px; }
.article-signature {
    text-align: right;
    font-style: italic;
    color: #8a7a66;
    margin-top: 44px;
}
.back-link {
    display: inline-block;
    margin-top: 30px;
    color: #a8875a;
    font-weight: 600;
    text-decoration: none;
}
.back-link:hover { color: #8a6c3f; }

/* ─── Полезное ─── */
.useful-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 50px 24px 70px;
}
.useful-content blockquote {
    margin: 12px 0;
    padding: 12px 18px;
    border-left: 4px solid #c8a878;
    background: #f3ead9;
    border-radius: 0 10px 10px 0;
    color: #4a3f33;
    font-style: italic;
}
.useful-disclaimer {
    background: #fdf3e0;
    border-left: 5px solid #d9a441;
    padding: 16px 20px;
    border-radius: 0 12px 12px 0;
    margin-bottom: 26px;
    color: #7a6434;
    font-size: 15px;
    line-height: 1.6;
}
.practice-card {
    background: #fffdf8;
    border: 1px solid #e6d8c3;
    border-radius: 14px;
    padding: 8px 22px;
    margin-bottom: 16px;
    box-shadow: 0 4px 14px rgba(74, 63, 51, .07);
}
.accordion-btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 16px 4px;
    cursor: pointer;
    color: #4a3f33;
    font-size: 17px;
    font-weight: 600;
    font-family: inherit;
}
.accordion-btn:hover { color: #a8875a; }
.accordion-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .35s ease, opacity .35s ease;
}
.accordion-active {
    max-height: 1200px;
    opacity: 1;
    padding-bottom: 18px;
}
.accordion-content p,
.accordion-content li {
    font-size: 16px;
    line-height: 1.7;
    color: #4a3f33;
}
.practice-subtitle {
    color: #8a7a66;
    font-size: 14px;
    margin-bottom: 12px;
}
.useful-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
}
.useful-content th,
.useful-content td {
    border: 1px solid #e6d8c3;
    padding: 8px;
    text-align: left;
    font-size: 14px;
}
.useful-content th { background: #f3ead9; color: #4a3f33; }
.useful-content .btn-book { margin-top: 6px; }

/* ─── Единая растяжка всех разделов до низа экрана ─── */
.services-content,
.articles-content,
.lit-content,
.useful-content,
.games-content,
.article-full {
    min-height: calc(100vh - 260px);
    display: block;
}

/* ─── Единая ширина: перекрывает .content принудительно ─── */
.content.services-content,
.content.articles-content,
.content.lit-content,
.content.useful-content,
.content.games-content {
    max-width: 1240px;
    padding: 50px 5% 70px;
}

/* ─── Услуги: расширение ─── */
.services-content .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.services-content .service-card {
    padding: 30px 26px;
}
.services-content .service-title {
    font-size: 21px;
}
.services-content .service-desc {
    font-size: 16px;
    line-height: 1.7;
}

/* ─── Статьи и Литература: крупнее текст карточек ─── */
.articles-content .article-title,
.lit-content .book-title {
    font-size: 20px;
}
.articles-content .article-excerpt,
.lit-content .book-desc {
    font-size: 16px;
    line-height: 1.7;
}

/* ─── Полезное: комфортнее шрифты практик ─── */
.useful-content .accordion-content p,
.useful-content .accordion-content li {
    font-size: 17px;
}
.useful-content .accordion-btn {
    font-size: 18px;
}

/* ─── Мобильная адаптация ─── */
@media (max-width: 900px) {
    .hero {
        height: auto;
        min-height: 100svh;
       .hero-inner {
        flex-direction: column;
        transform: none;
        gap: 30px;
        margin-top: 8vh;
        text-align: center;
    }
    .hero h1 { font-size: 36px; }
    .photo-block img {
        width: 240px;
        height: 240px;
    }
    .info-strip {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
    nav { right: 20px; }
    nav a { margin-left: 14px; font-size: 15px; }
}

@media (max-width: 640px) {
    .profile-section { flex-direction: column; text-align: center; }
    .profile-img-about { width: 240px; height: 240px; }
}

/* --- Кабинет психолога --- */
.admin-title {
    margin-top: 30px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.admin-table th,
.admin-table td {
    border: 1px solid rgba(0, 0, 0, 0.12);
    padding: 10px 14px;
    text-align: left;
}

.admin-table th {
    background: #ece2d4;
}

.admin-table a {
    color: inherit;
    font-weight: 600;
}

.admin-form {
    margin-top: 15px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.admin-input {
    padding: 8px 12px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    font: inherit;
}

/* ─── Игры и практики ─── */
.games-subtitle {
    text-align: center;
    color: #8a7a66;
    font-size: 17px;
    margin-bottom: 30px;
}
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 26px;
}
.games-content .practice-card {
    background: #fffdf8;
    border: 1px solid #e6d8c3;
    border-radius: 16px;
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s;
}
.games-content .practice-card:hover {
    box-shadow: 0 8px 20px rgba(74, 63, 51, .10);
}
.games-content .practice-icon { font-size: 42px; margin-bottom: 14px; }
.games-content .practice-title { font-size: 21px; color: #4a3f33; margin-bottom: 12px; }
.games-content .practice-desc {
    color: #6d5f4e;
    line-height: 1.7;
    font-size: 16px;
    flex-grow: 1;
    margin-bottom: 14px;
}
.games-content .practice-for {
    color: #a8875a;
    font-weight: 600;
    font-size: 15px;
}
.practice-age {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #a8875a;
    border: 1px solid #c8a878;
    border-radius: 6px;
    padding: 1px 7px;
    vertical-align: middle;
    margin-left: 6px;
}
.games-note {
    margin-top: 40px;
    padding: 20px 24px;
    background: #f3ead9;
    border-left: 4px solid #c8a878;
    border-radius: 0 12px 12px 0;
    color: #4a3f33;
    line-height: 1.7;
}
.games-note a { color: #a8875a; }

.site-footer {
    background: #4a3f33;
    color: #d8cbb8;
    padding: 20px 8%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
}
.site-footer a { color: #c8a878; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.admin-cancel {
    background: none;
    border: 1px solid #c8a878;
    color: #a8875a;
    border-radius: 6px;
    padding: 3px 10px;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
}
.admin-cancel:hover { background: #f3ead9; }
@media (max-width: 640px) {
    .site-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
        padding: 24px 6%;
        font-size: 15px;
    }
    .site-footer a {
        font-size: 16px;
        font-weight: 600;
        padding: 6px 10px;
    }
}
