@font-face {
    font-family: 'Outfit';
    src: url('../fonts/Outfit-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Outfit';
    src: url('../fonts/Outfit-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Outfit';
    src: url('../fonts/Outfit-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

:root {
    --bg-color: #fcfdfd;
    --text-color: #0f172a;
    --accent-color: #10b981;
    /* Более живой изумрудный */
    --accent-soft: rgba(16, 185, 129, 0.1);
    --secondary-bg: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.8);
    --border-color: rgba(203, 213, 225, 0.5);
    --muted-text: #64748b;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.08), 0 4px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 5rem 0;
}

/* Typography */
h1,
h2,
h3 {
    color: #0f172a;
    line-height: 1.2;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 800;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 2.2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.btn-primary {
    background-color: var(--text-color);
    color: white;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.btn-primary:hover {
    background-color: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
}

.btn-secondary {
    background: var(--glass);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: #ffffff;
    border-color: var(--accent-color);
}

/* Header */
header {
    background: var(--glass);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s var(--transition);
}

header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: -0.04em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--muted-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.contact-phone {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    background: white;
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    transition: all 0.3s;
}

.contact-phone:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* --- MAIN SECTIONS --- */
section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text-color);
}

/* --- HERO SECTION --- */
.hero {
    background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.08), transparent 45%),
        radial-gradient(circle at bottom left, rgba(15, 23, 42, 0.04), transparent 45%);
    padding: 8rem 0;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
}

.hero-content {
    max-width: 700px;
    z-index: 2;
}

/* Badge System */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.badge-accent {
    background: var(--accent-soft);
    color: var(--accent-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1;
    margin-bottom: 1.5rem;
    font-weight: 900;
}

.accent-text {
    background: linear-gradient(135deg, var(--accent-color), #059669);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--muted-text);
    margin-bottom: 3rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.hero-main-img {
    position: relative;
    z-index: 1;
}

.hero-main-img img {
    width: 100%;
    border-radius: 32px;
    box-shadow: var(--shadow-premium);
    transition: transform 0.5s var(--transition);
}

.hero-main-img:hover img {
    transform: translateY(-10px) rotate(1deg);
}

.hero-main-img::after {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, var(--accent-soft), transparent 70%);
    z-index: -1;
    opacity: 0.5;
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--glass);
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
}

/* --- TABS & SERVICES --- */
.tabs-container {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    padding: 3rem;
    box-shadow: var(--shadow-premium);
}

.tab-btn.active {
    background: white;
    color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* --- WORKS DIARY --- */
.work-item {
    display: grid;
    grid-template-columns: 380px 1fr;
    background: white;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.5s var(--transition);
}

.work-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.work-content {
    padding: 3rem;
}

/* --- GLOBAL RESPONSIVE --- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero p {
        margin: 0 auto 3rem;
    }

    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }

    .tabs-container {
        padding: 1.5rem;
        border-radius: 24px;
    }

    .tabs-header {
        display: none;
    }

    .tabs-mobile-nav {
        display: block;
    }

    .work-item {
        flex-direction: column;
    }

    .work-image {
        flex: 0 0 250px;
        min-height: 250px;
    }

    .work-content {
        padding: 1.5rem;
    }

    .messenger-buttons {
        flex-direction: row !important;
        bottom: 20px !important;
    }
}

/* Линейка преимуществ */
.stats-section {
    background: #ffffff;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--accent-color);
    line-height: 1;
}

/* Услуги */
.services-section {
    background: #f8fafc;
}


/* ===== REGIONS SECTION (Enhanced with Map) ===== */
.regions-section {
    background: #f8fafc;
    padding: 8rem 0;
}

.regions-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #64748b;
    margin-top: -1.5rem;
    margin-bottom: 4rem;
}

.regions-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    position: relative;
    /* Important for Sticksy to work correctly */
}

/* Map Wrapper */
.regions-map-wrapper {
    position: sticky;
    top: 100px;
    height: fit-content;
    align-self: start;
}

.yandex-map-container {
    width: 100%;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.map-legend {
    margin-top: 1.5rem;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: #475569;
}

.legend-item:last-child {
    margin-bottom: 0;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.legend-fast {
    background: linear-gradient(135deg, #10b981, #059669);
}

.legend-medium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.legend-extended {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* Regions Cards */
.regions-cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.regions-grid-enhanced {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.region-card-enhanced {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    gap: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.4s var(--transition);
    position: relative;
    overflow: hidden;
}

.region-card-enhanced:hover {
    transform: translateX(10px);
    background: white;
    border-color: var(--accent-color);
    box-shadow: var(--shadow-premium);
}

.region-icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
    background: var(--accent-soft);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
}

.region-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.region-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.region-cta-btn {
    background: var(--text-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.region-cta-btn:hover {
    background: var(--accent-color);
    transform: scale(1.05);
}

.region-time i {
    width: 18px;
    height: 18px;
    color: var(--accent-color);
}

.region-cta-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.9rem 1.8rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
}

.region-cta-btn:hover {
    background: #047857;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.3);
}

.regions-footer-cta {
    text-align: center;
    background: linear-gradient(135deg, #1e293b, #334155);
    padding: 2.5rem;
    border-radius: 20px;
    color: white;
}

.regions-footer-cta p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #e2e8f0;
}

.regions-footer-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.regions-footer-cta .btn i {
    width: 20px;
    height: 20px;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .regions-container {
        grid-template-columns: 1fr;
    }

    .regions-map-wrapper {
        position: relative;
        top: 0;
        order: -1;
        margin-bottom: 2rem;
    }

    .regions-cards-wrapper {
        margin-top: 2rem;
        /* Отводим карточки от легенды карты */
    }

    .yandex-map-container {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .region-card-enhanced {
        flex-direction: column;
        text-align: center;
    }

    .region-icon {
        margin: 0 auto;
    }

    .region-time {
        justify-content: center;
    }

    .region-cta-btn {
        width: 100%;
    }
}


/* Процесс */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.process-step {
    background: white;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
}

.step-num {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    color: white;
    font-size: 1.5rem;
    font-weight: 900;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

/* Форма */
.cta-section {
    background: #1e293b;
    color: white;
    padding: 4rem 2rem;
    border-radius: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.cta-section h2 {
    color: white;
    font-size: 2.5rem;
}

.cta-form {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1.1rem;
}

.form-group input:focus {
    border-color: var(--accent-color);
    outline: none;
}

/* Футер */
footer {
    padding: 5rem 0 8rem;
    background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.03), transparent 40%),
        radial-gradient(circle at bottom left, rgba(15, 23, 42, 0.02), transparent 40%),
        white;
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.footer-info {
    text-align: center;
    max-width: 400px;
}

.footer-info .logo {
    margin-bottom: 1.5rem;
    justify-content: center;
}

.footer-info p {
    color: var(--muted-text);
    font-size: 1.05rem;
    line-height: 1.7;
}

.footer-bottom {
    width: 100%;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    color: var(--muted-text);
    font-size: 0.95rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    footer {
        padding: 4rem 1.5rem 10rem;
        /* Огромный отступ снизу для плавающих кнопок */
    }

    .footer-info p {
        font-size: 1rem;
    }
}


/* Мобильные */
@media (max-width: 768px) {
    .cta-section {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .nav-links {
        display: none;
    }

    /* Hero Grid на мобильных */
    .hero .container[style*="grid"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .hero-main-img {
        order: -1;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
}

/* --- НОВЫЕ СТИЛИ (Aceternity / Magic UI Inspired) --- */

/* Brands Marquee */
.brands-section {
    padding: 3rem 0;
    background: white;
    overflow: hidden;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.marquee {
    display: flex;
    white-space: nowrap;
    position: relative;
}

.marquee-content {
    display: flex;
    gap: 4rem;
    animation: marquee 30s linear infinite;
}

.marquee-content span {
    font-size: 1.5rem;
    font-weight: 800;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Masters Section */
.masters-section {
    background: white;
    padding: 8rem 0;
}

.master-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.4s var(--transition);
}

.master-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
    background: white;
    border-color: var(--accent-color);
}

.master-img-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 1.5rem;
}

.master-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.master-badge {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 100px;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.master-info h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.master-specialty {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.master-exp {
    color: var(--muted-text);
    font-size: 0.9rem;
    font-weight: 500;
}

/* --- SERVICES TABS SYSTEM --- */
.tabs-container {
    margin-bottom: 5rem;
    background: #ffffff;
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

.tabs-header {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #f1f5f9;
    border-radius: 16px;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.9rem 1.8rem;
    border: none;
    background: transparent;
    color: #64748b;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn.active {
    background: #ffffff;
    color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.5);
}

.tabs-mobile-nav {
    display: none;
    margin-bottom: 2.5rem;
}

.tabs-select {
    width: 100%;
    padding: 1.25rem;
    border-radius: 14px;
    border: 2px solid var(--accent-color);
    /* Акцентная рамка */
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.1);
}

.tabs-mobile-nav::before {
    content: 'Нажмите, чтобы выбрать тип техники:';
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.75rem;
    text-align: center;
}

.tab-panel {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease-out;
}

.tab-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Service Grid & Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-card:hover {
    transform: translateY(-8px);
    background: white;
    border-color: var(--accent-color);
    box-shadow: var(--shadow-premium);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-soft);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    transition: all 0.3s var(--transition);
}

.service-card:hover .service-icon {
    background: var(--accent-color);
    color: white;
    transform: rotate(-5deg) scale(1.1);
}

.service-card h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
}

.service-card p {
    color: var(--muted-text);
    font-size: 0.95rem;
    line-height: 1.5;
}

.service-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color);
}

/* Responsive */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tabs-header {
        display: none;
    }

    .tabs-mobile-nav {
        display: block;
    }

    .tabs-container {
        padding: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-card {
        padding: 1.5rem;
    }
}

/* --- DIARY SECTION (Works Diary) --- */
.diary-section {
    background: #f8fafc;
    padding: 8rem 0;
}

.diary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.diary-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.diary-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border-color: var(--accent-color);
}

.diary-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid #f1f5f9;
}

.diary-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.diary-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.diary-tag {
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    text-transform: uppercase;
}

.diary-card:hover .diary-tag {
    background: rgba(5, 150, 105, 0.1);
    color: var(--accent-color);
}

.diary-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.diary-content p {
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.diary-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
    font-size: 0.9rem;
    color: #94a3b8;
}

.diary-footer i {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

.diary-price {
    font-weight: 800;
    color: var(--accent-color);
    font-size: 1.1rem;
}



/* ===== FLOATING CALL BUTTON =====  */
.floating-call-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    background: var(--text-color);
    color: white;
    padding: 1.2rem 2.2rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.4s var(--transition);
}

.floating-call-btn:hover {
    transform: translateY(-5px) scale(1.02);
    background: var(--accent-color);
}

.floating-call-btn i {
    width: 24px;
    height: 24px;
    background: white;
    color: var(--text-color);
    padding: 12px;
    border-radius: 50%;
    margin-left: -1rem;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: #f1f5f9;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    background: #e2e8f0;
    transform: rotate(90deg);
}

.modal-close i {
    width: 20px;
    height: 20px;
}

.modal-header {
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: #64748b;
    font-size: 1.05rem;
}

.quick-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.quick-form .form-group input,
.quick-form .form-group select {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.05rem;
    transition: border-color 0.3s;
}

.quick-form .form-group input:focus,
.quick-form .form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.quick-form-submit {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 1.3rem 2rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.5rem;
}

.quick-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.3);
}

/* ===== SOCIAL PROOF & URGENCY TRIGGERS ===== */
.social-proof-banners {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem auto 4rem;
    max-width: 1200px;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

.proof-banner {
    background: var(--glass);
    backdrop-filter: blur(12px);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-premium);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s var(--transition);
}

.proof-banner:hover {
    transform: translateY(-5px);
    background: white;
}

.proof-banner i {
    width: 44px;
    height: 44px;
    padding: 10px;
    background: var(--accent-soft);
    color: var(--accent-color);
    border-radius: 12px;
}

.proof-content strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.proof-subtitle {
    font-size: 0.8rem;
    color: var(--muted-text);
}

.discount-timer {
    font-family: inherit;
    font-weight: 800;
    color: #ef4444;
}

.proof-success {
    border-left-color: #10b981;
}

.proof-success i {
    color: #10b981;
}

.proof-live {
    border-left-color: #3b82f6;
    transition: opacity 0.5s ease;
}

.proof-live i {
    color: #3b82f6;
}

.proof-urgency {
    border-left-color: #f59e0b;
}

.proof-urgency i {
    color: #f59e0b;
}

.proof-warning {
    border-left-color: #ef4444;
}

.proof-warning i {
    color: #ef4444;
}

.proof-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.discount-timer {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: #f59e0b;
    font-family: 'Courier New', monospace;
}

.timer-number {
    background: #fef3c7;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.messenger-buttons {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 9999;
}

/* ===== TELEGRAM WIDGET ===== */
.telegram-widget {
    position: fixed;
    bottom: 90px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9990;
    text-decoration: none;
    cursor: pointer;
}

.telegram-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(34, 158, 217, 0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    animation: pulse-blue 2s infinite;
}

.telegram-icon svg {
    width: 28px;
    height: 28px;
    transform: translate(-1px, 1px);
    /* Optical alignment */
}

.telegram-widget:hover .telegram-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 15px 35px rgba(34, 158, 217, 0.6);
}

.telegram-tooltip {
    background: white;
    color: #0f172a;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s;
    pointer-events: none;
}

.telegram-widget:hover .telegram-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@keyframes pulse-blue {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 158, 217, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(34, 158, 217, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 158, 217, 0);
    }
}

.service-card {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}


@media (max-width: 768px) {
    .social-proof-banners {
        grid-template-columns: 1fr;
        margin: -2rem auto 2rem;
        padding: 0 1rem;
    }

    .proof-banner {
        padding: 1rem;
    }

    .proof-content strong {
        font-size: 0.9rem;
    }

    .discount-timer {
        font-size: 1.2rem;
    }

    .total-clients-badge {
        display: none;
    }

    /* Telegram Widget Mobile */
    .telegram-widget {
        bottom: 85px;
        right: 15px;
    }

    .telegram-icon {
        width: 50px;
        height: 50px;
    }

    .telegram-icon svg {
        width: 24px;
        height: 24px;
    }

    .telegram-tooltip {
        display: none;
    }
}




@media (max-width: 1200px) {
    .total-clients-badge {
        top: 80px;
    }
}

@media (max-width: 768px) {
    .total-clients-badge {
        font-size: 0.85rem;
        padding: 1rem;
        top: 70px;
        right: 15px;
    }

    .total-clients-badge i {
        width: 30px;
        height: 30px;
    }

    .badge-content strong {
        font-size: 1.5rem;
    }
}

/* ===== RESPONSIVE OPTIMIZATIONS (10/10 QUALITY) ===== */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

@media (max-width: 1024px) {
    .container {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .total-clients-badge {
        top: 90px !important;
        right: 20px !important;
        font-size: 0.9rem;
        padding: 1rem;
    }

    .total-clients-badge i {
        width: 30px;
        height: 30px;
    }

    .badge-content strong {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.5rem 0;
    }

    .logo {
        font-size: 1.4rem;
    }

    .contact-phone {
        font-size: 1rem;
    }

    .hero {
        padding: 2rem 0;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem !important;
        margin-top: 1rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-main-img {
        margin-bottom: 2rem;
        max-width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem;
        padding: 0 1rem;
    }

    .stat-value {
        font-size: 1.6rem;
    }

    .stat-item {
        padding-left: 0.5rem;
        text-align: left;
    }

    .social-proof-banners {
        grid-template-columns: 1fr !important;
        margin: 1.5rem auto;
        padding: 0 1rem;
        gap: 0.8rem;
    }

    .proof-banner {
        padding: 0.75rem;
    }

    .proof-content strong {
        font-size: 0.85rem;
    }

    .discount-timer {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .messenger-buttons {
        bottom: 15px !important;
        left: 15px !important;
        gap: 0.75rem;
        flex-direction: row !important;
    }

    .messenger-btn {
        width: 46px !important;
        height: 46px !important;
    }

    .messenger-btn i {
        width: 22px !important;
        height: 22px !important;
    }

    .floating-call-btn {
        bottom: 15px !important;
        right: 15px !important;
        padding: 0.6rem 1rem !important;
        font-size: 0.8rem !important;
    }

    .floating-call-main {
        font-size: 0.9rem !important;
    }

    .floating-call-btn i {
        width: 18px !important;
        height: 18px !important;
    }

    .total-clients-badge {
        display: flex !important;
        position: fixed !important;
        top: auto !important;
        bottom: 85px !important;
        right: 15px !important;
        left: auto !important;
        padding: 0.6rem 0.8rem !important;
        border-radius: 12px !important;
    }

    .total-clients-badge i {
        width: 22px !important;
        height: 22px !important;
    }

    .badge-content strong {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 768px) {
    .tabs-container {
        padding: 1.5rem 1rem;
        border-radius: 20px;
    }

    .tabs-mobile-nav {
        display: block;
        /* Показываем на мобильных */
    }

    .tabs-header {
        display: none;
        /* Скрываем обычные табы */
    }

    .service-card {
        padding: 1.1rem;
    }

    .regions-map-wrapper,
    .yandex-map-container {
        width: 100% !important;
        height: 300px !important;
    }

    .yandex-map-container {
        border-radius: 12px;
    }

    .regions-grid-enhanced {
        grid-template-columns: 1fr !important;
        width: 100% !important;
    }

    .region-card-enhanced {
        width: 100% !important;
    }
}

@media (max-width: 380px) {
    .contact-phone {
        font-size: 0.9rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .hero h1 {
        font-size: 1.8rem !important;
    }
}

/* ===== MASTERS CAROUSEL (MOBILE) ===== */
.masters-carousel-nav {
    display: none;
}

@media (max-width: 768px) {
    .masters-section .masters-grid {
        display: flex;
        overflow: hidden;
        position: relative;
        width: 100%;
    }

    .masters-section .master-card {
        min-width: 100%;
        flex-shrink: 0;
        transition: transform 0.3s ease;
    }

    .masters-carousel-nav {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        margin-top: 2rem;
    }

    .carousel-btn {
        background: var(--primary-color);
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        cursor: pointer;
        transition: all 0.3s;
    }

    .carousel-btn:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

    .carousel-btn:not(:disabled):hover {
        background: var(--accent-color);
        transform: scale(1.1);
    }

    .carousel-dots {
        display: flex;
        gap: 0.5rem;
    }

    .carousel-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #ddd;
        cursor: pointer;
        transition: all 0.3s;
    }

    .carousel-dot.active {
        background: var(--primary-color);
        width: 24px;
        border-radius: 4px;
    }
}

/* ===== MASTERS GRID CAROUSEL LAYOUT ===== */
@media (max-width: 768px) {
    .masters-grid {
        display: flex !important;
        overflow: hidden;
        position: relative;
        width: 100%;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .master-card {
        min-width: 100% !important;
        flex-shrink: 0;
    }
}

/* ===== SWIPER CUSTOM STYLES ===== */
.masters-swiper {
    padding: 2rem 0 3rem;
    margin: 0 -1rem;
}

.masters-swiper .swiper-slide {
    height: auto;
}

.masters-swiper .master-card {
    height: 100%;
    margin: 0;
}

.masters-swiper .swiper-button-next,
.masters-swiper .swiper-button-prev {
    color: var(--primary-color);
    background: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.masters-swiper .swiper-button-next:hover,
.masters-swiper .swiper-button-prev:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.masters-swiper .swiper-button-next::after,
.masters-swiper .swiper-button-prev::after {
    font-size: 20px;
    font-weight: bold;
}

.masters-swiper .swiper-pagination {
    position: relative;
    margin-top: 1.5rem;
}

.masters-swiper .swiper-pagination-bullet {
    background: var(--primary-color);
    opacity: 0.3;
    transition: all 0.3s;
}

.masters-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.3);
}

@media (max-width: 768px) {

    .masters-swiper .swiper-button-next,
    .masters-swiper .swiper-button-prev {
        width: 36px;
        height: 36px;
    }

    .masters-swiper .swiper-button-next::after,
    .masters-swiper .swiper-button-prev::after {
        font-size: 16px;
    }
}

/* ===== STICKY MAP EFFECT FOR REGIONS ===== */
/* Duplicate removed - using main definition above */
.regions-map-wrapper {
    position: sticky;
    top: 100px;
    height: fit-content;
}

@media (max-width: 968px) {
    .regions-container {
        grid-template-columns: 1fr;
    }

    .regions-map-wrapper {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }
}

/* ===== EXIT POPUP STYLES ===== */
.exit-popup {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.exit-popup-content {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.exit-popup-body {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.exit-popup-image {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gift-icon-wrapper {
    background: white;
    padding: 1rem;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

.gift-icon {
    width: 48px;
    height: 48px;
    color: var(--accent-color);
}

.exit-popup-text {
    padding: 2rem;
}

.exit-popup-text h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.exit-offer-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.exit-offer-desc {
    margin-bottom: 1.5rem;
    color: #4b5563;
}

.exit-form .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

.spam-note {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 1rem;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.close-modal:hover {
    color: #f3f4f6;
}

/* ===== QUIZ STYLES ===== */
.quiz-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.quiz-content {
    background: white;
    width: 95%;
    max-width: 600px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.quiz-header {
    padding: 1.5rem;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quiz-progress-container {
    flex-grow: 1;
    margin-right: 2rem;
}

.quiz-progress-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.quiz-progress-fill {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
    width: 0%;
}

.quiz-step-text {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.quiz-close {
    font-size: 28px;
    cursor: pointer;
    color: #9ca3af;
    line-height: 1;
}

.quiz-close:hover {
    color: #1f2937;
}

.quiz-body {
    padding: 2rem;
    overflow-y: auto;
    flex-grow: 1;
}

.quiz-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #1f2937;
}

.quiz-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.quiz-option-btn {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.quiz-option-btn:hover {
    border-color: var(--primary-color);
    background: #f0fdf4;
    transform: translateY(-2px);
}

.quiz-option-btn.selected {
    border-color: var(--primary-color);
    background: #dcfce7;
}

.quiz-icon {
    color: var(--primary-color);
    width: 32px;
    height: 32px;
}

.quiz-footer {
    padding: 1rem 2rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quiz-btn-nav {
    background: none;
    border: none;
    font-size: 1rem;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quiz-btn-nav:hover {
    color: #1f2937;
}

.quiz-final-step {
    text-align: center;
}

.quiz-success-icon {
    color: #10b981;
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
}

@media (max-width: 640px) {
    .quiz-options-grid {
        grid-template-columns: 1fr;
    }

    .quiz-option-btn {
        flex-direction: row;
        padding: 1rem;
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.accent-text {
    color: var(--accent-color);
}

/* MOBILE HEADER & HERO OPTIMIZATIONS (FIXED V2) */
@media (max-width: 768px) {

    /* Header Fixes */
    .contact-phone {
        font-size: 0.95rem !important;
        white-space: nowrap;
    }

    .header-contact {
        gap: 0.5rem;
    }

    .location-badge {
        /* Hide badge on mobile */
        display: none !important;
    }

    /* Hero Overlay Mode */
    .hero-grid {
        display: block;
        text-align: center;
    }

    .hero {
        background-image: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.85)), url('../img/hero.png');
        background-size: cover;
        background-position: center;
        padding: 6rem 0;
        color: white;
    }

    .hero-main-img {
        display: none !important;
    }

    .hero-content {
        max-width: 100%;
        margin: 0 auto;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
        color: white;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
        background: none;
        -webkit-text-fill-color: white;
    }

    .hero p {
        color: #f1f5f9;
        font-size: 1rem;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    }

    .accent-text {
        color: #38bdf8;
        /* Light accent */
    }

    .hero-buttons {
        justify-content: center;
    }
}

/* ===== WORKS PAGE (ARTICLE STYLE) ===== */
.works-page {
    padding-top: 8rem;
}

.section-subtitle {
    text-align: center;
    margin-top: -1.5rem;
    margin-bottom: 5rem;
    color: #64748b;
    font-size: 1.25rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .works-page {
        padding-top: 4rem;
    }

    .section-subtitle {
        margin-top: -1rem;
        margin-bottom: 3rem;
        font-size: 1.1rem;
        padding: 0 1rem;
    }
}

.works-feed {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.work-item {
    display: flex;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.work-item:hover {
    transform: translateY(-5px);
}

.work-image {
    flex: 0 0 40%;
    position: relative;
    min-height: 300px;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-date-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 700;
    color: #0f172a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.work-content {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.work-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #64748b;
}

.work-category {
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.work-location i {
    width: 16px;
    margin-right: 4px;
    vertical-align: text-bottom;
}

.work-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #0f172a;
    line-height: 1.2;
}

.work-body {
    margin-bottom: 2rem;
    flex-grow: 1;
}

.work-problem,
.work-solution {
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 3px solid #e2e8f0;
}

.work-problem strong {
    color: #ef4444;
    display: block;
    margin-bottom: 0.5rem;
}

.work-solution strong {
    color: #10b981;
    display: block;
    margin-bottom: 0.5rem;
}

.work-solution {
    border-left-color: #10b981;
}

.work-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 1.5rem;
    margin-top: auto;
}

.price-label {
    color: #64748b;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-color);
}

.btn-text {
    background: transparent;
    border: none;
    font-weight: 700;
    color: var(--accent-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s;
    font-size: 1rem;
}

.btn-text:hover {
    gap: 0.8rem;
}

@media (max-width: 768px) {
    .works-feed {
        gap: 2rem;
        padding: 0 0.5rem;
    }

    .work-item {
        flex-direction: column;
        border-radius: 16px;
    }

    .work-image {
        flex: 0 0 220px;
        min-height: 220px;
    }

    .work-content {
        padding: 1.5rem;
    }

    .work-content h2 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .work-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .work-price {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .btn-text {
        width: 100%;
        justify-content: center;
        padding: 1rem;
        background: var(--accent-soft);
        border-radius: 10px;
    }
}

/* ===== UI FIXES (REGIONS & CTA) ===== */
.regions-mobile-phone {
    font-weight: 700;
    white-space: nowrap;
    color: #ffffff !important;
}

.regions-footer-cta p {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

@media (max-width: 600px) {
    .regions-mobile-phone {
        display: block;
        margin-top: 5px;
    }

    .cta-content {
        padding-left: 20px;
        margin-top: 1rem;
        padding-right: 20px;
    }
}

/* Сообщение об успехе (Modal & Form) */
.form-success-message {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
    min-height: 200px;
}

.form-success-message.active {
    display: flex;
}

.form-success-message i {
    width: 80px;
    height: 80px;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    display: block;
}

.form-success-message h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.form-success-message p {
    color: var(--muted-text);
    font-size: 1.1rem;
}

.form-success-message strong {
    color: var(--accent-color);
}