:root {
    /* Наследуем палитру из global-theme (--cp-*), с fallback для автономного просмотра */
    --color-blue: var(--cp-primary, #3498db);
    --color-green: #2ecc71;
    --color-dark: var(--cp-text, #2c3e50);
    --color-light: var(--cp-surface-soft, #ecf0f1);
    --color-white: #ffffff;
    --color-gray: var(--cp-muted, #95a5a6);
    --shadow: var(--cp-shadow-soft, 0 4px 12px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1));
    --shadow-hover: var(--cp-shadow-card, 0 10px 25px rgba(0, 0, 0, 0.1));
    --border-radius: var(--cp-radius, 8px);
    --max-width: 1200px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--font-family);
    color: var(--color-dark);
    background: linear-gradient(145deg, #f5f9ff, #e8f2ff, #f0f7ff, #dceeff);
    background-size: 400% 400%;
    animation: gradientShiftSoft 20s ease infinite;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
}

.page-header {
    padding: 2rem 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(52, 152, 219, 0.2);
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--color-dark);
    position: relative;
    padding-bottom: 1rem;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--color-blue);
    border-radius: 2px;
}

.contacts-info {
    padding: 2rem 0 4rem;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contacts-main {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    padding: 2.5rem;
    border: 1px solid rgba(52, 152, 219, 0.2);
    transition: all 0.3s ease;
}

.contacts-main:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.contact-item {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 2rem;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

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

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(145deg, var(--color-blue), #2980b9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.contact-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--color-dark);
    font-weight: 600;
}

.contact-details p {
    color: var(--color-gray);
    line-height: 1.6;
}

.contact-details a {
    color: var(--color-blue);
    text-decoration: none;
    transition: color 0.2s;
}

.contact-details a:hover {
    color: var(--color-dark);
    text-decoration: underline;
}

.contacts-description {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    padding: 2.5rem;
    border: 1px solid rgba(52, 152, 219, 0.2);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.contacts-description:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.contacts-description p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-dark);
    margin-bottom: 2rem;
    flex: 1;
}

.map-placeholder {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: auto;
}

.map-placeholder iframe {
    display: block;
    width: 100%;
    height: 300px;
    border: none;
}

/* Yandex Map Widget */
.yandex-map-widget {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-top: auto;
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    background: linear-gradient(145deg, var(--color-blue), #2980b9);
    color: white;
}

.map-header h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.map-header .btn--outline {
    border-color: rgba(255,255,255,0.5);
    color: white;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}

.map-header .btn--outline:hover {
    background: white;
    color: var(--color-blue);
}

.yandex-map-widget iframe {
    display: block;
    width: 100%;
    height: 350px;
    border: none;
}

.map-footer {
    padding: 1rem 1.2rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.rating-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.rating-stars {
    color: #ffc107;
    letter-spacing: 2px;
}

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

.reviews-link {
    color: var(--color-blue);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: auto;
}

.reviews-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .rating-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .reviews-link {
        margin-left: 0;
    }
    
    .yandex-map-widget iframe {
        height: 280px;
    }
}

/* Отзывы — как на главной: виджет Яндекс.Карт */
.reviews {
    padding: 5rem 0;
    background: var(--cp-bg, #f4f7fb);
    border-top: 1px solid rgba(52, 152, 219, 0.15);
}

.reviews-yandex-frame {
    margin-top: 0.5rem;
}

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

.contact-form-section {
    padding: 4rem 0;
}

.contact-form {
    max-width: 700px;
    margin: 2rem auto 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    padding: 2.5rem;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.form-row {
    margin-bottom: 1.2rem;
}

.form-row input[type="text"],
.form-row input[type="tel"],
.form-row input[type="email"],
.form-row textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.9);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.form-row textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-row {
    display: flex;
    align-items: center;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.9rem;
    color: var(--color-gray);
    cursor: pointer;
}

.checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--color-blue);
}

.form-row .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

.legal-info {
    padding: 2rem 0 3rem;
}

.legal-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.legal-link {
    color: var(--color-gray);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
    position: relative;
    padding: 0.5rem 0;
}

.legal-link:hover {
    color: var(--color-blue);
}

.legal-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-blue);
    transition: width 0.3s;
}

.legal-link:hover::after {
    width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    font-size: 0.95rem;
    text-decoration: none;
}

.btn--primary {
    background: linear-gradient(145deg, var(--color-blue), #2980b9);
    color: white;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.btn--primary:hover {
    background: linear-gradient(145deg, #2980b9, var(--color-blue));
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn--outline {
    border: 1px solid var(--color-blue);
    color: var(--color-blue);
    background: transparent;
    transition: all 0.3s ease;
}

.btn--outline:hover {
    background: var(--color-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn--large {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

@keyframes gradientShiftSoft {
    0% { background-position: 0% 0%; }
    33% { background-position: 50% 50%; }
    66% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

.fade-enter {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-enter-left {
    transform: translateX(-30px);
}

.fade-enter-right {
    transform: translateX(30px);
}

.fade-enter.fade-enter-active {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 1024px) {
    .page-title {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .contacts-main,
    .contacts-description,
    .contact-form {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .reviews {
        padding: 3rem 0;
    }

    .page-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-item {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .contact-details h3 {
        font-size: 1rem;
    }
    
    .contact-details p {
        font-size: 0.9rem;
    }
    
    .contacts-description p {
        font-size: 1rem;
    }
    
    .legal-links {
        gap: 1.5rem;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 1.5rem 0;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .contacts-main,
    .contacts-description,
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .contact-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .checkbox {
        font-size: 0.8rem;
    }
    
    .map-placeholder iframe {
        height: 250px;
    }
}

@media print {
    .header, .footer, .breadcrumbs, .contact-form-section, 
    .legal-info, .btn, .map-placeholder {
        display: none;
    }
    
    body {
        background: white;
        animation: none;
    }
    
    .contacts-main,
    .contacts-description,
    .reviews-yandex-frame {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    .page-title::after,
    .section-title::after {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    body,
    .fade-enter,
    .reviews-yandex-frame,
    .btn,
    .legal-link::after {
        animation: none;
        transition: none;
    }
}

/* ── Социальные иконки на странице контактов ── */
.contact-socials {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 4px;
}

.contact-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f4f6fb;
    transition: background 0.2s, transform 0.2s;
}

.contact-social-link:hover {
    background: #e8eef8;
    transform: translateY(-2px);
}

.contact-social-link img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}