/* ============================================
   Custom styles for Semicvetik website
   Optimized and refactored design system
   ============================================ */

/* ============================================
   CSS Variables - Color System
   ============================================ */
:root {
    /* Primary Colors */
    --primary-color: #4CAF50;
    --primary-hover: #43A047;
    --primary-light: #66BB6A;
    --secondary-color: #66BB6A;
    --accent-color: #FFC107;
    --accent-hover: #FFD54F;
    
    /* Rainbow Colors */
    --red-color: #F44336;
    --orange-color: #FF9800;
    --yellow-color: #FFC107;
    --green-color: #4CAF50;
    --blue-color: #2196F3;
    --purple-color: #9C27B0;
    --pink-color: #E91E63;
    
    /* Neutral Colors */
    --dark-color: #2C3E50;
    --text-color: #2C3E50;
    --text-muted: #495057;
    --text-light: #6C757D;
    --light-color: #F8F9FA;
    --white: #ffffff;
    --border-color: #E9ECEF;
    --border-light: #e9ecef;
    
    /* Background Colors */
    --bg-white: #ffffff;
    --bg-light: #F8F9FA;
    --bg-dark: #2C3E50;
    
    /* Hero Gradient */
    --hero-gradient-start: #667eea;
    --hero-gradient-end: #764ba2;
    
    /* Social Colors */
    --telegram-color: #0088cc;
    --telegram-hover: #006699;
    --facebook-color: #4267B2;
    --facebook-hover: #365899;
    --instagram-color: #E4405F;
    --instagram-hover: #C13584;
    
    /* Spacing System (4px base) */
    --spacing-xs: 0.25rem;   /* 4px */
    --spacing-sm: 0.5rem;    /* 8px */
    --spacing-md: 1rem;      /* 16px */
    --spacing-lg: 1.5rem;    /* 24px */
    --spacing-xl: 2rem;     /* 32px */
    --spacing-2xl: 3rem;    /* 48px */
    --spacing-3xl: 4rem;    /* 64px */
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 50px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 10px 40px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============================================
   Base Styles & Typography
   ============================================ */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    background-color: var(--bg-white);
    color: var(--text-color);
    font-size: 16px;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'Nunito', 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    color: var(--dark-color);
    margin-top: 0;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: var(--spacing-md);
}

.lead {
    font-weight: 400;
    color: var(--text-muted);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
}

.text-muted {
    color: var(--text-muted);
}

.handwritten {
    font-family: 'Caveat', 'Inter', 'Segoe UI', cursive;
    font-weight: 700;
}

/* ============================================
   Responsive Typography
   ============================================ */
.display-md-3 {
    font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
}

.display-md-4 {
    font-size: clamp(1.75rem, 3.5vw + 1rem, 3rem);
}

.display-md-5 {
    font-size: clamp(1.5rem, 2.5vw + 1rem, 2.5rem);
}

.display-md-6 {
    font-size: clamp(1.25rem, 1.5vw + 1rem, 2rem);
}

@media (min-width: 768px) {
    .display-md-3 {
        font-size: calc(1.3rem + 4.2vw);
    }
    .display-md-4 {
        font-size: calc(1.3rem + 3.6vw);
    }
    .display-md-5 {
        font-size: calc(1.25rem + 2.7vw);
    }
    .display-md-6 {
        font-size: calc(1.1rem + 1.5vw);
    }
}

@media (min-width: 992px) {
    .display-lg-3 {
        font-size: calc(1.3rem + 4.2vw);
    }
    .display-lg-4 {
        font-size: calc(1.3rem + 3.6vw);
    }
    .display-lg-5 {
        font-size: calc(1.25rem + 2.7vw);
    }
    .display-lg-6 {
        font-size: calc(1.1rem + 1.5vw);
    }
}

.small-md-normal {
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .small-md-normal {
        font-size: 1rem;
    }
    .fs-md-4 {
        font-size: 1.5rem;
    }
    .fs-md-5 {
        font-size: 1.25rem;
    }
}

@media (max-width: 767px) {
    .fs-md-4 {
        font-size: 1.25rem;
    }
    .fs-md-5 {
        font-size: 1.1rem;
    }
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes petalFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.flower-petal {
    animation: petalFloat 3s ease-in-out infinite;
}

/* ============================================
   Navigation Bar
   ============================================ */
.navbar {
    box-shadow: var(--shadow-sm);
    background: var(--bg-white);
    padding: var(--spacing-sm) 0;
}

.navbar-brand {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(1.25rem, 2vw, 1.8rem);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: color var(--transition-base);
}

.navbar-brand:hover {
    color: var(--primary-hover);
}

.navbar-nav .nav-link {
    padding: 0.4rem 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition-fast);
    text-decoration: none;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.nav-link {
    font-weight: 600;
    color: var(--text-color);
    transition: all var(--transition-base);
    position: relative;
    padding: 0.5rem 1rem;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: all var(--transition-base);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 80%;
}

.navbar-nav .dropdown-toggle::after {
    margin-left: 0.3rem;
}

.navbar-phone {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--transition-base);
}

.navbar-phone:hover {
    color: var(--primary-hover);
}

.navbar-phone i {
    margin-right: 8px;
}

.navbar-toggler {
    border: 2px solid var(--primary-color);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%234CAF50' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================
   Dropdown Menu
   ============================================ */
.dropdown-menu {
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-sm);
    padding: var(--spacing-sm) 0;
    margin-top: var(--spacing-sm);
}

.dropdown-item {
    padding: var(--spacing-sm) 1.25rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: background-color var(--transition-fast), color var(--transition-fast);
    text-decoration: none;
    display: block;
}

.dropdown-item:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    margin-right: 8px;
}

/* ============================================
   Diagnostics Section
   ============================================ */
.diagnostics-section {
    background: linear-gradient(135deg, #5568d3 0%, #6a3e96 100%);
    position: relative;
    overflow: hidden;
}

.diagnostics-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255,255,255,0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255,255,255,0.05) 0%, transparent 40%);
    pointer-events: none;
}

.diagnostics-section .container {
    position: relative;
    z-index: 1;
}

.diagnostics-section h2,
.diagnostics-section h5,
.diagnostics-section p,
.diagnostics-section i {
    color: #ffffff !important;
}

.diagnostics-section h2 {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-weight: 800 !important;
}

.diagnostics-section h5 {
    font-weight: 700 !important;
}

.diagnostics-section p {
    opacity: 1 !important;
}

.diagnostics-section i {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.diagnostics-section .btn-light {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    font-weight: 800 !important;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 650px;
    position: relative;
    overflow: hidden;
    padding: var(--spacing-3xl) 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    animation: fadeInUp 0.8s ease-in-out;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
    color: #ffffff !important;
    font-weight: 800;
}

.hero-section .lead {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    color: #ffffff !important;
    font-weight: 500;
}

.hero-section .text-white {
    color: #ffffff !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.hero-section .handwritten {
    color: #FFD700 !important;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1s ease-in-out 0.3s both;
}

.hero-badge .badge {
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    padding: 0.6rem 1.3rem;
    background: rgba(255, 255, 255, 0.95) !important;
    color: var(--dark-color) !important;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-badge .badge .text-warning {
    color: #FFA500 !important;
}

.hero-features {
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-features .fas {
    color: #FFD700;
    filter: drop-shadow(0 2px 6px rgba(255, 215, 0, 0.5));
    font-size: 1.3rem;
}

/* ============================================
   Cards
   ============================================ */
.card {
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--bg-white);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-title {
    color: var(--dark-color);
    font-weight: 600;
}

.card-body {
    padding: var(--spacing-lg);
}

.card-footer {
    border-top: none;
}

/* Rainbow Service Cards */
.service-card-1 {
    border-top: 5px solid var(--red-color);
    background: linear-gradient(to bottom, rgba(244, 67, 54, 0.03) 0%, var(--bg-white) 100%);
}

.service-card-1 .card-title {
    color: var(--red-color);
    font-size: 1.4rem;
}

.service-card-2 {
    border-top: 5px solid var(--orange-color);
    background: linear-gradient(to bottom, rgba(255, 152, 0, 0.03) 0%, var(--bg-white) 100%);
}

.service-card-2 .card-title {
    color: var(--orange-color);
    font-size: 1.4rem;
}

.service-card-3 {
    border-top: 5px solid var(--accent-color);
    background: linear-gradient(to bottom, rgba(255, 193, 7, 0.03) 0%, var(--bg-white) 100%);
}

.service-card-3 .card-title {
    color: var(--accent-color);
    font-size: 1.4rem;
}

.service-card-4 {
    border-top: 5px solid var(--primary-color);
    background: linear-gradient(to bottom, rgba(76, 175, 80, 0.03) 0%, var(--bg-white) 100%);
}

.service-card-4 .card-title {
    color: var(--primary-color);
    font-size: 1.4rem;
}

.service-card-5 {
    border-top: 5px solid var(--blue-color);
    background: linear-gradient(to bottom, rgba(33, 150, 243, 0.03) 0%, var(--bg-white) 100%);
}

.service-card-5 .card-title {
    color: var(--blue-color);
    font-size: 1.4rem;
}

.service-card-6 {
    border-top: 5px solid var(--purple-color);
    background: linear-gradient(to bottom, rgba(156, 39, 176, 0.03) 0%, var(--bg-white) 100%);
}

.service-card-6 .card-title {
    color: var(--purple-color);
    font-size: 1.4rem;
}

.card .badge {
    font-size: 1.1rem;
    padding: 0.6rem 1.2rem;
    font-weight: 700;
}

.card .fw-bold.fs-5 {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: var(--primary-color) !important;
}

.card .emoji-icon {
    font-size: 3.5rem !important;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    margin-bottom: 1rem;
}

.card .fs-1,
.card .fs-3 {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    color: var(--white);
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
    background: var(--primary-hover);
    color: var(--white);
}

.btn-primary:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 25px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    transition: all var(--transition-base);
    background: var(--bg-white);
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: left var(--transition-base);
    z-index: -1;
}

.btn-outline-primary:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    border-color: var(--primary-hover);
}

.btn-outline-primary:hover::before {
    left: 0;
}

.btn-outline-primary:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn-light {
    background: #ffffff !important;
    color: var(--dark-color) !important;
    border: none;
    padding: 14px 32px;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-light:hover {
    background: #f8f9fa !important;
    color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    text-decoration: none;
}

.btn-light:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.btn-light:active {
    transform: translateY(0);
}

.btn-warning {
    background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%);
    border: none;
    color: var(--dark-color);
    padding: 14px 32px;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #FFE44D 0%, #FFD54F 100%);
    color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.5);
}

.btn-warning:focus {
    outline: 3px solid rgba(255, 193, 7, 0.5);
    outline-offset: 2px;
}

.btn-warning:active {
    transform: translateY(-1px);
}

/* ============================================
   Forms
   ============================================ */
.form-control {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 16px;
    transition: all var(--transition-base);
    font-size: 16px;
    width: 100%;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.15);
    outline: none;
}

.form-control::placeholder {
    color: #ADB5BD;
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: var(--spacing-sm);
}

.input-group {
    max-width: 600px;
}

/* ============================================
   Section Titles
   ============================================ */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: var(--spacing-2xl);
    color: var(--dark-color);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 6px;
    background: linear-gradient(90deg,
        var(--red-color) 0%,
        var(--orange-color) 16.66%,
        var(--accent-color) 33.33%,
        var(--primary-color) 50%,
        var(--blue-color) 66.66%,
        var(--purple-color) 83.33%,
        var(--pink-color) 100%
    );
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.section-divider {
    height: 2px;
    width: 60px;
    background: var(--primary-color);
    margin: var(--spacing-md) auto;
}

/* ============================================
   Contact Section
   ============================================ */
#contact {
    background: linear-gradient(to bottom, var(--bg-light) 0%, var(--bg-white) 100%);
}

.contact-info {
    background: var(--bg-white);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(76, 175, 80, 0.1);
    transition: all var(--transition-base);
}

.contact-info:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.contact-info i {
    color: var(--primary-color);
    font-size: 1.4rem;
    width: 30px;
    text-align: center;
}

.contact-info p {
    margin-bottom: var(--spacing-lg);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-color);
}

.social-links {
    display: flex;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    flex-wrap: wrap;
}

.social-links a {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    transition: all var(--transition-base);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: relative;
}

.social-links a::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: inherit;
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: -1;
}

.social-links a:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.social-links a:hover::before {
    opacity: 0.3;
}

.social-links a:focus {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

.social-links a i {
    font-size: 1.4rem;
}

.social-links a:nth-child(1) {
    background: linear-gradient(135deg, #667eea 0%, #5568d3 100%);
}

.social-links a:nth-child(1):hover {
    background: linear-gradient(135deg, #7c8ef0 0%, #667eea 100%);
}

.social-links a:nth-child(2) {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-links a:nth-child(2):hover {
    background: linear-gradient(135deg, #ffa94d 0%, #f09433 25%, #e6683c 50%, #dc2743 75%, #cc2366 100%);
}

.social-links a:nth-child(3) {
    background: linear-gradient(135deg, var(--telegram-color) 0%, #006699 100%);
}

.social-links a:nth-child(3):hover {
    background: linear-gradient(135deg, #00aaff 0%, var(--telegram-color) 100%);
}

/* ============================================
   Footer
   ============================================ */
footer {
    margin-top: auto;
    background: linear-gradient(135deg, #2C3E50 0%, #34495e 100%);
    color: var(--white);
    padding: var(--spacing-2xl) 0;
    border-top: 3px solid var(--primary-color);
}

footer p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ============================================
   Content Sections
   ============================================ */
section {
    position: relative;
}

section:nth-of-type(even) {
    background: linear-gradient(to bottom, rgba(248, 249, 250, 0.5) 0%, var(--bg-white) 100%);
}

section h2 {
    font-weight: 800;
    letter-spacing: -0.5px;
}

.content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: var(--spacing-md) 0;
}

.content h2 {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    color: var(--dark-color);
}

.content h3 {
    margin-top: var(--spacing-lg);
    margin-bottom: 0.75rem;
}

.service-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.service-content h3 {
    color: var(--dark-color);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.service-content h4 {
    color: var(--primary-color);
    margin-top: var(--spacing-lg);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.service-content ul {
    list-style: none;
    padding-left: 0;
}

.service-content ul li {
    padding: var(--spacing-sm) 0;
    padding-left: var(--spacing-xl);
    position: relative;
}

.service-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ============================================
   Alerts
   ============================================ */
.alert {
    border-radius: var(--radius-lg);
    border: none;
    padding: 1.25rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 5px solid var(--primary-color);
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-left: 5px solid var(--red-color);
}

/* ============================================
   Breadcrumbs
   ============================================ */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: var(--spacing-md);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--primary-color);
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.breadcrumb-item.active {
    color: var(--dark-color);
}

/* ============================================
   Trust Section
   ============================================ */
.trust-section {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.trust-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.trust-section .container {
    position: relative;
    z-index: 1;
}

.trust-section .stat-number,
.trust-section .stat-item div {
    color: #ffffff !important;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    font-weight: 800;
}

.trust-section .text-white {
    color: #ffffff !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Stats Section
   ============================================ */
.stat-item {
    padding: var(--spacing-md);
}

.stat-number {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
}

/* ============================================
   FAQ Styles
   ============================================ */
.faq-filter-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.faq-filter-btn:hover {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--border-light) 100%);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
}

.faq-filter-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.faq-filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    transform: translateY(-2px);
}

.faq-filter-btn.active:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.accordion-item {
    border: none;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--spacing-md);
    background: var(--bg-white);
}

.accordion-button {
    background-color: var(--bg-white);
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
    padding: 1.25rem 1.5rem;
    border: none;
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    color: var(--primary-color);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%234CAF50'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    width: 1.25rem;
    height: 1.25rem;
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%234CAF50'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(180deg);
}

.accordion-body {
    padding: var(--spacing-lg);
    background: var(--bg-white);
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================
   Flower Decoration
   ============================================ */
.flower-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
}

.flower-icon::before,
.flower-icon::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
}

.flower-icon::before {
    top: -5px;
    left: 10px;
}

.flower-icon::after {
    bottom: -5px;
    left: 10px;
}

/* ============================================
   Telegram Float Button
   ============================================ */
.telegram-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
    color: var(--white);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.5);
    z-index: 1000;
    transition: all var(--transition-base);
    text-decoration: none;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.telegram-float::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.3) 0%, transparent 100%);
    animation: pulse 2s infinite;
    z-index: -1;
}

.telegram-float:hover {
    background: linear-gradient(135deg, #00aaff 0%, #0088cc 100%);
    transform: scale(1.15);
    box-shadow: 0 8px 30px rgba(0, 136, 204, 0.7);
    color: var(--white);
}

.telegram-float:focus {
    outline: 3px solid rgba(0, 136, 204, 0.5);
    outline-offset: 4px;
}

.telegram-float i {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* ============================================
   Loading Spinner
   ============================================ */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-overlay.show {
    display: flex;
}

/* ============================================
   Utility Classes
   ============================================ */
.shadow-custom {
    box-shadow: var(--shadow-xl);
}

.text-primary-custom {
    color: var(--primary-color);
}

.text-white {
    color: var(--white);
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.85);
}

a {
    transition: all var(--transition-base);
}

/* ============================================
   Responsive Styles - Mobile First
   ============================================ */
@media (max-width: 767px) {
    .hero-section {
        min-height: auto;
        padding: var(--spacing-2xl) 0;
    }
    
    .hero-section h1 {
        font-size: clamp(1.75rem, 5vw, 2rem);
    }
    
    .hero-section .handwritten {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }
    
    .hero-section .lead {
        font-size: clamp(1rem, 3vw, 1.1rem);
    }
    
    .hero-badge .badge {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    
    .hero-features {
        padding: var(--spacing-md);
    }
    
    .section-title {
        font-size: clamp(1.5rem, 4vw, 1.75rem);
    }
    
    .btn-lg {
        width: 100%;
        margin-bottom: var(--spacing-sm);
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .display-3 {
        font-size: clamp(2rem, 5vw, 2.5rem);
    }
    
    .display-4 {
        font-size: clamp(1.75rem, 4vw, 2rem);
    }
    
    .display-5 {
        font-size: clamp(1.5rem, 3vw, 1.8rem);
    }
    
    .card {
        margin-bottom: var(--spacing-lg);
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .contact-info {
        margin-bottom: var(--spacing-xl);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .social-links a {
        width: 45px;
        height: 45px;
    }
    
    .text-center.p-4 {
        padding: var(--spacing-lg);
    }
    
    .service-content h3 {
        font-size: 1.4rem;
    }
    
    .service-content h4 {
        font-size: 1.2rem;
    }
    
    .telegram-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 28px;
    }
    
    .faq-filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
    
    div[style*="font-size: 200px"] {
        font-size: 120px;
    }
    
    div[style*="font-size: 150px"] {
        font-size: 100px;
    }
    
    .fs-1 {
        font-size: 2rem;
    }
    
    .py-5 {
        padding-top: var(--spacing-xl);
        padding-bottom: var(--spacing-xl);
    }
    
    .mb-5 {
        margin-bottom: var(--spacing-xl);
    }
    
    .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

@media (max-width: 991px) {
    .navbar-nav {
        padding-top: var(--spacing-md);
    }
    
    .navbar-nav .nav-item {
        margin-bottom: 0.25rem;
    }
    
    .dropdown-menu {
        margin-top: 0;
        border: none;
        box-shadow: none;
        background-color: var(--bg-light);
    }
    
    .navbar-collapse {
        background: var(--white);
        padding: var(--spacing-md);
        margin-top: var(--spacing-md);
        border-radius: 10px;
        box-shadow: var(--shadow-md);
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .navbar-phone {
        display: block;
        text-align: center;
        padding: var(--spacing-md);
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        color: var(--white);
        border-radius: 10px;
        margin-top: var(--spacing-md);
    }
}
