/* ═══════════════════════════════════════════════════════════════════════════
   Svetlana Saltanovskaya — Персональный стилист
   Цветовая схема: бирюзово-лазурная с розовым акцентом
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Montserrat:wght@300;400;500;600&display=swap');

/* ── Переменные ──────────────────────────────────────────────────────────── */
:root {
    --teal-dark:   #072d38;
    --teal-deep:   #0d5a6e;
    --teal-mid:    #1a8ca8;
    --teal-light:  #4dbfd4;
    --teal-pale:   #c4eaf2;
    --teal-bg:     #eef8fb;
    --rose:        #d4789a;
    --rose-light:  #f7e4ed;
    --gold:        #c9a96e;
    --white:       #ffffff;
    --off-white:   #f8fafb;
    --text:        #152830;
    --text-muted:  #5a8494;
    --border:      #cce5ee;
    --shadow:      0 4px 24px rgba(7, 45, 56, 0.10);
    --shadow-hover:0 8px 40px rgba(7, 45, 56, 0.18);
    --radius:      12px;
    --radius-lg:   20px;
    --font-serif:  'Playfair Display', Georgia, serif;
    --font-sans:   'Montserrat', system-ui, sans-serif;
    --transition:  0.25s ease;
}

/* ── Сброс и база ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--off-white);
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--teal-mid); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-deep); }
ul { list-style: none; }

/* ── Контейнер ───────────────────────────────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.container--narrow { max-width: 900px; }
.container--post   { max-width: 780px; padding-top: 40px; padding-bottom: 60px; }

/* ── Секции ──────────────────────────────────────────────────────────────── */
.section { padding: 64px 0; }
.section--tinted { background: var(--teal-bg); }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 36px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 600;
    color: var(--teal-dark);
    margin-bottom: 36px;
}
.section-title--center { text-align: center; }
.section-link { color: var(--teal-mid); font-size: 0.9rem; font-weight: 500; }

/* ══════════════════════════════ ШАПКА ══════════════════════════════════════ */
.site-header {
    background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal-deep) 55%, var(--teal-mid) 100%);
    position: relative;
    overflow: hidden;
    z-index: 100;
}

.header-waves {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.header-waves svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0; left: 0;
}

.header-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 32px;
    gap: 24px;
    flex-wrap: wrap;
}

/* Логотип */
.site-logo {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-decoration: none;
}
.logo-name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.06em;
}
.logo-sub {
    font-size: 0.72rem;
    color: var(--teal-pale);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 400;
}

/* Навигация */
.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.nav-link {
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 30px;
    transition: all var(--transition);
    letter-spacing: 0.03em;
}
.nav-link:hover, .nav-link.active {
    color: var(--white);
    background: rgba(255,255,255,0.15);
}
.nav-link--cta {
    background: var(--rose);
    color: var(--white) !important;
    margin-left: 8px;
}
.nav-link--cta:hover { background: #c4628a; transform: translateY(-1px); }

/* Бургер */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ══════════════════════════════ HERO ════════════════════════════════════════ */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal-deep) 50%, var(--teal-mid) 100%);
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 400'%3E%3Cpath fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='2' d='M0,200 C240,80 480,320 720,200 C960,80 1200,320 1440,200'/%3E%3Cpath fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1.5' d='M0,250 C200,100 400,360 600,220 C800,80 1000,340 1200,200 C1300,130 1380,260 1440,200'/%3E%3Cpath fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1' d='M0,150 C180,50 360,300 540,150 C720,0 900,300 1080,150 C1260,0 1380,220 1440,150'/%3E%3C/svg%3E") no-repeat center / cover;
}

.hero-photo {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 100%;
    width: auto;
    max-width: none;
    mask-image: linear-gradient(to right, transparent 0%, black 20%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 64px 32px 64px 48px;
    max-width: 58%;
    color: var(--white);
}

.hero-super {
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--teal-pale);
    margin-bottom: 16px;
}

.hero-name {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.04em;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 1.05rem;
    font-weight: 300;
    color: rgba(255,255,255,0.85);
    margin-bottom: 36px;
    max-width: 440px;
    line-height: 1.8;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ══════════════════════════════ КНОПКИ ══════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 50px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-decoration: none;
}
.btn-primary {
    background: var(--rose);
    color: var(--white);
}
.btn-primary:hover { background: #c4628a; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212,120,154,0.4); color: var(--white); }

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); border-color: var(--white); color: var(--white); }

/* На белом фоне */
.about-teaser .btn-primary, .service-card .btn-primary { }
.about-teaser .btn-outline, .service-card .btn-outline {
    color: var(--teal-mid);
    border-color: var(--teal-mid);
}
.about-teaser .btn-outline:hover, .service-card .btn-outline:hover {
    background: var(--teal-mid);
    color: var(--white);
}

/* ══════════════════════════════ ПОЛОСКА КАТЕГОРИЙ ═══════════════════════════ */
.categories-strip {
    padding: 32px 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}
.categories-strip .container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.84rem;
    font-weight: 500;
    background: var(--teal-bg);
    color: var(--teal-deep);
    border: 1.5px solid var(--teal-pale);
    transition: all var(--transition);
}
.cat-chip:hover {
    background: var(--teal-mid);
    color: var(--white);
    border-color: var(--teal-mid);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(26,140,168,0.3);
}
.cat-chip-count {
    background: var(--white);
    color: var(--teal-deep);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 20px;
    min-width: 24px;
    text-align: center;
    transition: all var(--transition);
}
.cat-chip:hover .cat-chip-count { background: rgba(255,255,255,0.25); color: var(--white); }

/* ══════════════════════════════ ОБЛАКО ТЕГОВ ════════════════════════════════ */
.tag-cloud-section { background: var(--white); }

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
}

.tag-cloud-item {
    color: var(--teal-deep);
    font-weight: 500;
    padding: 5px 14px;
    border-radius: 30px;
    border: 1.5px solid var(--border);
    background: var(--off-white);
    transition: all var(--transition);
    line-height: 1.5;
    white-space: nowrap;
}
.tag-cloud-item sup {
    font-size: 0.65em;
    color: var(--text-muted);
    margin-left: 3px;
}
.tag-cloud-item:hover {
    background: var(--teal-mid);
    color: var(--white);
    border-color: var(--teal-mid);
    box-shadow: 0 3px 12px rgba(26,140,168,0.25);
}
.tag-cloud-item:hover sup { color: rgba(255,255,255,0.7); }

.tag-cloud-item--category {
    background: var(--teal-bg);
    border-color: var(--teal-pale);
    font-weight: 600;
}
.tag-cloud-item--hashtag {
    background: var(--rose-light);
    border-color: #f0c4d8;
    color: #a0527a;
}
.tag-cloud-item--hashtag:hover {
    background: var(--rose);
    color: var(--white);
    border-color: var(--rose);
    box-shadow: 0 3px 12px rgba(212,120,154,0.3);
}

/* ══════════════════════════════ КАРТОЧКИ ПОСТОВ ═════════════════════════════ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.cards-grid--wide {
    grid-template-columns: repeat(3, 1fr);
}

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-img-wrap {
    display: block;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--teal-bg);
}
.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.card:hover .card-img-wrap img { transform: scale(1.04); }

.card-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--teal-pale);
    background: linear-gradient(135deg, var(--teal-bg), var(--teal-pale));
}

.card-body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-cat {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--teal-mid);
    margin-bottom: 8px;
}
.card-cat:hover { color: var(--rose); }

.card-title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 12px;
    flex: 1;
}
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--teal-mid); }

.card-meta {
    display: flex;
    gap: 14px;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: auto;
}
.card-react { color: var(--rose); font-weight: 500; }

/* ══════════════════════════════ БЛОК "ОБО МНЕ" (тизер) ════════════════════ */
.about-teaser { background: var(--off-white); }
.about-teaser-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-teaser-text h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--teal-dark);
    margin-bottom: 20px;
}
.about-teaser-text p {
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.8;
}
.about-teaser-text .btn { margin-top: 10px; }
.about-teaser-text .btn-primary {
    background: var(--teal-mid);
    color: var(--white);
}
.about-teaser-text .btn-primary:hover { background: var(--teal-deep); color: var(--white); }
.about-teaser-img img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: top;
}

/* ══════════════════════════════ ПОДВАЛ ══════════════════════════════════════ */
.site-footer { background: var(--teal-dark); color: var(--white); position: relative; }
.footer-wave { margin-bottom: -4px; line-height: 0; }
.footer-wave svg { display: block; width: 100%; }

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding: 52px 32px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}
.footer-tagline { font-size: 0.8rem; color: var(--teal-pale); letter-spacing: 0.1em; }

.footer-contact-title {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--teal-pale);
    margin-bottom: 14px;
    font-weight: 500;
}
.footer-phone {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
}
.footer-phone:hover { color: var(--teal-light); }

.footer-socials { display: flex; flex-direction: column; gap: 10px; }
.footer-social {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    transition: color var(--transition);
}
.footer-social:hover { color: var(--white); }
.footer-social--tg:hover { color: #2AABEE; }
.footer-social--vk:hover { color: #4a76a8; }

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-nav a {
    color: rgba(255,255,255,0.7);
    font-size: 0.88rem;
    transition: color var(--transition);
}
.footer-nav a:hover { color: var(--white); }

.footer-copy {
    text-align: center;
    padding: 16px 32px 24px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.35);
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* ══════════════════════════════ ШАПКА СТРАНИЦ ═══════════════════════════════ */
.page-header {
    background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal-deep) 100%);
    color: var(--white);
    padding: 48px 0 40px;
}
.page-header--post { padding: 24px 0 20px; }
.breadcrumb {
    font-size: 0.8rem;
    color: var(--teal-pale);
    margin-bottom: 10px;
}
.breadcrumb a { color: var(--teal-pale); }
.breadcrumb a:hover { color: var(--white); }
.page-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
}
.page-subtitle { color: var(--teal-pale); margin-top: 8px; font-weight: 300; }
.page-count { font-size: 0.85rem; color: var(--teal-pale); margin-top: 8px; }

/* ══════════════════════════════ СОРТИРОВКА / ПАГИНАЦИЯ ════════════════════ */
.sort-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.sort-link {
    padding: 5px 14px;
    border-radius: 30px;
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    font-weight: 500;
    transition: all var(--transition);
}
.sort-link:hover, .sort-link.active {
    background: var(--teal-mid);
    color: var(--white);
    border-color: var(--teal-mid);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
    flex-wrap: wrap;
}
.pagination-item {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all var(--transition);
}
.pagination-item:hover, .pagination-item.active {
    background: var(--teal-mid);
    color: var(--white);
    border-color: var(--teal-mid);
}

.empty-msg {
    text-align: center;
    color: var(--text-muted);
    padding: 60px 0;
    font-size: 1.1rem;
}

/* ══════════════════════════════ ЕДИНИЦА ПОСТА ═══════════════════════════════ */
.post-article { margin-bottom: 60px; }

.post-header { margin-bottom: 32px; }
.post-cat {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--teal-mid);
    display: block;
    margin-bottom: 12px;
}
.post-title {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--teal-dark);
    margin-bottom: 16px;
}
.post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.82rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.post-react { color: var(--rose); font-weight: 500; }
.post-source {
    background: var(--teal-bg);
    color: var(--teal-deep);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.post-image-wrap {
    margin: 0 -20px 36px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.post-image {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Видео ────────────────────────────────────────────────────────── */
.post-video-list {
    margin: 0 -20px 36px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.post-video-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
}
.post-video-wrap video {
    width: 100%;
    max-height: 70vh;
    display: block;
}
.post-video-wrap iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
}

/* ── Галерея нескольких фото ──────────────────────────────────────── */
.post-gallery {
    display: grid;
    gap: 6px;
    margin: 0 -20px 36px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* 2 фото — два столбца */
.post-gallery:has(> :nth-child(2):last-child) {
    grid-template-columns: 1fr 1fr;
}
/* 3 фото — первое широкое, два снизу */
.post-gallery:has(> :nth-child(3):last-child) {
    grid-template-columns: 1fr 1fr;
}
.post-gallery:has(> :nth-child(3):last-child) .post-gallery-item:first-child {
    grid-column: 1 / -1;
}
/* 4 фото — сетка 2×2 */
.post-gallery:has(> :nth-child(4):last-child) {
    grid-template-columns: 1fr 1fr;
}
/* 5+ фото — три столбца */
.post-gallery:has(> :nth-child(5)) {
    grid-template-columns: repeat(3, 1fr);
}

.post-gallery-item {
    display: block;
    overflow: hidden;
    background: var(--teal-bg);
}

.post-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}
.post-gallery-item:hover img {
    transform: scale(1.04);
}

.post-videos { margin-bottom: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.post-videos .btn-outline,
.post-video-list .btn-outline {
    color: var(--teal-mid);
    border-color: var(--teal-mid);
}
.post-videos .btn-outline:hover,
.post-video-list .btn-outline:hover { background: var(--teal-mid); color: var(--white); }

/* Превью VK-видео с кнопкой воспроизведения */
.vk-video-thumb {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    max-width: 560px;
    margin-bottom: 8px;
}
.vk-video-thumb img {
    display: block;
    width: 100%;
    height: auto;
    transition: filter 0.2s;
}
.vk-video-thumb:hover img { filter: brightness(0.75); }
.vk-video-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
    pointer-events: none;
    transition: transform 0.2s;
}
.vk-video-thumb:hover .vk-video-play { transform: scale(1.12); }

.post-body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text);
    margin-bottom: 36px;
}
.post-body p { margin-bottom: 1.2em; }
.post-body a { color: var(--teal-mid); text-decoration: underline; text-underline-offset: 3px; }
.post-body strong { font-weight: 600; }

.post-links {
    background: var(--teal-bg);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 28px;
    font-size: 0.9rem;
}
.post-links strong { display: block; margin-bottom: 10px; color: var(--teal-deep); }
.post-links li { margin-bottom: 6px; }
.post-links a { word-break: break-all; }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.tag-pill {
    padding: 5px 14px;
    border-radius: 30px;
    background: var(--rose-light);
    color: #a0527a;
    font-size: 0.82rem;
    font-weight: 500;
    border: 1px solid #f0c4d8;
    transition: all var(--transition);
}
.tag-pill:hover { background: var(--rose); color: var(--white); border-color: var(--rose); }

.post-source-link { margin-bottom: 40px; }
.post-source-link .btn-outline {
    color: var(--teal-mid);
    border-color: var(--teal-mid);
}
.post-source-link .btn-outline:hover { background: var(--teal-mid); color: var(--white); }

/* Навигация между постами */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}
.post-nav-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 20px;
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    background: var(--white);
    transition: all var(--transition);
}
.post-nav-item:hover { border-color: var(--teal-mid); background: var(--teal-bg); }
.post-nav-item--next { text-align: right; }
.post-nav-dir { font-size: 0.75rem; color: var(--teal-mid); font-weight: 600; letter-spacing: 0.05em; }
.post-nav-title { font-size: 0.88rem; color: var(--text); font-weight: 500; line-height: 1.4; }

/* ══════════════════════════════ СТРАНИЦА "ОБО МНЕ" ═════════════════════════ */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 60px;
    align-items: start;
}
.about-photo {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: top;
}
.about-text-col h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--teal-dark);
    margin-bottom: 4px;
}
.about-subtitle {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-mid);
    margin-bottom: 24px;
    font-weight: 500;
}
.about-text-col p { color: var(--text-muted); margin-bottom: 14px; line-height: 1.8; }
.about-text-col .btn-primary {
    background: var(--teal-mid);
    color: var(--white);
    margin-top: 12px;
}
.about-text-col .btn-primary:hover { background: var(--teal-deep); color: var(--white); }

.about-facts {
    display: flex;
    gap: 32px;
    margin: 28px 0 24px;
    flex-wrap: wrap;
}
.about-fact { display: flex; flex-direction: column; }
.about-fact-num {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--teal-mid);
    line-height: 1;
}
.about-fact-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 4px;
}

.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.pillar {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    box-shadow: var(--shadow);
    text-align: center;
}
.pillar-icon { font-size: 2.4rem; margin-bottom: 14px; }
.pillar h3 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--teal-dark);
    margin-bottom: 10px;
}
.pillar p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }

/* ══════════════════════════════ УСЛУГИ ══════════════════════════════════════ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    box-shadow: var(--shadow);
    border: 1.5px solid var(--border);
    transition: all var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--teal-pale); }
.service-card--featured {
    background: linear-gradient(135deg, var(--teal-bg) 0%, #d6f0f7 100%);
    border-color: var(--teal-pale);
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: start;
}
.service-card--featured .service-card-header { grid-column: 1 / -1; }
.service-card--featured p { grid-column: 1; }
.service-card--featured ul { grid-column: 1; }
.service-card--featured a { justify-self: start; }

.service-card--cta {
    background: linear-gradient(135deg, var(--teal-dark), var(--teal-deep));
    color: var(--white);
    border-color: var(--teal-deep);
}
.service-card--cta h2, .service-card--cta p { color: var(--white); }
.service-card--cta p { opacity: 0.85; }

.service-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}
.service-icon { font-size: 1.6rem; flex-shrink: 0; }
.service-card-header h2 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--teal-dark);
    line-height: 1.3;
}
.service-card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.7; margin-bottom: 16px; }
.service-list { margin-bottom: 24px; display: flex; flex-direction: column; gap: 6px; }
.service-list li {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-left: 18px;
    position: relative;
}
.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--teal-mid);
    font-weight: 700;
}
.service-contacts { display: flex; gap: 12px; flex-wrap: wrap; }

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.step {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px 22px;
    box-shadow: var(--shadow);
    text-align: center;
}
.step-num {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--teal-pale);
    line-height: 1;
    margin-bottom: 14px;
}
.step h3 { font-size: 1rem; color: var(--teal-dark); margin-bottom: 10px; font-weight: 600; }
.step p  { font-size: 0.84rem; color: var(--text-muted); line-height: 1.65; }

/* ══════════════════════════════ АДАПТИВ ════════════════════════════════════ */
@media (max-width: 1024px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .hero-photo { max-width: none; }
    .hero-content { max-width: 60%; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-inner > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .header-inner { padding: 14px 20px; }
    .site-nav {
        position: fixed;
        top: 0; right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--teal-dark);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 24px 40px;
        gap: 6px;
        transition: right 0.3s ease;
        z-index: 200;
        box-shadow: -8px 0 40px rgba(0,0,0,0.3);
    }
    .nav-open .site-nav { right: 0; }
    .nav-link { width: 100%; padding: 12px 16px; font-size: 1rem; border-radius: 10px; }
    .nav-link--cta { margin-left: 0; }
    .search-btn { width: 34px; height: 34px; }

    .hero { min-height: auto; }
    .hero-photo { display: none; }
    .hero-content { max-width: 100%; padding: 48px 24px; }

    .cards-grid { grid-template-columns: 1fr; }
    .about-teaser-inner { grid-template-columns: 1fr; }
    .about-teaser-img { display: none; }
    .about-layout { grid-template-columns: 1fr; }
    .about-photo-col { display: none; }
    .pillars { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .service-card--featured { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr 1fr; }

    .footer-inner { grid-template-columns: 1fr; gap: 32px; padding: 40px 24px 32px; }
    .post-nav { grid-template-columns: 1fr; }
    .post-image-wrap { margin: 0 0 28px; border-radius: var(--radius); }
}

@media (max-width: 480px) {
    .hero-content { padding: 36px 20px; }
    .hero-actions { flex-direction: column; }
    .section { padding: 44px 0; }
    .categories-strip { padding: 20px 0; }
    .steps { grid-template-columns: 1fr; }
    .about-facts { gap: 20px; }
    .post-nav { gap: 10px; }

    .search-bar { padding: 10px 0; }
    .search-bar .container { padding: 0 14px; }
    .search-bar-form { padding: 8px 12px; gap: 6px; }
    .search-bar-icon { display: none; }
    .search-bar-form button[type="submit"] { padding: 5px 12px; font-size: 0.82rem; }
}

/* ══════════════════════════════ ПОИСК ══════════════════════════════════════ */

/* Группа кнопок справа в шапке */
.header-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Кнопка поиска */
.search-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.9);
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.search-btn:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.4);
    transform: scale(1.07);
}
.search-btn[aria-expanded="true"] {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
}

/* Выезжающая строка поиска — скрыта по умолчанию */
.search-bar {
    display: none;
    position: relative;
    z-index: 10;
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 12px 0;
    animation: searchSlideIn 0.2s ease;
}
.search-bar.open { display: block; }

@keyframes searchSlideIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.search-bar-form {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 30px;
    padding: 10px 18px;
    transition: border-color 0.2s;
}
.search-bar-form:focus-within {
    border-color: rgba(255,255,255,0.55);
    background: rgba(255,255,255,0.16);
}
.search-bar-icon { color: rgba(255,255,255,0.6); flex-shrink: 0; }

.search-bar-form input[type="search"] {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 1rem;
    min-width: 0;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
}
.search-bar-form input[type="search"]::placeholder { color: rgba(255,255,255,0.45); }
.search-bar-form input[type="search"]::-webkit-search-cancel-button,
.search-bar-form input[type="search"]::-webkit-search-decoration { display: none; }

.search-bar-form button[type="submit"] {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    cursor: pointer;
    border-radius: 20px;
    padding: 6px 18px;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.2s;
    -webkit-appearance: none;
    appearance: none;
}
.search-bar-form button[type="submit"]:hover { background: rgba(255,255,255,0.32); }

.search-bar-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    font-size: 1rem;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.15s;
    flex-shrink: 0;
    -webkit-appearance: none;
    appearance: none;
}
.search-bar-close:hover { color: #fff; }

/* Форма поиска на странице /search/ */
.search-form-page {
    display: flex;
    gap: 10px;
    max-width: 640px;
    margin-bottom: 28px;
}
.search-form-page input[type="search"] {
    flex: 1;
    padding: 13px 22px;
    border: 2px solid var(--teal-pale);
    border-radius: 30px;
    font-family: var(--font-sans);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: var(--text);
    min-width: 0;
}
.search-form-page input[type="search"]:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(32,178,170,0.15);
}
.search-form-page button {
    background: var(--teal);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 13px 28px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}
.search-form-page button:hover { background: var(--teal-dark); transform: translateY(-1px); }

.search-count {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 24px;
}

@media (max-width: 480px) {
    .search-form-page { flex-direction: column; }
    .search-form-page button { width: 100%; justify-content: center; display: flex; }
}
