/* Основные стили для сайта Полиграф-Краснодар */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    scroll-behavior: smooth;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    -webkit-user-select: none;
    user-select: none;
}

input, textarea, select, .assistant-input input {
    -webkit-user-select: text;
    user-select: text;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Шапка — в стиле обложки ВК */
header {
    background: #071433;
    color: #fff;
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 #c8102e, 0 8px 24px rgba(0, 0, 0, 0.28);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header-info {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 250px;
}

.logo-container {
    margin-right: 18px;
    padding: 0;
    background: none;
    border: none;
    line-height: 0;
}

.logo {
    height: 72px;
    width: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    box-shadow: none;
    background: #071433;
}

.logo:hover {
    opacity: 0.92;
}

.header-text h1,
.header-text .site-brand {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 1.02rem;
    line-height: 1.2;
    margin: 0;
    letter-spacing: 0.16em;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    color: #ffffff;
    position: relative;
    padding-bottom: 0.55rem;
}

.header-text .site-brand {
    font-style: normal;
    opacity: 1;
}

.header-text .site-brand span,
.header-text h1 span {
    display: block;
}

.header-text .site-brand span:last-child,
.header-text h1.site-brand span:last-child {
    position: relative;
    width: fit-content;
    padding-bottom: 0.45rem;
}

.header-text .site-brand::after,
.header-text h1.site-brand::after {
    display: none;
}

.header-text .site-brand span:last-child::after,
.header-text h1.site-brand span:last-child::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: #c8102e;
}

.header-text p,
.header-text .site-tagline {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.7;
    font-style: normal;
    margin: 0.45rem 0 0;
    font-weight: 500;
}

.header-phone {
    margin-left: 20px;
}

.header-phone a,
.header-phone a:visited,
.header-phone a:focus,
.header-phone a:focus-visible {
    display: inline-block;
    background: transparent;
    color: #fff;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 2px;
    font-weight: 600;
    letter-spacing: 0.08em;
    border: 1px solid #c8102e;
    box-shadow: none;
    outline: none;
    transition: background 0.2s ease, color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .header-phone a:hover {
        background: #c8102e;
        color: #fff;
        transform: none;
        box-shadow: none;
    }
}

.header-phone a:active {
    background: #c8102e;
    color: #fff;
}

/* Основной блок */
.hero {
    background:
        linear-gradient(rgba(7, 20, 51, 0.62), rgba(7, 20, 51, 0.62)),
        image-set(
            url('../images/101.webp') type('image/webp'),
            url('../images/101.jpg') type('image/jpeg')
        ) center center / cover;
    background-attachment: scroll, fixed;
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    content-visibility: auto;
    contain-intrinsic-size: 420px;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(255,255,255,0.4) 100%);
}

.hero h2,
.hero p {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.detector-text {
    display: block;
    font-size: 2.2rem; /* такой же размер шрифта, как у основного заголовка */
    font-weight: 500;
    margin-top: 0.5rem;
}

.hero p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Раздел услуг */
.services {
    padding: 2.5rem 0;
}

.services h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    color: #2c3e50;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 1.5rem;
}

.service-item {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.service-item h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.service-item h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.service-item h3 a:hover {
    color: #3498db;
}

.service-item a {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
}

.service-item a:hover {
    text-decoration: underline;
}

/* Преимущества */
.advantages {
    background:
        linear-gradient(rgba(7, 20, 51, 0.74), rgba(7, 20, 51, 0.74)),
        image-set(
            url('../images/102.webp') type('image/webp'),
            url('../images/102.jpg') type('image/jpeg')
        ) center center / cover;
    background-attachment: scroll, fixed;
    padding: 3rem 0;
    color: white;
    position: relative;
}

.advantages h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2rem;
    color: #ffffff;
    position: relative;
    padding-bottom: 15px;
}

.advantages h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #3498db, #2c3e50);
    border-radius: 3px;
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.advantage-item {
    background: rgba(255, 255, 255, 0.12);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    color: white;
}

.advantage-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #2ecc71, #27ae60);
}

.advantage-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
    background: rgba(255, 255, 255, 0.15);
}

.advantage-item h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.advantage-item p {
    color: #ecf0f1;
}

/* Отзывы клиентов */
.testimonials {
    padding: 2.5rem 0;
    background-color: #fff;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    color: #2c3e50;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 1.5rem;
}

.testimonial-item {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #3498db;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
}

.testimonial-author {
    font-weight: bold;
    text-align: right;
    color: #2c3e50;
}

.testimonial-meta {
    display: block;
    font-weight: 500;
    font-size: 0.85rem;
    color: #6b7c8d;
    margin-top: 4px;
}

.hypno-site-card {
    max-width: 900px;
    margin: 1.75rem auto 2rem;
    padding: 1.35rem 1.5rem;
    background: linear-gradient(135deg, #f0f5fb 0%, #e8f0f8 100%);
    border: 1px solid #d0dde8;
    border-radius: 12px;
}

.hypno-site-card__title {
    margin: 0 0 0.65rem;
    font-size: 1.25rem;
    color: #1a2a4c;
    text-align: left;
}

.hypno-site-card__title::after {
    display: none;
}

.hypno-site-card p {
    margin: 0 0 0.85rem;
    line-height: 1.65;
    color: #445;
}

.hypno-site-card a:not(.shop-btn) {
    color: #1a6bb5;
    font-weight: 600;
}

/* FAQ SEO block */
.faq {
    padding: 2.5rem 0 3rem;
    background: #fff;
}

.faq h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #1a2a4c;
}

.faq details {
    max-width: 800px;
    margin: 0 auto 12px;
    padding: 14px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}

.faq summary {
    cursor: pointer;
    font-weight: 600;
    color: #1a2a4c;
}

.faq details p {
    margin-top: 10px;
    color: #334155;
    line-height: 1.55;
}

.seo-about {
    padding: 2.2rem 0;
    background: #eef3f8;
}

.seo-about h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #1a2a4c;
}

.seo-about p {
    max-width: 900px;
    margin: 0 auto 0.9rem;
    line-height: 1.65;
    color: #2c3e50;
}

.map-load-btn {
    display: block;
    width: 100%;
    min-height: 220px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #1a2a4c, #3498db);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
}

.map-load-btn:hover {
    filter: brightness(1.05);
}

.header-text .site-brand {
    font-size: 1.02rem;
    margin: 0;
    letter-spacing: 0.16em;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    color: #ffffff;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.35);
    position: relative;
    z-index: 1;
}

.hero p.hero-lead {
    font-size: 1.25rem;
    max-width: 720px;
}

.hero p.hero-note {
    font-size: 0.95rem;
    max-width: 720px;
    opacity: 0.78;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 28px;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0 1.1rem;
    position: relative;
    z-index: 1;
}

.hero .messenger-btn--book {
    margin-bottom: 0;
}

.hero-phone,
.hero-phone:visited,
.hero-phone:focus {
    color: #fff;
    font-weight: 600;
    font-size: 1.15rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

@media (hover: hover) and (pointer: fine) {
    .hero-phone:hover {
        border-bottom-color: #fff;
    }
}

/* Блок контактов */
.contact {
    padding: 3rem 0;
    background:
        linear-gradient(rgba(7, 20, 51, 0.78), rgba(7, 20, 51, 0.78)),
        image-set(
            url('../images/103.webp') type('image/webp'),
            url('../images/103.jpg') type('image/jpeg')
        ) center center / cover;
    background-attachment: scroll, fixed;
    color: white;
    position: relative;
}

.contact h2, .contact h3 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: #ffffff;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 10px;
}

.contact h2::after, .contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #3498db;
    border-radius: 2px;
}

.contact-description {
    text-align: center;
    font-style: italic;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    color: #ecf0f1;
}

.contact-details {
    background: rgba(255, 255, 255, 0.12);
    padding: 30px;
    border-radius: 12px;
    max-width: 600px;
    margin: 25px auto 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-details h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff;
    font-size: 1.4rem;
}

.contact-details ul {
    list-style: none;
    text-align: center;
    margin: 0;
    padding: 0;
}

.contact-details li {
    margin: 12px 0;
    font-size: 1.1rem;
    padding: 8px 0;
    line-height: 1.4;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    color: #ecf0f1;
}

.contact-details li:last-child {
    border-bottom: none;
}

.contact a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 500;
}

.contact a:hover {
    color: #2c3e50;
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}

.messenger-round-wrap {
    margin: 22px 0 8px;
    text-align: center;
}

.messenger-round-title {
    margin: 0 0 6px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.messenger-round-hint {
    margin: 0 0 18px;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #d5dde5;
}

.messenger-round-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 28px;
    flex-wrap: wrap;
}

.contact a.messenger-round {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0;
    border-radius: 0;
    background: none;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.contact a.messenger-round:hover {
    background: none;
    color: #fff;
    transform: none;
}

.messenger-round-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact a.messenger-round:hover .messenger-round-icon {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4);
}

.messenger-round span:last-child {
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.messenger-round--wa .messenger-round-icon {
    background: radial-gradient(circle at 30% 25%, #4ce07a, #25d366 55%, #1ebe57);
}

.messenger-round--tg .messenger-round-icon {
    background: radial-gradient(circle at 30% 25%, #6bc8ff, #2aabee 55%, #1e96d1);
}

.messenger-round--max .messenger-round-icon {
    background: radial-gradient(circle at 30% 25%, #a78bfa, #7c3aed 52%, #4f46e5);
}

.messenger-booking {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
    text-align: center;
}

.messenger-booking-title {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
}

.messenger-booking-hint {
    margin: 0 0 16px;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #d5dde5;
}

.messenger-btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.messenger-btn--book {
    background: #fff;
    color: #0b1d3a !important;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    padding: 14px 36px;
    margin-bottom: 14px;
    font-family: inherit;
}

.messenger-btn--book:hover {
    background: #e8eef6;
    color: #0b1d3a !important;
    transform: translateY(-1px);
}

.messenger-btn--max {
    background: #2f6fed;
    color: #fff !important;
    margin-bottom: 12px;
}

.messenger-btn--max:hover {
    background: #1f5ad4;
    color: #fff !important;
    transform: translateY(-1px);
}

.messenger-booking-alt {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.messenger-btn--tg {
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 0.95rem;
    padding: 10px 16px;
}

.messenger-btn--vk {
    background: #0077ff;
    color: #fff !important;
    border: 1px solid #0066dd;
    font-size: 0.95rem;
    padding: 10px 16px;
}

.messenger-btn--vk:hover {
    background: #0066dd;
    color: #fff !important;
}

.messenger-btn--tg:hover {
    background: rgba(255, 255, 255, 0.92);
    color: #1d2a3a !important;
}

.yandex-reviews-button {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.max-booking-link {
    background: #2f6fed !important;
}

.assistant-quick-btn--max {
    background: #2f6fed;
    color: #fff;
    border-color: #2f6fed;
}

.assistant-quick-btn--max:hover {
    background: #1f5ad4;
    color: #fff;
}

/* Секция с картой */
.map-section {
    padding: 3rem 0;
    background: #f8fafc;
}

.map-section h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 1.6rem;
    position: relative;
    padding-bottom: 10px;
}

.map-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #3498db;
    border-radius: 2px;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    border: 1px solid rgba(52, 152, 219, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* При клике на карту курсор должен меняться */
.map-container:hover {
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.map-place-btn {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100% - 24px);
    padding: 10px 14px;
    border: 0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(7, 20, 51, 0.22);
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.map-place-btn:hover {
    transform: translateX(-50%) translateY(-1px);
}

.map-place-btn__pin {
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: #c8102e;
}

.map-place-btn__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.map-place-btn__text strong {
    font-size: 0.98rem;
    color: #0b1d3a;
}

.map-place-btn__text span {
    font-size: 0.8rem;
    color: #5b6b7c;
}

/* Литература и статьи */
.articles-hub .articles-lead {
    max-width: 720px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 2rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
    margin: 2rem 0 2.5rem;
}

.article-card {
    background: #fff;
    border: 1px solid #e4ebf2;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 16px rgba(26, 42, 76, 0.04);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(26, 42, 76, 0.12);
}

.article-card-media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #dce6f0;
}

.article-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.article-card:hover .article-card-media img {
    transform: scale(1.04);
}

.article-card-body {
    padding: 1.25rem 1.35rem 1.45rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-card h2,
.article-card h3 {
    font-size: 1.12rem;
    margin: 0 0 0.65rem;
    line-height: 1.35;
}

.article-card h2 a,
.article-card h3 a {
    color: #1a2a4c;
    text-decoration: none;
}

.article-card h2 a:hover,
.article-card h3 a:hover {
    color: #2980b9;
}

.article-card p {
    margin: 0 0 1rem;
    color: #555;
    line-height: 1.55;
    font-size: 0.95rem;
    flex: 1;
}

.article-more {
    color: #2980b9;
    font-weight: 600;
    text-decoration: none;
    align-self: flex-start;
}

.article-more:hover {
    text-decoration: underline;
}

.article-meta {
    font-size: 0.88rem;
    margin-bottom: 0.85rem;
    color: #6b7c8f;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    align-items: center;
}

.article-meta a {
    color: #2980b9;
}

.article-kicker {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #2980b9;
    margin-bottom: 0.75rem;
}

.article-page.service-detail {
    background: transparent;
    box-shadow: none;
    padding: 2rem 0 3rem;
}

.article-page .article-shell {
    max-width: 780px;
    margin: 0 auto;
    background: #fff;
    border-radius: 18px;
    border: 1px solid #e6edf4;
    box-shadow: 0 12px 40px rgba(26, 42, 76, 0.07);
    overflow: hidden;
}

.article-page .article-shell-inner {
    padding: 0 0 2.5rem;
}

.article-page .article-hero {
    margin: 0;
    background: #1a2a4c;
}

.article-page .article-hero picture,
.article-page .article-hero img {
    display: block;
    width: 100%;
    height: auto;
}

.article-page .article-hero--square img {
    max-height: 520px;
    object-fit: cover;
    margin: 0 auto;
}

.article-page .article-content {
    padding: 1.75rem 1.75rem 0;
}

@media (min-width: 700px) {
    .article-page .article-content {
        padding: 2.25rem 3rem 0;
    }
}

.article-page.service-detail h1 {
    font-size: clamp(1.55rem, 3.2vw, 2.15rem);
    line-height: 1.25;
    margin: 0 0 1rem;
    text-align: left;
    color: #152238;
}

.article-page.service-detail h1::after {
    left: 0;
    transform: none;
    width: 72px;
    margin-top: 0.85rem;
}

.article-deck {
    font-size: 1.12rem;
    line-height: 1.65;
    color: #3d4f63;
    margin: 1.25rem 0 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e8eef4;
}

.article-page.service-detail h2 {
    font-size: 1.28rem;
    margin: 2rem 0 0.85rem;
    color: #1a2a4c;
    text-align: left;
}

.article-page.service-detail h3 {
    font-size: 1.08rem;
    margin: 1.5rem 0 0.65rem;
    color: #243652;
}

.article-page.service-detail p {
    text-align: left;
    max-width: none;
    margin: 0 0 1.05rem;
    line-height: 1.75;
    color: #334155;
}

.article-page ol,
.article-page ul {
    margin: 0.75rem 0 1.35rem 1.15rem;
    line-height: 1.75;
    color: #334155;
}

.article-page li {
    margin-bottom: 0.45rem;
}

.article-figure {
    margin: 1.75rem 0;
    border-radius: 12px;
    overflow: hidden;
    background: #eef3f8;
    border: 1px solid #e4ebf2;
}

.article-figure img {
    width: 100%;
    height: auto;
    display: block;
}

.article-figure figcaption {
    font-size: 0.86rem;
    color: #6b7c8f;
    padding: 0.7rem 1rem 0.85rem;
    line-height: 1.45;
    background: #f7fafc;
    border-top: 1px solid #e8eef4;
}

.article-callout {
    margin: 1.75rem 0;
    padding: 1.15rem 1.25rem;
    background: linear-gradient(135deg, #f0f7fc 0%, #e8f1f9 100%);
    border-left: 4px solid #3498db;
    border-radius: 0 12px 12px 0;
    color: #243652;
    line-height: 1.65;
}

.article-source {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e8eef4;
    font-size: 0.92rem;
    color: #6b7c8f;
}

.article-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 1.75rem;
    padding: 0 1.5rem;
}

.articles-preview {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #eef3f8 100%);
}

.articles-preview h2 {
    text-align: center;
    margin-bottom: 0.75rem;
}

.articles-preview > .container > .articles-lead {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Подвал */
footer {
    background: linear-gradient(135deg, #1a2a4c 0%, #2c3e50 100%);
    color: white;
    padding: 3rem 0 0;
    margin-top: 3rem;
    position: relative;
}

.privacy-links {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.2rem 0;
    text-align: right;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.privacy-links .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem 2rem;
    flex-wrap: wrap;
}

.footer-brand {
    flex: 1 1 260px;
}

.footer-name,
.footer-rights {
    margin: 0;
}

.footer-rights {
    margin-top: 0.4rem;
    font-size: 0.95rem;
    opacity: 0.88;
}

.studio-credit {
    margin-left: auto;
    text-align: right;
    flex: 0 0 auto;
    max-width: 260px;
}

.studio-credit-link {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    padding: 0.55rem 0.75rem 0.6rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.studio-credit-link:hover,
.studio-credit-link:focus-visible {
    background: rgba(0, 0, 0, 0.42);
    border-color: rgba(2, 49, 251, 0.65);
    transform: translateY(-1px);
    outline: none;
}

.studio-credit-eyebrow {
    display: block;
    width: 100%;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(197, 206, 214, 0.85);
    text-align: right;
}

.studio-credit img {
    display: block;
    margin-left: auto;
    height: 44px;
    width: auto;
    max-width: 200px;
}

.studio-credit-caption {
    margin: 0;
    font-size: 0.68rem;
    line-height: 1.35;
    color: #c5ced6;
    text-align: right;
}

.studio-credit p {
    margin: 6px 0 0;
    font-size: 0.68rem;
    line-height: 1.35;
    color: #c5ced6;
}

.privacy-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.75rem;
    margin-left: 25px;
    transition: color 0.3s;
    white-space: nowrap;
    position: relative;
}

.privacy-links a::before {
    content: "•";
    position: absolute;
    left: -15px;
    color: #3498db;
}

.privacy-links a:hover {
    color: #ecf0f1;
}

/* Кнопка "Связаться" для других страниц */
button.contact-button {
    border: none;
    font-family: inherit;
    cursor: pointer;
}

.mid-cta {
    text-align: center;
    margin: 1.75rem 0 0;
}

.contact-button {
    display: inline-block;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 10px 0;
    text-align: center;
    min-width: 150px;
}

.contact-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

/* Mobile responsiveness improvements for contact button */
@media (max-width: 768px) {
    .contact-button {
        padding: 14px 20px;
        font-size: 1rem;
        width: 100%;
        max-width: 250px;
        margin: 10px auto;
        display: block;
    }
    
    .contact-button-container {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .contact-button {
        width: 100%;
        padding: 15px;
        font-size: 1.1rem;
        max-width: 100%;
    }
    
    .contact-details {
        padding: 10px;
    }
    
    .contact-details ul {
        padding-left: 15px;
    }
    
    .contact-details li {
        margin-bottom: 12px;
        font-size: 0.95rem;
        word-break: break-word;
    }
}

/* Стили для страниц услуг */
.service-detail {
    padding: 3rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.service-detail h1 {
    margin-bottom: 2rem;
    color: #2c3e50;
    text-align: center;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 15px;
}

.service-detail h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #3498db;
    border-radius: 2px;
}

.service-detail h2 {
    margin: 2rem auto 1.2rem;
    color: #2c3e50;
    text-align: center;
    font-size: 1.35rem;
    max-width: 900px;
}

.service-detail p {
    margin-bottom: 1.8rem;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
    color: #34495e;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.service-figure {
    max-width: 900px;
    margin: 0 auto 2rem;
}

.service-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.12);
}

.service-figure figcaption {
    margin-top: 0.7rem;
    text-align: center;
    font-size: 0.95rem;
    color: #7f8c9a;
    font-style: italic;
}

@media (max-width: 768px) {
    .service-figure {
        max-width: 480px;
        margin: 0 auto 1.5rem;
    }
    .service-figure img {
        max-height: 220px;
        object-fit: cover;
        border-radius: 12px;
    }
    .service-figure figcaption {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .service-figure {
        max-width: 100%;
    }
    .service-figure img {
        max-height: 170px;
    }
}

.service-detail ul {
    margin: 1.5rem auto;
    padding-left: 1.5rem;
    max-width: 800px;
}

.service-detail li {
    margin-bottom: 0.7rem;
    line-height: 1.6;
}

/* Стили для политики конфиденциальности */
.privacy-policy {
    padding: 2.5rem 0;
}

.privacy-policy h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    text-align: center;
}

.privacy-policy h3 {
    margin: 1.5rem 0 1rem 0;
    color: #2c3e50;
}

.privacy-policy p {
    margin-bottom: 1rem;
    line-height: 1.8;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.back-link {
    margin-top: 2rem;
    text-align: center;
}

.back-link a {
    display: inline-block;
    padding: 12px 25px;
    background-color: #2c3e50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-weight: bold;
}

.back-link a:hover {
    background-color: #34495e;
}

.privacy-policy a {
    color: #3498db;
    text-decoration: none;
}

.privacy-policy a:hover {
    text-decoration: underline;
}

/* Cookie баннер */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #2c3e50 0%, #1a2a4c 100%);
    color: white;
    padding: 25px 0;
    z-index: 10000;
    font-size: 15px;
    line-height: 1.5;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.2);
}

.cookie-banner.is-visible {
    display: flex;
}

.cookie-banner[hidden] {
    display: none !important;
}

html.cookie-consent-given #cookieBanner {
    display: none !important;
}

/* Модальное окно согласия на cookie (перед записью / ботом) */
.cookie-consent-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(26, 42, 76, 0.55);
    backdrop-filter: blur(2px);
}

.cookie-consent-modal[hidden] {
    display: none !important;
}

.cookie-consent-dialog {
    width: min(480px, 100%);
    background: #fff;
    color: #2c3e50;
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.cookie-consent-dialog h2 {
    margin: 0 0 12px;
    font-size: 1.25rem;
    color: #1a2a4c;
}

.cookie-consent-dialog p {
    margin: 0 0 12px;
    line-height: 1.55;
    font-size: 0.95rem;
}

.cookie-consent-dialog a {
    color: #2980b9;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

body.cookie-modal-open {
    overflow: hidden;
}

.footer-disclaimer {
    display: block;
    text-align: center;
    font-style: italic;
    margin: 1.2rem auto 0;
    font-size: 0.85rem;
    opacity: 0.85;
    line-height: 1.45;
    max-width: 720px;
    padding: 0 1rem;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
    margin-right: 15px;
}

.cookie-text a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.cookie-text a:hover {
    color: #5dade2;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.cookie-btn.accept {
    background: linear-gradient(to right, #2ecc71, #27ae60);
    color: white;
}

.cookie-btn.decline {
    background: linear-gradient(to right, #e74c3c, #c0392b);
    color: white;
}

.cookie-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
        padding: 10px 0;
    }
    
    .header-info {
        flex-direction: column;
        margin-bottom: 10px;
    }
    
    .logo-container {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .logo {
        height: 58px;
        width: 58px;
    }

    .header-text .site-brand,
    .header-text h1 {
        font-size: 0.78rem;
        letter-spacing: 0.1em;
        align-items: center;
        text-align: center;
    }

    .header-text .site-brand span:last-child,
    .header-text h1.site-brand span:last-child {
        margin-left: auto;
        margin-right: auto;
    }

    .header-text .site-tagline,
    .header-text p {
        text-align: center;
    }
    
    .header-phone {
        margin: 15px 0 0 0;
    }
    
    .hero,
    .advantages,
    .contact {
        background-attachment: scroll;
    }

    .hero {
        padding: 2rem 0;
    }
    
    .hero h2 {
        font-size: 1.6rem;
    }
    
    .services h2, 
    .advantages h2,
    .testimonials h2 {
        font-size: 1.5rem;
    }
    
    .service-grid,
    .advantage-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .privacy-links .container {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-main {
        align-items: flex-start;
    }

    .studio-credit {
        margin-left: 0;
        text-align: left;
        max-width: none;
    }

    .studio-credit-link {
        align-items: flex-start;
    }

    .studio-credit-eyebrow,
    .studio-credit-caption {
        text-align: left;
    }

    .studio-credit img {
        margin-left: 0;
    }
    
    .privacy-links a {
        margin: 5px 10px;
        display: inline-block;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-text {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    .cookie-btn {
        margin: 5px;
    }
    
    .map-container {
        height: 300px;
    }
    
    .contact a {
        display: block;
        margin: 5px auto;
        max-width: 80%;
    }
    
    footer {
        padding: 1.5rem 0 0;
    }
    
    .contact-details {
        padding: 15px;
    }
    
    .contact-description {
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.4rem;
    }
    
    .map-container {
        height: 250px;
    }
    
    .service-item,
    .advantage-item,
    .testimonial-item {
        padding: 20px 15px;
    }
    
    .header-text h1,
    .header-text .site-brand {
        font-size: 0.72rem;
        letter-spacing: 0.08em;
    }
    
    .privacy-links a {
        font-size: 0.65rem;
        margin: 3px 5px;
    }
}

/* Стили для карусели документов */
.documents {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
}

.documents h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2rem;
    color: #2c3e50;
    position: relative;
    padding-bottom: 15px;
}

.documents h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #3498db, #2c3e50);
    border-radius: 3px;
}

.carousel-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 25px 0;
    border-radius: 12px;
    background: white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    content-visibility: auto;
    contain-intrinsic-size: 260px;
}

.carousel {
    display: flex;
    animation: slide 60s linear infinite;
    width: max-content;
    will-change: transform;
}

.carousel.is-paused,
.carousel-container:hover .carousel {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .hero,
    .advantages,
    .contact {
        background-attachment: scroll;
    }

    .carousel {
        animation: none;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
        gap: 12px;
    }
    .carousel-slide {
        min-width: 140px;
        margin-right: 0;
    }
}

.carousel-slide {
    min-width: 220px;
    width: 220px;
    margin-right: 16px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    contain: content;
}

.carousel-slide picture,
.carousel-slide img {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
}

.carousel-slide img {
    transition: transform 0.25s ease;
}

@media (hover: hover) {
    .carousel-slide img:hover {
        transform: scale(1.03);
    }
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Модальное окно для просмотра изображений */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
}

.close:hover {
    color: #bbb;
}

/* Адаптивность для карусели */
@media (max-width: 768px) {
    .carousel-slide {
        min-width: 250px;
    }
    
    .carousel-slide img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .carousel-slide {
        min-width: 200px;
    }
    
    .carousel-slide img {
        height: 150px;
    }
    
    .documents h2 {
        font-size: 1.5rem;
    }
}

/* Стили для кнопки "Отзывы на Яндексе" */
.yandex-reviews-button {
    text-align: center;
    margin-top: 2.5rem;
}

.yandex-review-link {
    display: inline-block;
    background: linear-gradient(to right, #ffcc00, #ffda33);
    color: #000;
    text-decoration: none;
    padding: 14px 30px;
    border-radius: 30px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.3);
    border: 1px solid #e6b800;
    letter-spacing: 0.5px;
}

.yandex-review-link:hover {
    background: linear-gradient(to right, #ffe04d, #ffe866);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(255, 204, 0, 0.4);
}

/* Адаптивность для кнопки Яндекс */
@media (max-width: 768px) {
    .yandex-review-link {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .yandex-review-link {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

/* Стили для модального окна маршрута */
.route-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.route-modal-content {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.route-modal-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.4rem;
}

.route-modal-content p {
    margin-bottom: 20px;
    color: #7f8c8d;
}

.route-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.route-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.route-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.yandex-maps {
    background-color: #ffcc00;
    color: #000;
}

.yandex-navi {
    background-color: #f00;
    color: white;
}

.max-hint-content {
    position: relative;
    text-align: left;
}

.max-hint-content h3 {
    padding-right: 28px;
}

.max-hint-content p {
    color: #2c3e50;
    line-height: 1.5;
    margin-bottom: 12px;
}

.max-hint-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: none;
    font-size: 28px;
    line-height: 1;
    color: #6b7c8d;
    cursor: pointer;
}

.max-hint-copy {
    background: #eef2f6;
    color: #1a2a4c;
}

.max-hint-open {
    background: #4b6bfb;
    color: #fff;
}

.dgis {
    background-color: #00a650;
    color: white;
}

.google-maps {
    background-color: #4285f4;
    color: white;
}

.cancel {
    background-color: #95a5a6;
    color: white;
}

/* Адаптивность для модального окна маршрута */
@media (max-width: 480px) {
    .route-modal-content {
        padding: 20px 15px;
        margin: 0 10px;
    }
    
    .route-btn {
        padding: 10px 15px;
    }
}

/* ===== Онлайн-помощник ===== */
.assistant-root {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.assistant-toggle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: #1a2a4c;
    color: white;
    cursor: pointer;
    box-shadow: 0 0 0 3px #2ecc71, 0 6px 22px rgba(26, 42, 76, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    position: relative;
    padding: 0;
    overflow: visible;
    animation: assistant-online-glow 2.4s ease-out infinite;
}

.assistant-toggle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.assistant-status {
    position: absolute;
    right: 1px;
    bottom: 1px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #2ecc71;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(26, 42, 76, 0.15);
    pointer-events: none;
    z-index: 2;
}

.assistant-toggle:hover {
    transform: scale(1.08);
}

.assistant-toggle--busy {
    animation: assistant-busy-glow 0.85s ease-out 2;
    box-shadow: 0 0 0 3px #c8102e, 0 6px 22px rgba(200, 16, 46, 0.35);
}

.assistant-toggle--busy .assistant-status {
    background: #c8102e;
}

@keyframes assistant-online-glow {
    0% { box-shadow: 0 0 0 3px #2ecc71, 0 0 0 3px rgba(46, 204, 113, 0.45), 0 6px 22px rgba(26, 42, 76, 0.4); }
    70% { box-shadow: 0 0 0 3px #2ecc71, 0 0 0 12px rgba(46, 204, 113, 0), 0 6px 22px rgba(26, 42, 76, 0.4); }
    100% { box-shadow: 0 0 0 3px #2ecc71, 0 0 0 3px rgba(46, 204, 113, 0), 0 6px 22px rgba(26, 42, 76, 0.4); }
}

@keyframes assistant-busy-glow {
    0% { box-shadow: 0 0 0 3px #c8102e, 0 0 0 3px rgba(200, 16, 46, 0.5), 0 6px 22px rgba(200, 16, 46, 0.3); }
    70% { box-shadow: 0 0 0 3px #c8102e, 0 0 0 12px rgba(200, 16, 46, 0), 0 6px 22px rgba(200, 16, 46, 0.3); }
    100% { box-shadow: 0 0 0 3px #c8102e, 0 0 0 3px rgba(200, 16, 46, 0), 0 6px 22px rgba(200, 16, 46, 0.3); }
}

@media (prefers-reduced-motion: reduce) {
    .assistant-toggle,
    .assistant-toggle--busy {
        animation: none;
    }
}

.assistant-panel {
    position: absolute;
    bottom: 72px;
    right: 0;
    width: 360px;
    max-width: calc(100vw - 32px);
    height: 520px;
    max-height: calc(100vh - 120px);
    background: white;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(52, 152, 219, 0.15);
    animation: assistant-slide-up 0.3s ease;
}

.assistant-panel[hidden] {
    display: none !important;
}

@keyframes assistant-slide-up {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.assistant-header {
    background: linear-gradient(135deg, #1a2a4c, #2c3e50);
    color: white;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.assistant-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1a2a4c;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px #2ecc71;
    position: relative;
}

.assistant-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.assistant-avatar::after {
    content: "";
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2ecc71;
    border: 2px solid #1a2a4c;
}

.assistant-header-text {
    flex: 1;
    min-width: 0;
}

.assistant-header-text strong {
    display: block;
    font-size: 15px;
}

.assistant-header-text span {
    font-size: 12px;
    opacity: 0.8;
}

.assistant-close {
    background: none;
    border: none;
    color: white;
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    padding: 0 4px;
}

.assistant-close:hover {
    opacity: 1;
}

.assistant-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f8fafc;
}

.assistant-msg {
    max-width: 88%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.55;
    word-wrap: break-word;
}

.assistant-msg--bot {
    align-self: flex-start;
    background: white;
    color: #2c3e50;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.assistant-msg--user {
    align-self: flex-end;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-bottom-right-radius: 4px;
}

.assistant-typing {
    display: flex;
    gap: 5px;
    padding: 14px 18px;
}

.assistant-typing span {
    width: 8px;
    height: 8px;
    background: #bdc3c7;
    border-radius: 50%;
    animation: assistant-dot 1.2s infinite;
}

.assistant-typing span:nth-child(2) { animation-delay: 0.2s; }
.assistant-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes assistant-dot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

.assistant-quick-replies {
    padding: 8px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-top: 1px solid #eef2f7;
    background: white;
    flex-shrink: 0;
    max-height: 120px;
    overflow-y: auto;
}

.assistant-quick-btn {
    border: 1px solid #d5e8f7;
    background: #f0f8ff;
    color: #2c3e50;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.assistant-quick-btn:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.assistant-quick-btn--action {
    background: #eafaf1;
    border-color: #a9dfbf;
}

.assistant-quick-btn--messenger {
    background: #f4f0ff;
    border-color: #c9b8f0;
}

.assistant-quick-btn--messenger:hover {
    background: #7e57c2;
    border-color: #7e57c2;
}

.assistant-ai-hint {
    width: 100%;
    font-size: 11px;
    color: #95a5a6;
    text-align: center;
    margin: 4px 0 0;
}

.assistant-input {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #eef2f7;
    background: white;
    flex-shrink: 0;
}

.assistant-input input {
    flex: 1;
    border: 1px solid #dde4ec;
    border-radius: 24px;
    padding: 10px 16px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.assistant-input input:focus {
    border-color: #3498db;
}

.assistant-input button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.assistant-input button:hover {
    transform: scale(1.05);
}

.assistant-highlight {
    animation: assistant-highlight-pulse 1s ease 3;
    outline: 3px solid #3498db;
    outline-offset: 4px;
    border-radius: 12px;
}

@keyframes assistant-highlight-pulse {
    0%, 100% { outline-color: #3498db; }
    50% { outline-color: #2ecc71; }
}

@media (max-width: 768px) {
    .assistant-root {
        bottom: 80px;
        right: 12px;
        left: 12px;
    }

    .assistant-panel {
        left: 0;
        right: 0;
        width: auto;
        max-width: none;
        height: auto;
        max-height: min(420px, calc(100svh - 148px));
        bottom: 62px;
    }

    .assistant-header {
        padding: 10px 12px;
    }

    .assistant-close {
        min-width: 36px;
        min-height: 36px;
        font-size: 28px;
    }

    .assistant-messages {
        flex: 0 1 auto;
        min-height: 64px;
        max-height: 140px;
        padding: 12px;
    }

    .assistant-toggle {
        width: 54px;
        height: 54px;
    }
}

/* Смещение помощника при открытом cookie-баннере */
body:has(.cookie-banner.is-visible) .assistant-root {
    bottom: 100px;
}

@media (max-width: 768px) {
    body:has(.cookie-banner.is-visible) .assistant-root {
        bottom: 168px;
    }
}

.back-to-top {
    position: fixed;
    left: 16px;
    right: auto;
    bottom: 24px;
    z-index: 90;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(200, 16, 46, 0.4);
    border-radius: 50%;
    background: rgba(7, 20, 51, 0.42);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}

.back-to-top:hover,
.back-to-top:focus-visible {
    background: rgba(7, 20, 51, 0.72);
    outline: none;
}

body:has(.cookie-banner.is-visible) .back-to-top {
    bottom: 110px;
}

@media (max-width: 480px) {
    .back-to-top {
        left: 10px;
        bottom: 18px;
        width: 40px;
        height: 40px;
    }
}

/* ——— Магазин программ ——— */
.shop-section {
    padding: 2.5rem 0 3rem;
}

.shop-lead {
    max-width: 720px;
    margin: 0 auto 2rem;
    text-align: center;
    line-height: 1.7;
    color: #555;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0 2rem;
}

.shop-card {
    background: #f8fafc;
    border: 1px solid #e8eef4;
    border-radius: 12px;
    padding: 1.5rem 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.shop-card h2 {
    margin: 0;
    font-size: 1.25rem;
    color: #1a2a4c;
}

.shop-card h2 a {
    color: inherit;
    text-decoration: none;
}

.shop-card h2 a:hover {
    color: #3498db;
}

.shop-card-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a2a4c;
}

.shop-card ul {
    margin: 0;
    padding-left: 1.2rem;
    color: #555;
    line-height: 1.55;
    flex: 1;
}

.shop-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.shop-btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.shop-btn--primary {
    background: #1a2a4c;
    color: #fff;
}

.shop-btn--primary:hover {
    background: #2c3e50;
    color: #fff;
}

.shop-btn--ghost {
    background: transparent;
    color: #1a2a4c;
    border: 1px solid #c5d0dc;
}

.shop-btn--ghost:hover {
    border-color: #1a2a4c;
}

.shop-btn--disabled,
.shop-btn:disabled {
    background: #94a3b8;
    color: #fff;
    cursor: not-allowed;
    pointer-events: none;
}

.shop-notice {
    max-width: 720px;
    margin: 0 auto 1.5rem;
    padding: 0.9rem 1.1rem;
    background: #fff8e6;
    border: 1px solid #f0d78c;
    border-radius: 8px;
    color: #5c4a1a;
    line-height: 1.55;
    font-size: 0.95rem;
}

.shop-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0 2rem;
}

.shop-tier {
    border: 1px solid #e8eef4;
    border-radius: 12px;
    padding: 1.35rem 1.2rem;
    background: #fff;
}

.shop-tier h3 {
    margin: 0 0 0.35rem;
    color: #1a2a4c;
}

.shop-tier-price {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0.4rem 0;
    color: #1a2a4c;
}

.shop-tier-summary {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.shop-meta {
    margin: 1rem 0;
    padding: 1rem 1.15rem;
    background: #f8fafc;
    border-radius: 8px;
    line-height: 1.6;
}

.shop-meta dt {
    font-weight: 700;
    color: #1a2a4c;
    margin-top: 0.5rem;
}

.shop-meta dt:first-child {
    margin-top: 0;
}

.shop-meta dd {
    margin: 0.15rem 0 0;
    color: #555;
}

.shop-legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    justify-content: center;
    margin: 1.5rem 0 0;
    font-size: 0.9rem;
}

.shop-legal-nav a {
    color: #3498db;
}

.privacy-links a + a::before {
    content: none;
}

.privacy-links .container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    justify-content: center;
    align-items: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: 20px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.header-actions .header-phone {
    margin-left: 0;
}

.shop-cart-link {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 2px;
    font-weight: 600;
    letter-spacing: 0.06em;
    border: 1px solid rgba(255, 255, 255, 0.35);
    white-space: nowrap;
}

.shop-cart-link:hover,
.shop-cart-link:visited {
    color: #fff;
}

.shop-cart-count {
    display: inline-block;
    min-width: 1.25rem;
    padding: 0 0.35rem;
    margin-left: 0.2rem;
    border-radius: 999px;
    background: #c8102e;
    color: #fff;
    font-size: 0.8rem;
    line-height: 1.25rem;
    text-align: center;
}

.shop-notice--ok {
    background: #eef7f0;
    border-color: #b7ddc0;
    color: #1e4d2b;
}

.shop-tier-pick {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    font-size: 0.9rem;
    color: #333;
}

.shop-tier-pick select {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid #c5d0dc;
    border-radius: 6px;
    background: #fff;
}

.shop-cart-table {
    width: 100%;
    max-width: 760px;
    margin: 0 auto 1.25rem;
    border-collapse: collapse;
}

.shop-cart-table th,
.shop-cart-table td {
    padding: 0.7rem 0.55rem;
    border-bottom: 1px solid #e8eef4;
    text-align: left;
    vertical-align: middle;
}

.shop-qty {
    width: 4.2rem;
    padding: 6px 8px;
    border: 1px solid #c5d0dc;
    border-radius: 6px;
}

.shop-cart-total {
    max-width: 760px;
    margin: 0 auto 1.5rem;
    text-align: right;
    font-size: 1.15rem;
}

.shop-checkout {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.shop-checkout label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-weight: 600;
    color: #1a2a4c;
}

.shop-checkout input[type="text"],
.shop-checkout input[type="email"],
.shop-checkout input[type="tel"] {
    padding: 10px 12px;
    border: 1px solid #c5d0dc;
    border-radius: 6px;
    font: inherit;
    font-weight: 400;
}

.shop-check {
    flex-direction: row !important;
    align-items: flex-start;
    gap: 0.5rem !important;
    font-weight: 400 !important;
    color: #444 !important;
}

.shop-check input {
    margin-top: 0.25rem;
}

.shop-checkout-err {
    color: #b42318;
    margin: 0;
}

.shop-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(16px);
    background: #1a2a4c;
    color: #fff;
    padding: 0.7rem 1.1rem;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    z-index: 80;
    transition: opacity 0.2s, transform 0.2s;
}

.shop-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
    .header-actions {
        margin: 15px 0 0;
        justify-content: center;
        width: 100%;
    }

    .header-actions .header-phone {
        margin: 0;
    }

    .shop-cart-table {
        font-size: 0.9rem;
    }
}
