/* ===== CSS VARIABLES ===== */
:root {
    --primary-color: #4f46e5;
    --primary-dark: #3730a3;
    --primary-light: #6366f1;
    --secondary-color: #64748b;
    --accent-color: #ff6b6b;
    --accent-hover: #ff5252;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --text-white: #ffffff;
    --bg-color: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #f1f5f9;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-gradient-alt: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #ec4899 100%);
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5em;
    color: var(--text-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

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

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== HEADER ===== */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    min-height: 80px;
}

.logo {
    flex-shrink: 0;
}

.logo h1 {
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    white-space: nowrap;
}

.logo a {
    text-decoration: none;
}

.logo a:hover {
    text-decoration: none;
}

/* ===== NAVIGATION ===== */
.main-navigation {
    display: block;
}

.main-navigation ul,
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    flex-wrap: wrap;
}

.main-navigation li,
.nav-menu li {
    margin: 0;
    padding: 0;
    position: relative;
}

.main-navigation a,
.nav-menu a {
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    transition: var(--transition);
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    position: relative;
    display: block;
    white-space: nowrap;
    font-size: 0.95rem;
    margin: 0 0.25rem;
    border: 1px solid transparent;
}

.main-navigation a:hover,
.nav-menu a:hover,
.main-navigation a.selected,
.nav-menu a.selected {
    color: var(--primary-color);
    background: rgba(79, 70, 229, 0.1);
    text-decoration: none;
    transform: translateY(-1px);
    border-color: rgba(79, 70, 229, 0.2);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.15);
}

.main-navigation a:active,
.nav-menu a:active {
    transform: translateY(0);
}

/* Responsive menu */
@media (max-width: 1200px) {
    .main-navigation ul,
    .nav-menu {
        gap: 0;
    }

    .main-navigation a,
    .nav-menu a {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) {
    .main-navigation a,
    .nav-menu a {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .header-content {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .logo h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .main-navigation {
        display: none;
    }

    .mobile-navigation {
        display: block;
    }

    .header-content {
        justify-content: center;
        text-align: center;
    }

    .logo h1 {
        font-size: 1.25rem;
    }
}

/* ===== MOBILE MENU ===== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-color);
    transition: var(--transition);
}

.mobile-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.mobile-navigation.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    padding: 1rem;
}

.mobile-menu ul,
.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-menu li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu li:last-child {
    border-bottom: none;
}

.mobile-menu a {
    display: block;
    padding: 1rem 0;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.mobile-menu a:hover,
.mobile-menu a.selected {
    color: var(--primary-color);
    text-decoration: none;
    padding-left: 1rem;
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 0;
}

.page-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

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

.content-grid.has-left {
    grid-template-columns: 300px 1fr;
}

.content-grid.has-right {
    grid-template-columns: 1fr 300px;
}

.content-grid.has-both {
    grid-template-columns: 300px 1fr 300px;
}

.content-center {
    min-width: 0;
}

.sidebar {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

/* ===== BLOCKS ===== */
.header-blocks,
.top-blocks,
.bottom-blocks {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.module {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: var(--transition);
}

.module:hover {
    box-shadow: var(--shadow-lg);
}

.module h3 {
    background: var(--bg-dark);
    padding: 1rem 1.5rem;
    margin: 0;
    font-size: 1.125rem;
    border-bottom: 1px solid var(--border-color);
}

.module-content {
    padding: 1.5rem;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
}

/* ===== WELCOME SECTION ===== */
.welcome-section {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
}

.welcome-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.welcome-section p {
    font-size: 1.125rem;
    color: var(--text-light);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--text-color);
    color: white;
    margin-top: auto;
}

.footer-content {
    padding: 2rem 0;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.footer-bottom a {
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--text-white);
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section ul li:last-child {
    border-bottom: none;
}

/* ===== COOKIE INFO ===== */
.cookie-info {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--text-color);
    color: white;
    padding: 1rem;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-close {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.cookie-close:hover {
    background: var(--primary-dark);
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }

/* ===== HERO SECTION ===== */
.hero-section {
    background: var(--bg-gradient-alt);
    color: var(--text-white);
    padding: 6rem 0 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="rgba(255,255,255,0.1)"/><stop offset="100%" stop-color="rgba(255,255,255,0)"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>');
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

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

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-white);
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.375rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.6;
}

.hero-features {
    font-size: 1rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--text-white);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.6);
    text-decoration: none;
    color: var(--text-white);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--text-white);
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--text-white);
}

/* ===== SERVICES SECTION ===== */
.services-section {
    margin: 4rem 0;
    padding: 4rem 0;
    background: var(--bg-color);
}

.services-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.services-section .section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--bg-color);
    padding: 3rem 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--bg-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-white);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== FEATURES SECTION ===== */
.features-section {
    margin: 4rem 0;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: var(--border-radius-lg);
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(79,70,229,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.features-section h2 {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

.feature-item {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.feature-item p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ===== SEARCH FORM ===== */
.search-form {
    margin: 1rem 0;
}

.search-input-group {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
}

.search-button {
    padding: 0.75rem 1rem;
    background: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    transition: var(--transition);
}

.search-button:hover {
    background: var(--primary-dark);
}

/* ===== CONTACT PAGE ===== */
.contact-page {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-form {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.contact-info-section {
    padding: 2rem;
}

.contact-info-grid {
    display: grid;
    gap: 2rem;
    margin-top: 1.5rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.contact-info-item h3 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
}

.contact-info-item p {
    margin: 0;
    color: var(--text-light);
}

.contact-info-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-info-item a:hover {
    text-decoration: underline;
}

/* ===== ARTICLE/PAGE CONTENT ===== */
.page-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-meta {
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    color: var(--text-light);
}

.article-content {
    line-height: 1.8;
    margin-bottom: 2rem;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

.article-gallery {
    margin: 2rem 0;
}

.article-tags {
    margin: 2rem 0;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
}

.article-comments {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* ===== ALERTS ===== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
}

.alert-success {
    background: #d1fae5;
    border-color: #a7f3d0;
    color: #065f46;
}

.alert-error {
    background: #fee2e2;
    border-color: #fecaca;
    color: #991b1b;
}

.alert-info {
    background: #dbeafe;
    border-color: #bfdbfe;
    color: #1e40af;
}
