/*
Theme Name: Morfey Clean
Theme URI: https://morfey138.ru/
Author: Senior WP Developer
Author URI: https://morfey138.ru/
Description: Современная тема для сети химчисток «Морфей» с поддержкой ACF Pro, микроразметкой Schema.org и адаптивным дизайном.
Version: 2.0.0
License: GNU GPL v2
Text Domain: morfey
Domain Path: /languages
*/

/* ============================================
   MORFEY CLEAN — CSS VARIABLES & RESET
   Цветовая гамма: синий — фиолетовый — розовый акцент
   ============================================ */

:root {
    /* Primary — насыщенный синий */
    --primary: #4361ee;
    --primary-dark: #3952ca;
    --primary-light: #8598f4;
    --primary-soft: #eceffd;

    /* Secondary — глубокий фиолетовый, доверие и премиальность */
    --secondary: #7209b7;
    --secondary-dark: #61089c;

    /* Accent — яркий розовый для CTA */
    --accent: #f72585;
    --accent-light: #f966aa;

    /* Fresh — голубой, свежесть, легкость */
    --fresh: #3a86ff;
    --fresh-soft: #e1edff;

    /* Neutrals */
    --light: #f8fafc;
    --light-warm: #f7f9fe;
    --dark: #0f172a;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --white: #ffffff;

    /* Shadows */
    --shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 32px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.12);
    --shadow-hover: 0 12px 40px rgba(67, 97, 238, 0.18);

    /* Radius */
    --radius: 16px;
    --radius-sm: 12px;
    --radius-lg: 24px;
    --radius-pill: 100px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Font */
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'Segoe UI', Roboto, var(--font);

    /* Layout (overridden by JS with real measured header height) */
    --site-header-height: 76px;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary);
}

/* ============================================
   LAYOUT
   ============================================ */

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

.container-narrow {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section-sm {
    padding: 48px 0;
}

.section-lg {
    padding: 100px 0;
}

/* ============================================
   TOP BAR
   ============================================ */

.top-bar {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.top-bar a {
    color: white;
    font-weight: 600;
}

.top-bar-contact {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-item .icon {
    font-size: 1rem;
}

/* ============================================
   MAIN HEADER
   ============================================ */

.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--fresh));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--gray);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Desktop Nav */
.desktop-nav {
    display: flex;
    gap: 6px;
    align-items: center;
}

.nav-link {
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark);
    transition: var(--transition);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover,
.nav-link.active {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.nav-cta {
    background: linear-gradient(135deg, var(--primary), var(--fresh));
    color: white !important;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 16px rgba(32, 178, 170, 0.3);
    transition: var(--transition);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(32, 178, 170, 0.4);
    color: white !important;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: relative;
    z-index: 1101;
}

.mobile-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 1100;
    padding: 100px 24px 24px;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav a {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--dark);
    background: var(--light);
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-nav a:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #eceffd 0%, #f7f9fe 50%, #eef5ff 100%);
    padding: 100px 0 120px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(32, 178, 170, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-content {
    max-width: 560px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-dark);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.hero-badge .pulse {
    width: 8px;
    height: 8px;
    background: var(--fresh);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--dark);
    margin-bottom: 20px;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--gray);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 1rem;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--fresh));
    color: white;
    box-shadow: 0 4px 20px rgba(32, 178, 170, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(32, 178, 170, 0.45);
    color: white;
}

.btn-outline {
    background: var(--white);
    color: var(--dark);
    border: 2px solid var(--gray-light);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

.hero-image-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-image-wrap img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.hero-image-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

.hero-image-badge .badge-label {
    font-size: 0.8rem;
    color: var(--gray);
    font-weight: 500;
}

.hero-image-badge .badge-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark);
}

/* Hero Stats Bar */
.hero-stats-bar {
    position: relative;
    z-index: 3;
    max-width: 1000px;
    margin: -40px auto 0;
    padding: 0 24px;
}

.hero-stats-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.stat-item {
    padding: 32px 24px;
    text-align: center;
    border-right: 1px solid var(--gray-light);
}

.stat-item:last-child {
    border-right: none;
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 4px;
    font-weight: 500;
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 16px;
    line-height: 1.25;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.6;
}

/* ============================================
   CARDS & GRIDS
   ============================================ */

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(32, 178, 170, 0.2);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-soft), var(--fresh-soft));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.card-text {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.6;
}

/* ============================================
   PRICE TABLE
   ============================================ */

.price-section {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 32px;
}

.price-section-header {
    padding: 32px 40px;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    align-items: center;
    gap: 20px;
}

.price-section-icon {
    font-size: 2.5rem;
}

.price-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.price-section-desc {
    font-size: 0.95rem;
    color: var(--gray);
    margin-top: 4px;
}

.price-table-wrap {
    padding: 24px 40px 32px;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background:
        linear-gradient(to right, white 30%, rgba(255, 255, 255, 0)),
        linear-gradient(to right, rgba(255, 255, 255, 0), white 70%) 100% 0,
        radial-gradient(farthest-side at 0 50%, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0)),
        radial-gradient(farthest-side at 100% 50%, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0)) 100% 0;
    background-repeat: no-repeat;
    background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
    background-attachment: local, local, scroll, scroll;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.price-table-wrap .price-table {
    min-width: 420px;
}

.price-table thead th {
    text-align: left;
    padding: 14px 16px;
    font-weight: 600;
    color: var(--gray);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid var(--gray-light);
}

.price-table tbody tr {
    border-bottom: 1px solid var(--gray-light);
    transition: var(--transition);
}

.price-table tbody tr:hover {
    background: var(--primary-soft);
}

.price-table tbody td {
    padding: 16px;
    vertical-align: middle;
}

.price-value {
    font-weight: 700;
    color: var(--dark);
    font-size: 1.05rem;
    white-space: nowrap;
}

.price-note {
    font-size: 0.85rem;
    color: var(--gray);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 700;
}

.badge-discount {
    background: var(--fresh-soft);
    color: var(--fresh);
}

.badge-popular {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
}

.badge-info {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

/* ============================================
   FEATURES / ADVANTAGES
   ============================================ */

.advantages-section {
    background: linear-gradient(135deg, var(--primary-soft), var(--fresh-soft));
    position: relative;
    overflow: hidden;
}

.advantages-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(32, 178, 170, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.advantage-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.advantage-card:hover {
    transform: translateY(-8px);
    background: var(--white);
    box-shadow: var(--shadow-hover);
}

.advantage-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary), var(--fresh));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    color: white;
}

.advantage-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.advantage-text {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.6;
}

/* ============================================
   HOW IT WORKS (STEPS)
   ============================================ */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    counter-reset: step;
}

.step-card {
    position: relative;
    text-align: center;
    padding: 32px 24px;
}

.step-card::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
}

.step-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 24px;
    right: -12px;
    width: 24px;
    height: 2px;
    background: var(--gray-light);
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    margin-top: 8px;
}

.step-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.step-text {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.5;
}

/* ============================================
   SERVICE FEATURES
   ============================================ */

.features-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    background: var(--white);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.feature-item:hover {
    background: var(--primary-soft);
    transform: translateX(4px);
}

.feature-check {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary), var(--fresh));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.feature-content p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.5;
}

/* ============================================
   REVIEWS / TESTIMONIALS
   ============================================ */

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.review-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    position: relative;
}

.review-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 4rem;
    color: var(--primary-soft);
    font-family: Georgia, serif;
    line-height: 1;
}

.review-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.review-rating .star {
    color: #fbbf24;
    font-size: 1.1rem;
}

.review-text {
    font-size: 0.95rem;
    color: var(--dark);
    line-height: 1.7;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--fresh));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.review-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--dark);
}

.review-meta {
    font-size: 0.8rem;
    color: var(--gray);
}

/* ============================================
   FAQ
   ============================================ */

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-light);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--dark);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--primary-soft);
}

.faq-question-text {
    padding-right: 16px;
}

.faq-toggle {
    width: 32px;
    height: 32px;
    background: var(--primary-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 1.2rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.faq-item.open .faq-toggle {
    transform: rotate(45deg);
    background: var(--primary);
    color: white;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 0 24px 24px;
}

.faq-answer p {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 12px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* ============================================
   BRANCHES
   ============================================ */

.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.branch-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary);
}

.branch-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.branch-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.branch-address {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.branch-hours {
    color: var(--fresh);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ============================================
   CONTACT CTA BOX
   ============================================ */

.contact-cta {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: var(--radius-lg);
    padding: 64px 48px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    margin: 80px 0;
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.contact-cta-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.contact-cta-text {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.contact-cta .btn-white {
    background: white;
    color: var(--primary-dark);
    padding: 18px 40px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.contact-cta .btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* ============================================
   MAP SECTION
   ============================================ */

.map-section {
    margin: 40px 0;
}

.map-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

/* ============================================
   DISCOUNT / INFO BOXES
   ============================================ */

.discount-box {
    background: linear-gradient(135deg, var(--fresh-soft), var(--primary-soft));
    border-radius: var(--radius);
    padding: 32px;
    border-left: 5px solid var(--fresh);
    margin: 32px 0;
}

.discount-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.discount-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.discount-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--dark);
}

.discount-list .check {
    width: 24px;
    height: 24px;
    background: var(--fresh);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    flex-shrink: 0;
}

/* Info Box */
.info-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 32px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--secondary);
    margin: 32px 0;
}

/* ============================================
   PAGE SWITCH BAR
   ============================================ */

/* ============================================
   SERVICE SUB-NAVIGATION (якоря по разделам страницы)
   Тёмная панель под основным хедером — редактируется
   через Внешний вид → Меню → локация "service_subnav"
   ============================================ */

.service-subnav {
    position: sticky;
    top: var(--site-header-height, 76px);
    z-index: 40;
    background: var(--dark);
}

.service-subnav-list {
    display: flex;
    list-style: none;
    gap: 8px;
    padding: 10px 24px;
    margin: 0 auto;
    max-width: 1200px;
    justify-content: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.service-subnav-list::-webkit-scrollbar {
    display: none;
}

.service-subnav-list li {
    flex-shrink: 0;
}

.service-subnav-list a {
    display: inline-block;
    color: rgba(255, 255, 255, 0.7);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
}

.service-subnav-list a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.service-subnav-list a.active-section {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

@media (max-width: 768px) {
    .service-subnav-list {
        padding: 10px 16px;
        justify-content: flex-start;
    }
}

/* ============================================
   SHOE SEASON CARDS
   ============================================ */

.shoes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.shoe-season-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary);
}

.shoe-season-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.shoe-season-icon {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 12px;
}

.shoe-season-title {
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    color: var(--dark);
    margin-bottom: 20px;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo-text {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
}

.footer-title {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-phone {
    color: white !important;
    font-size: 1.2rem;
    font-weight: 700;
}

/* ============================================
   FLOATING CTA (MOBILE)
   ============================================ */

.floating-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
    padding: 12px 16px;
    z-index: 1000;
    gap: 12px;
}

.floating-cta .btn {
    flex: 1;
    padding: 14px;
    font-size: 0.95rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .hero h1 { font-size: 2.6rem; }
    .hero-inner { gap: 40px; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid .step-card:not(:last-child)::after { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .top-bar { font-size: 0.75rem; }
    .top-bar-contact { gap: 12px; }
    .desktop-nav { display: none; }
    .mobile-toggle { display: flex; }
    .hero { padding: 60px 0 80px; }
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-content { max-width: 100%; }
    .hero h1 { font-size: 2rem; }
    .hero-cta-group { justify-content: center; }
    .hero-image-wrap { order: -1; }
    .hero-image-wrap img { height: 280px; }
    .hero-stats-inner { grid-template-columns: repeat(2, 1fr); }
    .stat-item { padding: 20px 16px; }
    .stat-item:nth-child(2) { border-right: none; }
    .stat-item:nth-child(1), .stat-item:nth-child(2) { border-bottom: 1px solid var(--gray-light); }
    .section { padding: 56px 0; }
    .section-title { font-size: 1.8rem; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .steps-grid .step-card::after { display: none; }
    .reviews-grid { grid-template-columns: 1fr; }
    .review-card { padding: 20px; }
    .review-card::before { font-size: 2.8rem; top: 8px; right: 16px; }
    .price-section-header, .price-table-wrap { padding: 20px 24px; }
    .contact-cta { padding: 40px 24px; margin: 48px 0; }
    .contact-cta-title { font-size: 1.6rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .floating-cta { display: flex; }
    body { padding-bottom: 72px; }
    .map-wrapper iframe { height: 320px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.7rem; }
    .hero-description { font-size: 1rem; }
    .btn { padding: 14px 24px; font-size: 0.9rem; }
    .section-title { font-size: 1.5rem; }
    .stat-number { font-size: 1.4rem; }
    .card { padding: 24px; }
    .contact-cta { padding: 32px 20px; }
    .contact-cta-title { font-size: 1.4rem; }

    .price-table-wrap { padding: 16px; }
    .price-table { font-size: 0.85rem; }
    .price-table thead th { padding: 10px 8px; font-size: 0.7rem; }
    .price-table tbody td { padding: 10px 8px; }
    .price-value { font-size: 0.95rem; }

    .shoes-grid { grid-template-columns: 1fr; }
    .shoe-season-card { padding: 24px; }

    .hero-image-wrap img { height: 200px; }
    .hero-image-badge { padding: 10px 14px; bottom: 12px; left: 12px; }
    .hero-image-badge .badge-value { font-size: 1.15rem; }
    .hero-image-badge .badge-label { font-size: 0.7rem; }
}

/* Print */
@media print {
    .site-header, .floating-cta, .mobile-toggle, .contact-cta, .hero-stats-bar { display: none !important; }
    .hero { padding: 40px 0; }
    body { padding-bottom: 0; }
}
