/* ============================================================
   OKSSOLO — ЕДИНЫЙ ФАЙЛ СТИЛЕЙ
   Единственный CSS сайта. Подключается так:
   <link rel="stylesheet" href="/css/site.css">
   Палитра: светлая розово-фуксиевая. Шрифт: Sansation.
   ============================================================ */

/* ---------- Локальный шрифт ---------- */
@font-face {
    font-family: 'Sansation';
    src: url('/fonts/Sansation-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Sansation';
    src: url('/fonts/Sansation-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Sansation';
    src: url('/fonts/Sansation-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ---------- Переменные: светлая палитра ---------- */
:root {
    /* Розовая гамма — светлее, чем было */
    --pink: #f06aa8;
    --pink-deep: #d94e8e;
    --pink-soft: #ffe4ef;
    --pink-pale: #fffafc;
    --pink-wash: #fff4f8;

    /* Текст */
    --ink: #3d2f39;
    --ink-soft: #5b4a56;
    --muted: #8a7a85;

    /* Поверхности */
    --paper: #ffffff;
    --paper-soft: #fffbfd;
    --bg: #fffafc;

    /* Границы */
    --line: #f6dde8;
    --line-strong: #edc6d8;

    /* Тени и скругления */
    --shadow: 0 18px 55px rgba(217, 78, 142, 0.08);
    --shadow-soft: 0 8px 25px rgba(217, 78, 142, 0.05);
    --radius: 24px;
    --radius-sm: 14px;

    /* Шрифт */
    --font: 'Sansation', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

    /* Алиасы для совместимости со старым HTML */
    --accent: var(--pink);
    --accent-strong: var(--pink-deep);
    --accent-soft: var(--pink-soft);
    --accent-bright: var(--pink);
    --accent-light: var(--pink-soft);
    --paper: #ffffff;
}

/* ---------- Reset и база ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: inherit;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 20px;
    min-height: 100%;
}
body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    isolation: isolate;
}
img {
    display: block;
    max-width: 100%;
}
a {
    color: var(--pink-deep);
    text-decoration: none;
    transition: color .2s;
}
a:hover { color: var(--pink); }

button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(240, 106, 168, 0.35);
    outline-offset: 3px;
}

/* ---------- Типографика ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1.2;
}
h1 em, h2 em, h3 em {
    font-style: normal;
    color: var(--pink);
}
.eyebrow,
.news-kicker,
.legal-eyebrow {
    display: inline-block;
    color: var(--pink-deep);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.19em;
    text-transform: uppercase;
}

/* ---------- Общие контейнеры ---------- */
.container,
.home-shell {
    width: min(1160px, calc(100% - 44px));
    margin-inline: auto;
}

/* ============================================================
   ШАПКА САЙТА
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 250, 252, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}
.site-nav-wrap {
    width: min(1240px, calc(100% - 44px));
    height: 82px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 32px;
}
.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    white-space: nowrap;
}

/* Контейнер ссылки */
.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 12px; /* Отступ между иконкой и текстом */
    text-decoration: none;
}

/* Логотип */
.brand-logo {
    display: block;
    height: 36px; /* Уменьшили высоту, чтобы было аккуратнее */
    width: auto;
    object-fit: contain;
    
    /* ВОТ ЭТОТ ТРЮК УБИРАЕТ БЕЛЫЙ ФОН (работает, если фон шапки светлый) */
    mix-blend-mode: multiply; 
    
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Текст Solo */
.brand-mark .brand-solo {
    color: var(--pink-deep);
    font-weight: 700;
    font-size: 22px; /* Уменьшили размер, чтобы сочеталось с иконкой */
    letter-spacing: -0.04em;
    line-height: 1;
    transition: color 0.3s ease;
}

/* --- ЭФФЕКТЫ ПРИ НАВЕДЕНИИ --- */

.brand-mark:hover .brand-solo {
    color: var(--pink); /* Текст становится ярче */
}

.brand-mark:hover .brand-logo {
    transform: scale(1.1) rotate(-5deg); /* Иконка чуть увеличивается и наклоняется */
    /* Убрали drop-shadow с картинки, так как он обводил белый квадрат */
}

/* Анимация переливания только для текста (если хочется) */
@keyframes text-shimmer {
    0% { color: var(--pink-deep); }
    50% { color: #ff8ec0; } /* Светло-розовый */
    100% { color: var(--pink-deep); }
}

.brand-mark:hover .brand-solo {
    animation: text-shimmer 2s infinite ease-in-out;
}

.brand-mark .brand-solo {
    color: var(--pink-deep);
    font-weight: 700;
    font-size: 26px;
    letter-spacing: -0.06em;
    transition: color 0.3s ease;
}

.brand-mark:hover .brand-solo {
    color: var(--pink);
}

/* Переливание логотипа при наведении на всю ссылку */
.brand-mark:hover .brand-logo {
    animation: brand-shimmer 1.6s ease-in-out infinite;
}

@keyframes brand-shimmer {
    0%, 100% {
        filter: drop-shadow(0 0 6px rgba(240, 106, 168, 0.55))
                drop-shadow(0 0 3px rgba(217, 78, 142, 0.4))
                brightness(1);
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 14px rgba(240, 106, 168, 0.95))
                drop-shadow(0 0 6px rgba(217, 78, 142, 0.6))
                brightness(1.15);
        transform: scale(1.04);
    }
}

/* Мобильная адаптация — логотип поменьше */
@media (max-width: 700px) {
    .brand-logo {
        height: 34px;
    }
    .brand-mark .brand-solo {
        font-size: 22px;
    }
}
.brand-mark span { color: var(--pink); }
.site-nav {
    display: flex;
    align-items: center;
    gap: 27px;
    margin-left: auto;
}
.site-nav a,
.book-back-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    text-decoration: none;
    transition: color .2s;
}
.site-nav a:hover,
.book-back-link:hover { color: var(--pink-deep); }
.nav-toggle {
    display: none;
    border: 0;
    background: var(--pink-soft);
    color: var(--pink-deep);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 20px;
}

/* ============================================================
   КНОПКИ
   ============================================================ */
.nav-contact,
.btn-primary,
.button,
.news-button,
.order-submit,
.digital-submit,
.postcards-order-button,
.cookie-button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 14px 22px;
    border: 1px solid var(--pink);
    border-radius: 999px;
    background: var(--pink);
    color: #fff !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 9px 24px rgba(240, 106, 168, 0.22);
    transition: transform .2s, background .2s, box-shadow .2s, border-color .2s;
    cursor: pointer;
}
.nav-contact:hover,
.btn-primary:hover,
.button:hover,
.news-button:hover,
.order-submit:hover,
.digital-submit:hover,
.postcards-order-button:hover,
.cookie-button-primary:hover {
    transform: translateY(-2px);
    background: var(--pink-deep);
    border-color: var(--pink-deep);
    box-shadow: 0 13px 30px rgba(217, 78, 142, 0.28);
}
.btn-outline,
.news-button-light,
.cookie-button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 20px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--paper);
    color: var(--pink-deep) !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
}
.btn-outline:hover,
.news-button-light:hover,
.cookie-button-secondary:hover {
    background: var(--pink-soft);
    border-color: var(--pink);
}
.delete-button {
    background: #ffe1e8 !important;
    border-color: #ffc2d2 !important;
    color: #b3264a !important;
    box-shadow: none !important;
}
.delete-button:hover {
    background: #ffc9d6 !important;
    border-color: #ffa8bf !important;
    color: #b3264a !important;
}
.text-link {
    font-weight: 700;
    color: var(--pink-deep);
    text-decoration: none;
    white-space: nowrap;
}
.text-link span { font-size: 20px; margin-left: 8px; }

/* ============================================================
   ГЛАВНЫЙ ЭКРАН
   ============================================================ */
.home-hero {
    padding: 68px 0 52px;
    background:
        radial-gradient(ellipse at 12% 12%, var(--pink-soft) 0, transparent 38%),
        linear-gradient(135deg, var(--bg), var(--pink-wash) 65%, var(--bg));
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(300px, 0.95fr) 1.05fr;
    gap: clamp(40px, 7vw, 100px);
    align-items: center;
}
.hero-photo-wrap {
    position: relative;
    padding: 0 0 28px 24px;
}
.hero-photo-placeholder {
    height: clamp(460px, 53vw, 650px);
    border-radius: 190px 190px 28px 28px;
    background: linear-gradient(145deg, #fbd0e2, #f0a7c7 45%, #e37dab);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.photo-placeholder-icon {
    width: 104px;
    height: 104px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.06em;
}
.hero-photo-note {
    position: absolute;
    bottom: 0;
    right: -18px;
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 16px 22px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    font-size: 15px;
    font-style: italic;
    color: #222222;
}
.hero-copy { padding: 22px 0; }
.hero-copy h1 {
    font-size: clamp(54px, 7vw, 92px);
    line-height: 0.98;
    letter-spacing: -0.04em;
    margin: 18px 0;
}
.hero-lead {
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.6;
    font-weight: 400;
    color: var(--ink-soft);
    max-width: 570px;
}
.hero-bio {
    margin-top: 26px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.85;
    max-width: 560px;
}
.hero-bio p { margin: 0 0 12px; }
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}
.hero-signature {
    margin-top: 48px;
    font-size: 27px;
    font-weight: 700;
    color: var(--pink-deep);
}
.hero-signature span {
    font: 400 12px var(--font);
    color: #222222;
    margin-left: 10px;
}
.about-gallery-strip {
    padding-top: 35px;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 30px;
    align-items: center;
}
.gallery-strip-title { display: grid; gap: 8px; }
.gallery-strip-title strong {
    font-size: 21px;
    font-weight: 700;
    color: var(--ink);
}
.about-mini-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.about-mini-gallery img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 14px;
    transition: transform .25s;
}
.about-mini-gallery img:hover { transform: translateY(-4px); }

/* ---------- Секции ---------- */
.home-section { padding: 100px 0; }
.section-heading {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 44px;
}
.section-heading h2,
.home-section h2 {
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 700;
    letter-spacing: -0.035em;
    margin: 10px 0 12px;
}
.section-heading p {
    color: var(--muted);
    line-height: 1.8;
    margin: 0;
}
.section-heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    text-align: left;
    max-width: none;
}
.section-heading-row > div { max-width: 640px; }

/* ============================================================
   КНИГИ
   ============================================================ */
.books-section { background: var(--paper); }
.books-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}
.book-tile {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: var(--ink);
    min-width: 0;
}
.book-cover-frame,
.coming-cover {
    height: 390px;
    border-radius: 18px;
    background: var(--pink-soft);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-soft);
    transition: transform .25s, box-shadow .25s;
}
.book-tile-active:hover .book-cover-frame {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}
.book-cover-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--pink-pale);
}
.book-tile-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 19px 0 10px;
}
.book-status {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1f7a4d;
    background: #e8f7ef;
    border-radius: 999px;
    padding: 7px 11px;
}
.status-soon {
    color: var(--pink-deep);
    background: var(--pink-soft);
}
.book-arrow { font-size: 23px; color: var(--pink); }
.book-tile h3 {
    font-size: 24px;
    line-height: 1.25;
    margin: 0 0 10px;
}
.book-more { font-size: 12px; color: var(--muted); }
.book-cover-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.book-buy-button {
    margin-top: auto;
    align-self: flex-start;
    width: fit-content;
}

.coming-cover {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(145deg, var(--pink-soft), #fbd0e2);
    color: var(--pink-deep);
}
.coming-cover-alt {
    background: linear-gradient(145deg, #fbe7f0, #f4d5e3);
}
.coming-cover > span {
    position: absolute;
    top: 24px;
    left: 25px;
    font-size: 12px;
    letter-spacing: 0.2em;
    opacity: 0.65;
}
.coming-cover strong {
    font-size: 38px;
    font-weight: 700;
}
.coming-cover i {
    font-size: 11px;
    margin-top: 10px;
    color: var(--muted);
    font-style: normal;
}

/* ============================================================
   НОВОСТИ (главная + архив)
   ============================================================ */
.news-section { background: var(--pink-wash); }
.site-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.news-card {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform .3s, box-shadow .3s;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.news-card-image {
    height: 200px;
    background: var(--pink-soft);
    overflow: hidden;
}
.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}
.news-card:hover .news-card-image img { transform: scale(1.04); }
.news-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px;
}
.news-card-date {
    font-size: 11px;
    color: var(--pink-deep);
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}
.news-card h3 {
    font-size: 22px;
    line-height: 1.25;
    margin: 0 0 10px;
}
.news-card p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--muted);
    margin: 0 0 16px;
}
.news-card-link {
    display: inline-block;
    margin-top: auto;
    font-size: 12px;
    font-weight: 700;
    color: var(--pink-deep);
}
.news-loading,
.news-empty {
    grid-column: 1 / -1;
    padding: 30px;
    text-align: center;
    color: var(--muted);
    background: var(--paper);
    border-radius: var(--radius-sm);
}

/* ============================================================
   ОТКРЫТКИ, БРАСЛЕТ, ТОВАРЫ
   ============================================================ */
.postcards-section {
    padding: 100px 0;
    background: var(--paper);
}
.postcards-title {
    font-size: clamp(36px, 5vw, 58px);
    text-align: center;
    color: var(--ink);
    margin-bottom: 22px;
}
.postcards2-title {
    max-width: 760px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 17px;
    line-height: 1.85;
    font-weight: 400;
    color: var(--muted);
}
.products-carousel {
    position: relative;
    max-width: 1050px;
    margin: 30px auto;
    padding: 0 62px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.products-carousel-window {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    border-radius: 22px;
}
.products-carousel-track {
    display: flex;
    align-items: stretch;
    width: 100%;
    transition: transform .45s ease;
}
.products-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    background: var(--pink-pale);
    border: 1px solid var(--line);
    border-radius: 22px;
}
.products-slide .postcards-content {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
    align-items: center;
    gap: 30px;
    height: 100%;
    padding: 28px;
}
.postcards-gallery { min-width: 0; text-align: center; }
.postcards-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    padding: 8px 18px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--paper);
    color: var(--pink-deep);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.postcards-carousel {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}
.postcards-carousel-window {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    border-radius: 14px;
}
.postcards-carousel-track {
    display: flex;
    transition: transform .35s ease;
}
.postcards-carousel-track img {
    display: block;
    flex: 0 0 100%;
    width: 100%;
    height: 420px;
    object-fit: contain;
    border-radius: 14px;
}
.postcards-arrow,
.digital-arrow,
.reviews-arrow,
.carousel-btn,
.products-arrow-prev,
.products-arrow-next {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: var(--paper);
    color: var(--pink-deep);
    box-shadow: var(--shadow-soft);
    font-size: 18px;
    display: grid;
    place-items: center;
    transition: transform .2s, background .2s;
    cursor: pointer;
}
.postcards-arrow:hover,
.reviews-arrow:hover,
.carousel-btn:hover,
.products-arrow-prev:hover,
.products-arrow-next:hover {
    transform: scale(1.06);
    background: var(--pink-soft);
}
.postcards-carousel .postcards-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
}
.postcards-carousel .postcards-arrow-prev { left: 10px; }
.postcards-carousel .postcards-arrow-next { right: 10px; }
.postcards-dots,
.products-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 18px auto;
}
.postcards-dot,
.products-dot {
    width: 10px;
    height: 10px;
    min-width: 10px;
    min-height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f0c9d8;
    cursor: pointer;
    transition: background .2s, transform .2s;
}
.postcards-dot.active,
.products-dot.active {
    background: var(--pink);
    transform: scale(1.25);
}
.postcards-info {
    padding: 32px; /* БЫЛО 30px - сделали чуть просторнее */
    border-radius: 16px;
    background: var(--paper);
    border: 1px solid var(--line);
    box-sizing: border-box;
}

.postcards-info h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--ink);
    font-size: 32px; /* БЫЛО clamp(22px, 2.5vw, 28px) - теперь всегда крупный */
    line-height: 1.3;
}

.postcards-info p {
    margin-bottom: 18px;
    color: var(--ink-soft);
    font-size: 17px; /* БЫЛО 15px */
    line-height: 1.8;
}
.postcards-price {
    margin: 25px 0;
    color: var(--pink-deep);
    font-size: 40px; /* БЫЛО 34px */
    font-weight: 700;
}

.postcards-price span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 15px; /* БЫЛО 14px */
    font-weight: 400;
}
.postcards-order-button {
    display: inline-flex;
    width: 100%;
    box-sizing: border-box;
    text-decoration: none;
    font-size: 16px; /* ДОБАВЬ ЭТУ СТРОКУ (если её нет) */
    padding: 16px 24px; /* Сделает кнопку чуть выше */
}

.bracelet-gallery {
    display: flex;
    align-items: stretch;
    min-width: 0;
}
.bracelet-photos {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
}
.bracelet-photos img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 420px;
    max-height: 650px;
    object-fit: contain;
    object-position: center;
    border-radius: 14px;
}

/* ============================================================
   КОМАНДА
   ============================================================ */
.team-section { background: var(--pink-wash); }
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}
.team-card {
    text-align: center;
    cursor: pointer;
    padding: 18px 14px;
    border-radius: 20px;
    transition: transform .2s, background .2s;
}
.team-card:hover {
    transform: translateY(-5px);
    background: var(--paper);
    box-shadow: var(--shadow-soft);
}
.team-avatar,
.team-modal-avatar {
    width: clamp(130px, 15vw, 180px);
    aspect-ratio: 1;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: linear-gradient(145deg, var(--pink-soft), #f0a7c7);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    border: 7px solid var(--paper);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}
.team-card h3 {
    font-size: 21px;
    margin: 0 0 6px;
}
.team-card p {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
}
.team-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.team-modal.is-open { display: flex; }
.team-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(61, 47, 57, 0.55);
    backdrop-filter: blur(6px);
}
.team-modal-card {
    position: relative;
    width: min(500px, 100%);
    max-height: 90vh;
    overflow: auto;
    padding: 38px;
    border-radius: 25px;
    background: var(--paper);
    text-align: center;
    box-shadow: 0 25px 80px rgba(217, 78, 142, 0.22);
}
.team-modal-close,
.close,
.smi-close,
.modal-close {
    position: absolute;
    right: 16px;
    top: 12px;
    border: 0;
    background: var(--pink-soft);
    color: var(--pink-deep);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}
.team-modal-card h2 {
    font-size: 30px;
    margin: 12px 0 4px;
}
.team-modal-role {
    color: var(--pink-deep);
    font-weight: 700;
}
.team-modal-card > p:not(.team-modal-role) {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
    margin: 20px 0;
}

/* ============================================================
   ПАРТНЁРЫ
   ============================================================ */
.partners-section { background: var(--paper); }
.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.partner-tile {
    min-height: 150px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--pink-pale);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    color: var(--pink-deep);
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.partner-tile:hover {
    transform: translateY(-4px);
    border-color: var(--pink);
    box-shadow: var(--shadow);
}
.partner-tile span {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
}
.partner-tile small {
    font-size: 11px;
    color: var(--muted);
}

/* ============================================================
   ПОДВАЛ
   ============================================================ */
.site-footer {
    padding: 65px 0 22px;
    background: var(--pink-wash);
    color: var(--ink-soft);
    border-top: 1px solid var(--line);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 55px;
    padding-bottom: 45px;
}
.footer-brand { color: var(--ink); }
.footer-grid p {
    max-width: 300px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}
.footer-grid > div:not(:first-child) {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-grid a:not(.brand-mark) {
    color: var(--pink-deep);
    text-decoration: none;
    font-size: 13px;
}
.footer-label {
    color: var(--pink-deep);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    margin-bottom: 7px;
}
.footer-bottom {
    display: flex;
    align-items: center;
    gap: 25px;
    border-top: 1px solid var(--line);
    padding-top: 20px;
    color: var(--muted);
    font-size: 11px;
}
.footer-bottom a {
    color: var(--pink-deep);
}
.cookie-settings-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--pink-deep);
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

/* ============================================================
   МОДАЛЬНЫЕ ОКНА (общие стили)
   ============================================================ */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(61, 47, 57, 0.4);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 1000;
}
.modal.active { display: flex; }
.modal-content,
.info-modal-content,
.smi-modal-content,
.order-modal-content {
    background: var(--paper);
    width: 100%;
    max-width: 540px;
    padding: 36px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: 0 25px 80px rgba(217, 78, 142, 0.2);
    position: relative;
    box-sizing: border-box;
}

/* ============================================================
   ФОРМА ЗАКАЗА КНИГИ
   ============================================================ */
#order-modal {
    overflow-y: auto;
    align-items: flex-start;
    padding: 24px 16px;
}
#order-modal .order-modal-content {
    margin: auto;
    max-height: none;
    overflow: visible;
    width: 100%;
    max-width: 540px;
}
#order-modal h2 {
    margin: 0 45px 10px 0;
    font-size: 28px;
    line-height: 1.3;
}
#order-modal .order-description {
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 15px;
}
#order-form,
#postcard-order-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#order-form label,
#postcard-order-form label {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-soft);
}
#order-form input,
#order-form textarea,
#postcard-order-form input:not([type="checkbox"]),
#postcard-order-form textarea {
    display: block;
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--paper-soft);
    color: var(--ink);
    font: inherit;
    font-size: 15px;
    box-sizing: border-box;
}
#order-form textarea,
#postcard-order-form textarea {
    resize: vertical;
    min-height: 80px;
}
#order-form input:focus,
#order-form textarea:focus,
#postcard-order-form input:focus,
#postcard-order-form textarea:focus {
    outline: none;
    border-color: var(--pink);
    box-shadow: 0 0 0 4px var(--pink-soft);
}
#order-form .order-required-note {
    margin: 12px 0 4px;
    color: var(--muted);
    font-size: 12px;
}
#order-form .order-submit { width: 100%; margin-top: 8px; }
#order-modal .order-success { padding-top: 12px; }
#order-modal .order-success h3 { margin-bottom: 10px; }
#order-modal .order-success p {
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 15px;
}
#postcard-order-modal {
    overflow-y: auto;
    align-items: flex-start;
    padding: 20px;
}
#postcard-order-modal .modal-content {
    width: 100%;
    max-width: 500px;
    max-height: none;
    margin: auto;
}

/* ============================================================
   ЮРИДИЧЕСКИЕ СОГЛАСИЯ В ФОРМАХ
   ============================================================ */
.legal-consent-field {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    margin: 14px 0;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.55;
}
.legal-consent-field input[type="checkbox"],
.digital-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--pink);
    cursor: pointer;
}
.legal-consent-field label,
.digital-consent { cursor: pointer; }
.legal-consent-field a,
.privacy-footer-links a {
    color: var(--pink-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.privacy-footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 18px;
    margin: 24px 0 18px;
    font-size: 13px;
}

/* ============================================================
   КАРУСЕЛЬ ОТЗЫВОВ
   ============================================================ */
.review {
    background: var(--pink-wash);
    padding: 100px 0;
    text-align: center;
}
.reviews-subtitle {
    color: var(--muted);
    margin-bottom: 40px;
}
#reviews .reviews-carousel {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    text-align: left;
}
#reviews .reviews-track {
    position: relative;
    display: block;
    padding: 30px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}
#reviews .review-slide {
    display: none;
    width: 100%;
    animation: reviewFade .25s ease;
}
#reviews .review-slide.is-active { display: block; }
#reviews .review-slide h3 {
    margin: 0 0 18px;
    color: var(--ink);
    font-size: 24px;
}
#reviews .reviews-carousel .review-slide blockquote {
    max-width: none;
    margin: 0;
    color: var(--ink-soft);
    font-size: 16px;
    font-style: normal;
    line-height: 1.8;
    white-space: pre-line;
    text-align: left;
}
#reviews .review-number {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--pink-deep);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}
#reviews .reviews-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 25px;
}
#reviews .reviews-arrow {
    padding: 11px 18px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--paper);
    color: var(--pink-deep);
    font: inherit;
    cursor: pointer;
}
#reviews .reviews-arrow:hover { background: var(--pink-soft); }
#reviews .reviews-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 260px;
}
#reviews .reviews-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #f0c9d8;
    cursor: pointer;
}
#reviews .reviews-dot.is-active {
    background: var(--pink);
    transform: scale(1.25);
}
#reviews .reviews-counter {
    margin-top: 12px;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}
@keyframes reviewFade {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   ИНФОРМАЦИОННЫЕ МОДАЛЬНЫЕ ОКНА
   ============================================================ */
.info-modal { z-index: 1100; }
.info-modal-content {
    width: min(760px, calc(100% - 32px));
    max-width: 760px;
    max-height: 85vh;
    overflow: hidden;
    padding: 0;
}
.info-modal-content .close {
    top: 12px;
    right: 12px;
}
.info-modal-body {
    max-height: 85vh;
    overflow-y: auto;
    padding: 38px clamp(22px, 5vw, 48px);
}
.info-modal-body h2 {
    color: var(--ink);
    font-size: clamp(28px, 4vw, 36px);
    line-height: 1.2;
    margin: 0 45px 24px 0;
}
.info-modal-body h3 {
    color: var(--ink);
    font-size: clamp(20px, 3vw, 24px);
    line-height: 1.35;
    margin: 28px 0 14px;
}
.info-modal-body p,
.info-modal-body li {
    font-size: 15px;
    line-height: 1.8;
    color: var(--ink-soft);
}
.info-modal-body p { margin: 0 0 16px; }
.info-modal-body strong { color: var(--pink-deep); }
.info-modal-body ul {
    padding-left: 22px;
    margin: 12px 0 22px;
}
.info-modal-body li { margin-bottom: 10px; }
.info-divider {
    height: 1px;
    background: var(--line);
    margin: 28px 0;
}
.author-highlight {
    margin-top: 28px;
    padding: 22px;
    background: var(--pink-soft);
    border-left: 3px solid var(--pink);
    border-radius: 0 12px 12px 0;
}
.author-highlight-ending {
    color: var(--pink-deep);
    font-weight: 700;
    margin-bottom: 0 !important;
}

/* ============================================================
   КАРУСЕЛЬ ФОТО АВТОРА
   ============================================================ */
.photo-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-top: 22px;
}
.photo-carousel-window {
    flex: 1;
    min-width: 0;
    max-width: 680px;
    overflow: hidden;
    border-radius: 14px;
}
.photo-carousel-track {
    display: flex;
    align-items: stretch;
    transition: transform .35s ease;
}
.photo-carousel-slide {
    flex: 0 0 100%;
    min-width: 0;
    margin: 0;
}
.photo-carousel-slide img {
    display: block;
    width: 100%;
    height: 380px;
    object-fit: contain;
    border-radius: 14px;
}
.photo-arrow {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: var(--paper);
    color: var(--pink-deep);
    font-size: 18px;
    cursor: pointer;
}
.photo-arrow:hover { background: var(--pink-soft); }
.photo-dots {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}
.photo-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f0c9d8;
    cursor: pointer;
}
.photo-dot.is-active {
    background: var(--pink);
    transform: scale(1.25);
}
.photo-counter {
    margin-top: 12px;
    text-align: center;
    font-size: 14px;
    color: var(--muted);
}

/* ============================================================
   МОДАЛКА «СМИ ОБО МНЕ»
   ============================================================ */
.smi-modal {
    padding: 14px;
    overflow-y: auto;
    align-items: flex-start;
}
.smi-modal-content {
    width: min(100%, 980px);
    max-width: 980px;
    max-height: calc(100vh - 28px);
    overflow-y: auto;
    padding: 34px clamp(16px, 4vw, 42px);
    margin: auto;
}
.smi-modal-content h2 {
    margin: 0 48px 24px 0;
    color: var(--ink);
}
.smi-document {
    overflow-wrap: anywhere;
    line-height: 1.65;
    color: var(--ink-soft);
}
.smi-document p { margin: 0 0 13px; }
.smi-document h3 {
    margin: 26px 0 12px;
    line-height: 1.35;
    color: var(--ink);
}
.smi-document a {
    color: var(--pink-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.smi-document img {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: contain;
    margin: 18px auto;
    border-radius: 8px;
}

/* ============================================================
   СТРАНИЦА КНИГИ
   ============================================================ */
.book-page-header {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}
.book-page-header > .home-shell {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.book-detail-hero {
    padding: 70px 0 78px;
    background:
        radial-gradient(ellipse at 15% 15%, var(--pink-soft) 0, transparent 35%),
        var(--bg);
}
.book-detail-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.82fr) 1.18fr;
    gap: clamp(42px, 7vw, 90px);
    align-items: center;
}
.book-detail-cover {
    padding: 25px;
    background: var(--pink-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
}
.book-detail-cover img {
    display: block;
    width: 100%;
    max-height: 650px;
    object-fit: contain;
    border-radius: 10px;
}
.book-cover-caption {
    display: block;
    text-align: center;
    padding: 14px 0 0;
    color: var(--pink-deep);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
}
.book-detail-copy h1 {
    font-size: clamp(42px, 5vw, 66px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin: 16px 0 20px;
}
.book-detail-copy > p {
    color: var(--muted);
    line-height: 1.8;
    font-size: 14px;
}
.book-detail-lead {
    font-size: 19px !important;
    color: var(--ink) !important;
    font-weight: 400;
}
.book-detail-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 25px 0;
}
.book-detail-facts span {
    padding: 9px 13px;
    border-radius: 999px;
    background: var(--pink-soft);
    color: var(--pink-deep);
    font-size: 11px;
    font-weight: 700;
}
.book-detail-price {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin: 25px 0 0;
    flex-wrap: wrap;
}
.book-detail-price strong {
    font-size: 36px;
    color: var(--pink-deep);
}
.book-detail-price span,
.delivery-note {
    font-size: 11px;
    color: var(--muted);
}
.delivery-note { display: block; margin-top: 14px; }

.about {
    background: var(--paper);
    padding: 80px 0;
}
.about h2,
.buy h2,
.review h2,
.digital-section h2 {
    font-size: clamp(32px, 4vw, 48px);
    color: var(--ink);
    margin-bottom: 25px;
}
.about p,
.buy p {
    color: var(--muted);
    line-height: 1.85;
    font-size: 16px;
    margin-bottom: 20px;
    max-width: 800px;
}
.book-details-list h3 {
    font-size: 22px;
    margin: 30px 0 14px;
}
.book-details-list ul {
    padding-left: 24px;
    color: var(--ink-soft);
}
.book-details-list li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.buy {
    background: var(--pink-wash);
    padding: 80px 0;
    text-align: center;
}
.buy p {
    margin-left: auto;
    margin-right: auto;
}
.buy .price { color: var(--pink-deep) !important; }
.price-options {
  display: flex;
  justify-content: center; /* Выравнивает карточки по центру */
  flex-wrap: wrap;         /* Переносит карточки на новую строку на узких экранах */
  gap: 30px;
  margin: 40px 0;
  text-align: center;
}

.price-option {
  flex: 1 1 300px;         /* Одинаковая гибкая ширина */
  max-width: 360px;        /* Ограничение ширины, чтобы карточки не растягивались на весь экран */
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}

.price-option h3 {
  font-size: 20px;
  margin-bottom: 20px;
}

.price-option .price {
  font-size: 35px;
  font-weight: 700;
  margin-bottom: 0;
}

.buy .hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

/* ---------- Цифровые версии ---------- */
.digital-section {
    background: var(--paper);
    padding: 80px 0;
}
.digital-formats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
}
.digital-card {
    display: block;
    background: var(--pink-pale);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 22px;
    box-sizing: border-box;
}
.digital-cover {
    width: 100%;
    height: auto;
    min-height: 260px;
    max-height: 520px;
    background: var(--pink-soft);
    border-radius: 14px;
    overflow: hidden;
    display: grid;
    place-items: center;
}
.digital-cover img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
}
.digital-format {
    display: inline-block;
    color: var(--pink-deep);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    margin-top: 20px;
    text-transform: uppercase;
}
.digital-info h3 {
    font-size: 24px;
    margin: 8px 0 10px;
}
.digital-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--pink-deep);
    margin-bottom: 15px;
}
.digital-description p,
.digital-audio-description {
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.75;
    margin-bottom: 14px;
}
.digital-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}
.digital-form label {
    font-size: 13px;
    color: var(--ink-soft);
    font-weight: 700;
}
.digital-form input:not([type=checkbox]) {
    padding: 11px 13px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    font-size: 14px;
}
.digital-form input:not([type=checkbox]):focus {
    outline: none;
    border-color: var(--pink);
    box-shadow: 0 0 0 3px var(--pink-soft);
}
.digital-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.55;
}
.digital-consent a {
    color: var(--pink-deep);
    text-decoration: underline;
}
.digital-submit { width: 100%; margin-top: 8px; }
.digital-note {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.6;
    margin-top: 8px;
}
.digital-form-message {
    font-size: 13px;
    color: var(--pink-deep);
    min-height: 18px;
}
.audio-art {
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--pink-deep);
    padding: 40px 20px;
    gap: 14px;
}
.audio-headphones { font-size: 42px; }
.audio-wave {
    font-size: 20px;
    color: var(--pink);
    letter-spacing: 0.15em;
}
.audio-art strong {
    font-size: 16px;
    letter-spacing: 0.15em;
}
.audio-art small {
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--muted);
}

/* ============================================================
   ЮРИДИЧЕСКИЕ БЛОКИ (оферта, доставка)
   ============================================================ */
.legal-section {
    padding: 80px 20px 36px;
    background: var(--pink-wash);
    color: var(--ink);
}
.legal-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}
.legal-eyebrow {
    margin: 0 0 10px;
    color: var(--pink-deep);
}
.legal-container h2 {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
}
.legal-intro {
    max-width: 650px;
    margin: 0 0 30px;
    color: var(--muted);
    line-height: 1.7;
}
.legal-card,
.legal-details {
    margin: 0 0 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
}
.legal-card { padding: 24px; }
.legal-card h3 {
    margin: 0 0 18px;
    font-size: 21px;
}
.legal-card p,
.legal-details-content p {
    line-height: 1.75;
    color: var(--ink-soft);
    overflow-wrap: anywhere;
}
.legal-card p { margin: 9px 0; }
.legal-details { overflow: hidden; }
.legal-details summary {
    position: relative;
    padding: 20px 52px 20px 22px;
    cursor: pointer;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.5;
    list-style: none;
}
.legal-details summary::-webkit-details-marker { display: none; }
.legal-details summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 22px;
    transform: translateY(-50%);
    color: var(--pink-deep);
    font-size: 24px;
    font-weight: 400;
}
.legal-details[open] summary::after { content: "−"; }
.legal-details[open] summary {
    border-bottom: 1px solid var(--line);
}
.legal-details-content { padding: 8px 22px 22px; }
.legal-details-content p { margin: 13px 0; }
.legal-details-content strong { color: var(--ink); }
.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}
.legal-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--pink);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: background .2s;
}
.legal-links a:hover { background: var(--pink-deep); }
.legal-details-content a {
    color: var(--pink-deep);
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}
.legal-footer {
    margin: 30px 0 0;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner[hidden],
.cookie-settings-modal[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    z-index: 20000;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 20px 22px;
    background: var(--paper);
    color: var(--ink);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 45px rgba(217, 78, 142, 0.18);
}
.cookie-banner-copy { flex: 1; }
.cookie-banner-copy h2 { margin: 0 0 7px; font-size: 19px; }
.cookie-banner-copy p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--ink-soft);
}
.cookie-banner-copy a {
    color: var(--pink-deep);
    text-decoration: underline;
}
.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}
.cookie-button {
    border-radius: 999px;
    padding: 10px 16px;
    font: inherit;
    font-size: 13px;
    line-height: 1.35;
    cursor: pointer;
    font-weight: 700;
}
.cookie-settings-modal {
    position: fixed;
    z-index: 20001;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
}
.cookie-settings-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(61, 47, 57, 0.45);
}
.cookie-settings-dialog {
    position: relative;
    width: min(100%, 560px);
    max-height: 90vh;
    overflow: auto;
    padding: 30px;
    background: var(--paper);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: 0 15px 60px rgba(217, 78, 142, 0.25);
}
.cookie-settings-dialog h2 {
    margin: 0 36px 12px 0;
    font-size: 24px;
}
.cookie-settings-dialog p {
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 16px;
    color: var(--ink-soft);
}
.cookie-settings-close {
    position: absolute;
    top: 8px;
    right: 14px;
    border: 0;
    background: var(--pink-soft);
    color: var(--pink-deep);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    font-size: 22px;
    cursor: pointer;
}
.cookie-category {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
}
.cookie-category p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
}
.cookie-switch-label {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: max-content;
    font-size: 13px;
    color: var(--ink-soft);
}
.cookie-switch-label input {
    accent-color: var(--pink);
    width: 17px;
    height: 17px;
}
.cookie-settings-warning {
    color: var(--muted);
    font-size: 12px !important;
}
.cookie-settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ============================================================
   ЮРИДИЧЕСКИЕ ДОКУМЕНТЫ (privacy.html и др.)
   ============================================================ */
.privacy-document {
    width: min(92%, 900px);
    margin: 0 auto;
    padding: 80px 0 70px;
    color: var(--ink);
}
.privacy-document h1 {
    margin: 0 0 16px;
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.2;
    color: var(--ink);
}
.privacy-document h2 {
    margin: 38px 0 14px;
    font-size: 24px;
    line-height: 1.3;
    color: var(--ink);
}
.privacy-document h3 {
    margin: 28px 0 10px;
    font-size: 19px;
    color: var(--ink);
}
.privacy-document p,
.privacy-document li {
    font-size: 16px;
    line-height: 1.8;
    color: var(--ink-soft);
}
.privacy-document p { margin: 0 0 16px; }
.privacy-document ul,
.privacy-document ol {
    padding-left: 24px;
    margin: 12px 0 22px;
}
.privacy-document a {
    color: var(--pink-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.privacy-document a:hover { color: var(--pink); }
.privacy-document .document-date {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 28px;
}
.privacy-document .document-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 28px;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--pink);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(240, 106, 168, 0.25);
    transition: background .2s, transform .2s;
}
.privacy-document .document-back:hover {
    background: var(--pink-deep);
    transform: translateY(-2px);
    color: #fff;
}
.privacy-document .document-note {
    padding: 18px 20px;
    background: var(--pink-soft);
    border-left: 3px solid var(--pink);
    border-radius: 0 10px 10px 0;
    margin: 22px 0;
    font-size: 15px;
    line-height: 1.7;
}
.privacy-document .document-toc {
    padding: 22px 26px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    margin: 28px 0;
}
.privacy-document .document-toc h3 { margin-top: 0; margin-bottom: 14px; }
.privacy-document .document-toc ul { margin: 0; padding-left: 20px; }

/* ============================================================
   АДМИН-ПАНЕЛЬ
   ============================================================ */
body.news-admin-page {
    min-height: 100vh;
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
}
.admin-shell {
    width: min(1440px, calc(100% - 64px));
    margin: 0 auto;
    padding: 30px 0 90px;
}
.admin-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 25px;
    margin-bottom: 55px;
    border-bottom: 1px solid var(--line);
}
.admin-top .brand {
    color: var(--ink);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-decoration: none;
}
.admin-top nav {
    display: flex;
    gap: 25px;
}
.admin-top nav a {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: color .2s;
}
.admin-top nav a:hover { color: var(--pink-deep); }
.login-panel {
    width: min(460px, 100%);
    margin: 0 auto;
    padding: 48px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--paper);
    box-shadow: var(--shadow);
}
.login-panel h1 {
    margin: 10px 0;
    font-size: 34px;
    letter-spacing: -0.03em;
}
.login-panel p {
    margin: 0 0 30px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}
.login-panel form {
    display: grid;
    gap: 18px;
    text-align: left;
}
.admin-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 38px;
}
.admin-heading h1 {
    margin: 8px 0 12px;
    font-size: clamp(34px, 4vw, 48px);
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.admin-heading p {
    max-width: 600px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}
.admin-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
    align-items: start;
    gap: 25px;
}
.admin-panel {
    min-width: 0;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper);
    box-shadow: var(--shadow-soft);
}
.editor-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 15px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--line);
}
.editor-section-heading > span {
    display: flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--pink-soft);
    color: var(--pink-deep);
    font-size: 11px;
    font-weight: 700;
}
.editor-section-heading h2 {
    margin: 0 0 4px;
    font-size: 18px;
}
.editor-section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}
.admin-panel form {
    display: grid;
    gap: 18px;
}
.admin-panel label {
    display: grid;
    gap: 9px;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 700;
}
.admin-panel input:not([type=file]),
.admin-panel textarea,
.admin-panel select {
    display: block;
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    padding: 11px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--paper-soft);
    color: var(--ink);
    font: inherit;
    font-size: 14px;
}
.admin-panel textarea {
    min-height: 90px;
    resize: vertical;
}
.admin-panel input:focus,
.admin-panel textarea:focus,
.admin-panel select:focus {
    outline: none;
    border-color: var(--pink);
    box-shadow: 0 0 0 3px var(--pink-soft);
}
.editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}
.image-status {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.55;
}
.image-preview {
    max-width: 100%;
    max-height: 260px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid var(--line);
    margin-top: 8px;
}
.list-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--line);
}
.list-heading h2 { margin: 0 0 6px; font-size: 20px; }
.list-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.text-button {
    background: transparent;
    border: 0;
    color: var(--pink-deep);
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
}
.admin-news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.admin-news-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper-soft);
}
.admin-news-info { min-width: 0; }
.admin-news-info h3 {
    margin: 0 0 4px;
    font-size: 16px;
    line-height: 1.3;
}
.admin-news-info p {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}
.admin-news-info small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 6px;
}
.news-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}
.news-status-badge.published {
    background: #e8f7ef;
    color: #1f7a4d;
}
.news-status-badge.draft {
    background: #fff1d9;
    color: #8a5a00;
}
.item-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}
.item-actions .news-button {
    padding: 9px 14px;
    font-size: 12px;
}
.form-message {
    font-size: 13px;
    min-height: 18px;
    margin-top: 6px;
    color: var(--muted);
}
.form-message.success { color: #1f7a4d; }
.form-message.error { color: #b3264a; }

/* ============================================================
   АДАПТИВНОСТЬ
   ============================================================ */
@media (max-width: 900px) {
    .site-nav-wrap { gap: 15px; }
    .site-nav { gap: 15px; }
    .nav-contact { display: none; }
    .hero-grid { gap: 35px; }
    .book-cover-frame,
    .coming-cover { height: 330px; }
    .footer-grid { gap: 30px; }
    .site-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-columns { grid-template-columns: 1fr; }
    .public-news-top,
    .admin-top { margin-bottom: 40px; }
}

@media (max-width: 750px) {
    .products-slide .postcards-content {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 20px;
    }
    .postcards-info { padding: 20px; }
    .postcards-carousel-track img { height: 320px; }
    .products-carousel { padding: 0 38px; }
}

@media (max-width: 700px) {
    .container,
    .home-shell { width: min(100% - 32px, 560px); }
    .site-nav-wrap { height: 68px; }
    .nav-toggle { display: block; margin-left: auto; }
    .site-nav {
        display: none;
        position: absolute;
        left: 16px;
        right: 16px;
        top: 66px;
        padding: 18px;
        background: var(--paper);
        border: 1px solid var(--line);
        border-radius: 18px;
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding: 12px; }
    .home-hero { padding: 36px 0 35px; }
    .hero-grid,
    .book-detail-grid { grid-template-columns: 1fr; gap: 30px; }
    .hero-photo-wrap { padding: 0 0 15px 10px; }
    .hero-photo-placeholder {
        height: 390px;
        border-radius: 150px 150px 22px 22px;
    }
    .hero-photo-note { right: 0; padding: 12px 15px; }
    .hero-copy { padding: 0; }
    .hero-copy h1 { font-size: 58px; }
    .hero-signature { margin-top: 28px; }
    .about-gallery-strip {
        grid-template-columns: 1fr;
        gap: 16px;
        padding-top: 25px;
    }
    .about-mini-gallery { gap: 7px; }
    .about-mini-gallery img { height: 78px; border-radius: 9px; }
    .home-section,
    .postcards-section { padding: 68px 0; }
    .section-heading { margin-bottom: 30px; }
    .section-heading-row {
        align-items: start;
        gap: 15px;
        flex-direction: column;
    }
    .books-grid { grid-template-columns: 1fr; gap: 36px; }
    .book-cover-frame,
    .coming-cover { height: 390px; }
    .book-tile { max-width: 440px; width: 100%; margin: auto; }
    .site-news-grid { grid-template-columns: 1fr; }
    .news-card-image { height: 220px; }
    .products-carousel { padding: 0 38px; }
    .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .team-avatar { width: 125px; }
    .partners-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .partner-tile { min-height: 120px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
    .footer-bottom { flex-wrap: wrap; gap: 14px; }
    .team-modal-card { padding: 30px 22px; }
    .book-detail-hero { padding: 38px 0; }
    .book-detail-cover { max-width: 420px; margin: auto; }
    .book-detail-copy h1 { font-size: 46px; }
    .digital-formats { grid-template-columns: 1fr; }
    .price-options { grid-template-columns: 1fr; }
    .admin-shell { width: calc(100% - 32px); padding: 20px 0 58px; }
    .admin-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .admin-panel { padding: 20px; }
    .login-panel { padding: 25px; }
    .editor-actions { flex-direction: column; }
    .editor-actions .news-button { width: 100%; }
    .item-actions { flex-direction: column; align-items: flex-end; }
    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        display: block;
        padding: 17px;
    }
    .cookie-banner-actions { justify-content: stretch; margin-top: 13px; }
    .cookie-banner-actions .cookie-button { flex: 1 1 100%; }
    .cookie-settings-dialog { padding: 26px 20px; }
    .cookie-category { display: block; }
    .cookie-switch-label { margin-top: 10px; }
    #reviews .reviews-track { padding: 22px 18px; }
    #reviews .reviews-carousel .review-slide blockquote {
        font-size: 15px;
        line-height: 1.7;
    }
    #reviews .review-slide h3 { font-size: 20px; }
    #reviews .reviews-controls { gap: 10px; }
    #reviews .reviews-arrow { padding: 9px 13px; font-size: 13px; }
    #reviews .reviews-dots { order: 3; width: 100%; max-width: none; }
    .privacy-document { padding: 50px 0 40px; }
    .info-modal-body { padding: 30px 20px; }
    .photo-carousel { gap: 6px; }
    .photo-arrow { flex-basis: 32px; width: 32px; height: 32px; }
    .photo-carousel-slide img { height: 260px; }
    .smi-modal-content { padding: 22px 15px; }
    .legal-links { flex-direction: column; }
    .legal-links a { width: 100%; box-sizing: border-box; }
    #order-modal .order-modal-content { padding: 28px 20px; }
}

@media (max-width: 500px) {
    #order-modal .order-modal-content { border-radius: 12px; }
    #order-modal h2 { font-size: 22px; }
    .hero-copy h1 { font-size: 49px; }
    .hero-photo-placeholder { height: 340px; }
    .partners-grid { grid-template-columns: 1fr 1fr; }
    .hero-actions > * { width: 100%; }
    .book-detail-copy h1 { font-size: 38px; }
    .postcards-carousel-track img { height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Большое фото в hero */
.hero-photo {
    width: 100%;
    height: clamp(460px, 53vw, 650px);
    object-fit: cover;
    border-radius: 190px 190px 28px 28px;
    box-shadow: var(--shadow);
    display: block;
}
@media (max-width: 700px) {
    .hero-photo { height: 390px; border-radius: 150px 150px 22px 22px; }
}

/* Аватарки команды */
.team-avatar img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Логотипы партнёров */
.partner-logo {
    max-width: 130px; max-height: 60px; object-fit: contain; display: block;
}
/* Контейнер ссылки */
.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 15px; /* Чуть увеличили отступ между лого и текстом */
    text-decoration: none;
}

/* Логотип */
.brand-logo {
    display: block;
    height: 48px; /* УВЕЛИЧИЛИ ЛОГОТИП (было 36px) */
    width: auto;
    object-fit: contain;
    
    /* Трюк для скрытия белого фона */
    mix-blend-mode: multiply; 
    
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Текст Solo */
.brand-mark .brand-solo {
    color: var(--pink-deep);
    font-weight: 700;
    font-size: 30px; /* УВЕЛИЧИЛИ ТЕКСТ (было 22px) */
    letter-spacing: -0.04em;
    line-height: 1;
    transition: color 0.3s ease;
}

/* --- ЭФФЕКТЫ ПРИ НАВЕДЕНИИ --- */

.brand-mark:hover .brand-solo {
    color: var(--pink);
    animation: text-shimmer 2s infinite ease-in-out;
}

.brand-mark:hover .brand-logo {
    transform: scale(1.1) rotate(-5deg); 
}

@keyframes text-shimmer {
    0% { color: var(--pink-deep); }
    50% { color: #ff8ec0; }
    100% { color: var(--pink-deep); }
}

/* Адаптация под мобильные (чтобы на телефоне не было слишком огромным) */
@media (max-width: 700px) {
    .brand-logo {
        height: 36px; 
    }
    .brand-mark .brand-solo {
        font-size: 24px;
    }
    .brand-mark {
        gap: 10px;
    }
}

/* Большое фото в hero-секции */
.hero-photo {
    width: 100%;
    height: clamp(460px, 53vw, 650px);
    object-fit: cover;
    object-position: top; /* Фото прижато к верху, чтобы не обрезалась голова */
    border-radius: 190px 190px 28px 28px; /* Возвращаем красивые скругления-арку */
    box-shadow: var(--shadow);
    display: block;
}

@media (max-width: 700px) {
    .hero-photo {
        height: 390px;
        border-radius: 150px 150px 22px 22px; /* Мобильная арка */
    }
}

/* Контейнер плитки */
.partner-tile {
    min-height: 180px;          /* было 150px — стало выше */
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--pink-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;              /* добавили внутренний отступ */
    text-decoration: none;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}

.partner-tile:hover {
    transform: translateY(-4px);
    border-color: var(--pink);
    box-shadow: var(--shadow);
}

/* Сам логотип */
.partner-logo {
    max-width: 480px;           /* было 130px */
    max-height: 120px;           /* было 60px */
    width: 100%;                /* растягиваем по ширине контейнера */
    object-fit: contain;
    display: block;
}

/* Контейнер партнёров: 6 колонок для точного позиционирования */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
    justify-content: center;
}

/* Сама плитка (по умолчанию занимает 2 колонки из 6, то есть 1/3 ширины) */
.partner-tile {
    grid-column: span 2;
    min-height: 190px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--pink-pale);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 20px;
    text-decoration: none;
    transition: transform .2s, border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}

/* 4-я плитка (Кавказская тропа) - смещаем на вторую строку */
.partner-tile:nth-child(4) {
    grid-column: 2 / span 2;
}

/* 5-я плитка (БУТ) - ставим рядом с 4-й */
.partner-tile:nth-child(5) {
    grid-column: 4 / span 2;
}

.partner-logo {
    width: 100%;
    max-width: 170px;
    height: 90px; /* Фиксируем высоту для ВСЕХ логотипов */
    object-fit: contain; /* Вписываем картинку целиком, не обрезая */
    display: block;
    margin: 0 auto;
    
    /* Трюк, чтобы скрыть белый фон у картинок на светло-розовой карточке */
    mix-blend-mode: multiply; 
}

/* Точечно увеличиваем 1-й (Кошкуль) и 4-й (Кавказская тропа) логотипы */
.partner-tile:nth-child(1) .partner-logo,
.partner-tile:nth-child(4) .partner-logo {
    max-width: 440px; /* Увеличиваем ширину */
    max-height: 200px; /* Увеличиваем высоту */
    
    /* Если высота задана жестко, переопределяем её */
    height: 140px; 
    
    /* Легкий визуальный "зум" для надежности (увеличивает картинку на 15%) */
    transform: scale(1.15);
}

/* Название компании (обычное состояние) */
.partner-name {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #222222; /* ← Тёмно-чёрный цвет */
    text-align: center;
    line-height: 1.4;
    letter-spacing: 0.01em;
    transition: color .2s;
}

/* Название компании при наведении на карточку */
.partner-tile:hover .partner-name {
    color: #d94e8e; /* ← Если хочешь, чтобы при наведении оставался розовым */
    /* Если хочешь, чтобы он ВСЕГДА был чёрным, удали эту строчку цвета или тоже поставь #222222 */
}

/* Контейнер подписи */
.hero-signature {
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 8px; /* Расстояние между лого, Solo и текстом */
}

/* Логотип */
.signature-logo {
    width: 36px !important;   /* Жестко задаем ширину */
    height: 36px !important;  /* Жестко задаем высоту */
    object-fit: contain;
    flex-shrink: 0;           /* Запрещаем картинке сплющиваться */
    border-radius: 50%;       /* Скругляем, чтобы скрыть углы белого фона */
    background: transparent;
}

/* Слово Solo */
.signature-solo {
    font-size: 24px;
    font-weight: 700;
    color: var(--pink-deep);
    line-height: 1;
}

/* Текст */
.signature-text {
    font-size: 13px;
    font-weight: 400;
    color: #222222;
    margin-left: 4px;
}

/* Слово Solo */
.signature-solo {
    font-family: var(--font);
    font-size: 28px;            /* Увеличиваем размер */
    font-weight: 700;           /* Делаем жирным */
    color: var(--pink-deep) !important; /* Возвращаем фирменный розовый цвет */
    letter-spacing: -0.04em;    /* Чуть сжимаем буквы для стиля */
    line-height: 1;
    margin-right: 10px;         /* Отступ от него до текста "идти своим маршрутом" */
}

.hero-signature {
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 1px; /* Расстояние между лого и Solo */
}

.signature-text {
    font-size: 14px;
    color: #222222;
    margin-left: 5px;
    padding-top: 6px; /* Выравниваем по базовой линии шрифта */
}

/* Слово Solo */
.signature-solo {
    font-size: 30px !important;          /* УВЕЛИЧИЛИ РАЗМЕР */
    font-weight: 700 !important;         /* Делаем жирным */
    color: var(--pink-deep) !important;  /* Фирменный розовый */
    letter-spacing: -0.04em;             /* Слегка сжимаем буквы */
    line-height: 1;
    margin-right: 10px;                  /* Отступ до текста */
}

/* Текст "— идти своим маршрутом" */
.signature-text {
    font-size: 20px !important;  /* Увеличили размер (было 13-14px) */
    font-weight: 400;            /* Оставляем обычным, чтобы не спорить с "Solo" */
    color: #222222;              /* Темный цвет */
    margin-left: 8px;            /* Чуть отодвинули от слова Solo */
    line-height: 1.2;
}

/* Карточка партнёра */
.partner-tile {
    height: 230px; /* Жестко фиксируем высоту, чтобы все карточки были одинаковыми */
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--pink-pale);
    
    /* Включаем Grid-сетку */
    display: grid;
    grid-template-rows: 1fr auto; /* Логотип занимает всё свободное место, текст — по размеру */
    align-items: center;          /* Центрируем логотип по вертикали */
    justify-items: center;        /* Центрируем всё по горизонтали */
    
    padding: 24px 20px;
    text-decoration: none;
    transition: transform .2s, border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}

.partner-tile:hover {
    transform: translateY(-4px);
    border-color: var(--pink);
    box-shadow: var(--shadow);
}

/* Логотип */
.partner-logo {
    max-width: 360px;
    max-height: 180px;
    width: 100%;
    object-fit: contain;
    display: block;
    margin: 0;
}

/* Название компании */
.partner-name {
    margin: 16px 0 0 0; /* Отступ сверху от логотипа */
    font-size: 16px;
    font-weight: 700;
    color: #222222;
    text-align: center;
    line-height: 1.35;
    letter-spacing: 0.01em;
    transition: color .2s;
}

.partner-tile:hover .partner-name {
    color: #d94e8e;
}

/* ============================================================
   УЛУЧШЕНИЕ БЛОКА ОТКРЫТОК НА МОБИЛЬНЫХ (МАКСИМАЛЬНЫЙ РАЗМЕР)
   ============================================================ */
@media (max-width: 750px) {
    /* 1. Убираем лишние отступы у самой карусели, чтобы карточка стала шире */
    .products-carousel {
        padding: 0 10px !important;
        gap: 4px !important;
    }

    /* 2. Уменьшаем стрелки, чтобы они не отнимали место */
    .products-arrow-prev,
    .products-arrow-next {
        flex-basis: 26px !important;
        width: 26px !important;
        height: 26px !important;
        font-size: 14px !important;
    }

    /* 3. Уменьшаем внутренние поля белой карточки (было 16px) */
    .products-slide .postcards-info {
        padding: 12px 16px !important; 
    }

    /* 4. ЕЩЕ СИЛЬНЕЕ УВЕЛИЧИВАЕМ ТЕКСТ */
    .postcards-info h3 {
        font-size: 22px !important; /* Заголовок */
        margin-bottom: 14px !important;
        line-height: 1.3 !important;
    }

    .postcards-info p {
        font-size: 16px !important; /* Основной текст */
        line-height: 1.65 !important; 
        margin-bottom: 14px !important;
    }

    /* 5. Увеличиваем цену и кнопку */
    .postcards-price {
        font-size: 30px !important;
        margin: 20px 0 !important;
    }
    
    .postcards-price span {
        font-size: 15px !important;
    }

    .postcards-order-button {
        font-size: 16px !important;
        padding: 16px 20px !important;
    }

    /* 6. Расширяем вступительный текст над каруселью */
    .postcards2-title {
        font-size: 16px !important;
        line-height: 1.6 !important;
        padding: 0 15px !important;
    }
}

/* Розовый цвет для первой строки в подписи */
.signature-text .text-pink {
    color: var(--pink-deep); /* Фирменный розовый цвет, как у слова Solo */
    font-weight: 1000;        /* Сделал чуть жирнее (можешь убрать, если не нравится) */
    font-size: 16px
}

.partners-section .partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
}

/* Одинаковая ширина и высота всех карточек */
.partners-section .partner-tile {
  box-sizing: border-box;
  width: calc((100% - 40px) / 3);
  flex: 0 0 calc((100% - 40px) / 3);
  
  padding: 24px 20px;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  background-color: #fcfafa;
  text-decoration: none;
  
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Жесткий контейнер под логотип — гарантирует, что текст будет строго на одном уровне */
.partners-section .partner-logo-wrap {
  width: 100%;
  height: 110px;      /* Строго одинаковая высота зоны картинки во всех карточках */
  flex-shrink: 0;     /* Запрещаем блоку сжиматься или растягиваться */
  margin-bottom: 16px;
  
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;   /* Если увеличенный логотип выйдет за рамки, он не сдвинет текст */
}

/* Базовый размер логотипов */
.partners-section .partner-logo {
  max-width: 170px;
  max-height: 95px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Увеличиваем «Кронидов» (2-я карточка) */
.partners-section .partner-tile:nth-child(2) .partner-logo {
  transform: scale(1.25);
}

/* Увеличиваем «Кавказскую тропу» (4-я карточка) */
.partners-section .partner-tile:nth-child(4) .partner-logo {
  transform: scale(1.3);
}

/* Текст строго по линейке */
.partners-section .partner-name {
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
  color: #333333;
  line-height: 1.3;
  
  /* Фиксируем высоту под 2 строки текста, чтобы карточки не отличались по высоте */
  min-height: 2.6em;
  display: flex;
  align-items: flex-start; /* Выравнивание строго по верхней границе первой строки */
  justify-content: center;
}

/* Адаптив */
@media (max-width: 960px) {
  .partners-section .partner-tile {
    width: calc((100% - 20px) / 2);
    flex: 0 0 calc((100% - 20px) / 2);
  }
}

@media (max-width: 600px) {
  .partners-section .partner-tile {
    width: 100%;
    flex: 0 0 100%;
  }
}

.site-footer {
  padding: 50px 0 30px;
  text-align: left;
}

/* Размещаем две колонки слева с аккуратным отступом между ними */
.site-footer .footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start; /* Обе колонки прижаты к левому краю */
  gap: 80px;                   /* Расстояние между колонками «Навигация» и «Связаться» */
  margin-bottom: 40px;
}

/* Выстраиваем содержимое каждой колонки строго в столбик */
.site-footer .footer-col,
.site-footer .footer-grid > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left !important;
  gap: 12px; /* Расстояние между пунктами в столбике */
}

/* Заголовки колонок (НАВИГАЦИЯ / СВЯЗАТЬСЯ) */
.site-footer .footer-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  opacity: 0.7;
}

/* Крупные и читаемые ссылки в обеих колонках */
.site-footer .footer-grid a {
  display: block;
  font-size: 18px;      /* Увеличенный размер текста */
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.site-footer .footer-grid a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/* Нижняя полоса (копирайт и cookie) — тоже крупнее и слева */
.site-footer .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 15px;
}

.site-footer .footer-bottom a,
.site-footer .cookie-settings-link {
  font-size: 15px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
  text-decoration: underline;
}

/* Адаптив для телефонов */
@media (max-width: 600px) {
  .site-footer .footer-grid {
    flex-direction: column;
    gap: 36px;
  }
}

/* Опускаем блок с юридическими плашками ниже */
.book-legal-links {
  margin-top: 60px !important;    /* Увеличивает отступ сверху (было около 20-30px) */
  margin-bottom: 30px !important; /* Отступ снизу перед самой нижней строкой подвала */
  
  /* Выравниваем плашки и кнопку в одну аккуратную линию по центру */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

/* Убираем лишние точки-разделители <span> · </span>, так как у вас теперь плашки */
.book-legal-links span {
  display: none;
}

/* Контейнер кнопок и точек */
.reviews-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

/* Исправляем кнопки .reviews-arrow */
.reviews-controls .reviews-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  
  width: auto;              /* Сбрасываем узкую квадратную ширину */
  min-width: 115px;         /* Делаем обе кнопки одинаковой аккуратной ширины */
  height: 44px;
  padding: 0 20px;
  
  white-space: nowrap;      /* Запрещаем перенос стрелки и слова на вторую строку */
  line-height: 1;
  
  border-radius: 10px;
  border: 1px solid #e5d8dc;
  background-color: #ffffff;
  color: #b05672;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reviews-controls .reviews-arrow:hover {
  background-color: #fdf2f5;
  border-color: #d6859f;
}

/* Аккуратный отступ для счетчика «Отзыв 1 из 11» снизу */
.reviews-counter {
  text-align: center;
  margin-top: 12px;
}

/* Имя в модалке команды — ссылка с розовым свечением */
.team-modal-name-link {
    color: inherit;
    text-decoration: none;
    display: inline-block;
    transition: color .25s ease, text-shadow .25s ease;
}

.team-modal-name-link:hover,
.team-modal-name-link:focus-visible {
    color: #d94e8e;
    text-shadow:
        0 0 4px rgba(217, 78, 142, .95),
        0 0 12px rgba(217, 78, 142, .75),
        0 0 24px rgba(217, 78, 142, .45);
}

.team-modal-name-link:focus-visible {
    outline: 2px solid #d94e8e;
    outline-offset: 3px;
    border-radius: 4px;
}


/* Подробная валидация форм электронной и аудиокниги */
.digital-form .field-error {
    display: block;
    margin-top: 5px;
    color: #b42345;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}
.digital-form input.field-invalid {
    border-color: #c6284b !important;
    box-shadow: 0 0 0 2px rgba(198, 40, 75, 0.10);
}
.digital-form input[aria-invalid="true"] {
    border-color: #c6284b;
}
.digital-form .digital-consent .field-error {
    flex-basis: 100%;
}
.digital-form-message.has-errors {
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff0f2;
    color: #a51d3d;
    line-height: 1.55;
}

/* ============================================================
   СЕТКА И ВЫРАВНИВАНИЕ КАРТОЧЕК КНИГ
   ============================================================ */

.books-grid {
    display: grid;
    /* Задаем жесткую ширину колонки (например, 300px) и центрируем их */
    grid-template-columns: repeat(auto-fit, 300px); 
    justify-content: center; /* Центрирует сетку по горизонтали */
    gap: 32px;
    align-items: stretch; /* Растягивает карточки на одну высоту */
    margin: 0 auto;
    max-width: 1100px; /* Чтобы не расползались на широких экранах */
}

/* Карточка */
.book-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

/* Обложка */
.book-card-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    background: #f7f7f7;
    overflow: hidden;
}

.book-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Стили для карточки-заглушки --- */
.placeholder-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    border-bottom: 1px dashed #dcdcdc;
}

.placeholder-icon {
    font-size: 5rem;
    font-weight: 900;
    color: #e0e0e0;
    font-family: serif;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.05);
}

.book-card-upcoming {
    opacity: 0.85;
}
.book-card-upcoming:hover {
    transform: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}
/* ----------------------------------- */

/* Контентная часть */
.book-card-content {
    display: flex;
    flex-direction: column;
    padding: 20px 20px 0 20px;
    flex-grow: 1;
}

/* Бейджи */
.book-badge {
    display: inline-block;
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.badge-available { background: #e6f4ea; color: #1e8e3e; }
.badge-preorder { background: #fce8f3; color: #d94e8e; }
.badge-upcoming { background: #f1f3f4; color: #5f6368; }

/* Заголовок */
.book-title {
    font-size: 1.25rem;
    line-height: 1.3;
    margin: 0 0 12px 0;
    color: #222;
}

/* Описание */
.book-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #666;
    margin: 0 0 16px 0;
}

/* Цена */
.book-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: #222;
    margin-top: auto;
    margin-bottom: 16px;
}

/* Подвал с кнопкой */
.book-card-footer {
    padding: 0 20px 20px 20px;
}

/* Кнопки */
.book-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: background 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

/* Кнопка-заглушка */
.btn-disabled {
    background: #e0e0e0;
    color: #888;
    cursor: not-allowed;
}
