@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --primary-blue: #003366; 
    --accent-blue: #00A3E0;  
    --soft-blue: #E1F5FE;
    --text-main: #1A202C;
    --text-muted: #718096;
    --white: #FFFFFF;
    --bg-light: #F7FAFC;
    --bg-dark: #0A192F;
    
    /* Gaps & Sizing */
    --container-width: 1200px;
    --section-padding: 80px 0;
    
    /* Transitions */
    --transition-fast: all 0.2s ease-in-out;
    --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .brand-font {
    font-family: 'Outfit', sans-serif;
    color: var(--primary-blue);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none; /* Global List Reset to fix Menu Bullets */
}

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

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

/* --- Utility Classes --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-slow);
    border: none;
    font-size: 1rem;
    text-align: center;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--accent-blue);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(0, 163, 224, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 163, 224, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-blue);
    color: var(--accent-blue);
}

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

.tagline {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* --- Header Section --- */
.main-header {
    background: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.brand-font a {
    font-size: 1.8rem;
    letter-spacing: -0.02em;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--accent-blue);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-link {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-blue);
}

/* --- Layout Sections --- */
section {
    padding: var(--section-padding);
}

.bg-alt {
    background-color: var(--bg-light);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.text-center .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-blue);
    border-radius: 2px;
}

/* Slider (Swiper Integration) */
.slider-container.swiper {
    padding: 20px 0 40px;
}

.swiper-wrapper {
    align-items: stretch !important; /* Force all slides in row to match height */
}

.swiper-slide {
    height: auto !important; /* Allow flex stretching */
    display: flex;
}

.slider-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.slider-arrow {
    background: var(--white);
    border: 1px solid var(--soft-blue);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    font-size: 1.2rem;
    color: var(--primary-blue);
    user-select: none;
    z-index: 10;
}

.slider-arrow:hover {
    background: var(--soft-blue);
    color: var(--accent-blue);
    border-color: var(--accent-blue);
}

.slider-arrow.swiper-button-disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* Card Consistency (Universal) */
.product-card, .feature-card, .service-mini-card, .service-detail-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-info, .feature-card, .service-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    min-height: 2.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.product-info .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
}

.product-info .btn, .service-info .btn, .feature-card .icon {
    margin-top: auto;
}

/* Specific Card Layouts */
.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    transition: var(--transition-slow);
    width: 100%;
    flex: 1;
}

.product-img {
    height: 240px;
    flex-shrink: 0;
    background-color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.product-img img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    padding: 0;
    transition: var(--transition-fast);
}

.product-info {
    padding: 24px;
}

.placeholder-img {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.placeholder-img::after {
    content: 'ТЕРРАСАН';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #94a3b8;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    opacity: 0.4;
}

/* Icon Styles (Global) */
.icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    color: var(--accent-blue);
    background: var(--soft-blue);
    border-radius: 16px;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.icon svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-card:hover .icon {
    background: var(--accent-blue);
    color: var(--white);
    transform: translateY(-5px);
}

/* Hero Styles */
.hero {
    background-color: var(--white);
    padding: 60px 0 100px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.highlight {
    color: var(--accent-blue);
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

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

.service-mini-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition-fast);
    border: 1px solid #e2e8f0;
}

.service-mini-card:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Footer Section */
.main-footer {
    background: var(--bg-dark);
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: #94a3b8;
}

.footer-col ul li a:hover {
    color: var(--accent-blue);
}

/* Service Detail Additions */
.service-img-placeholder {
    height: 180px;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.icon-overlay {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    padding: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.icon-overlay svg {
    width: 48px;
    height: 48px;
    color: var(--primary-blue);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

@media (max-width: 1024px) {
    .hero-title { font-size: 2.8rem; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .services-mini-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-subtitle { margin: 0 auto 2.5rem; }
    .hero-btns { justify-content: center; }
    .grid-3 { grid-template-columns: 1fr; }
    .header-right { display: none; } /* Mobile menu needed */
}

@media (max-width: 450px) {
    .product-img {
        height: 200px;
    }
}