* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #2c3e50;
    --color-secondary: #34495e;
    --color-accent: #7f8c8d;
    --color-text: #2c3e50;
    --color-text-light: #5a6c7d;
    --color-bg: #f8f9fa;
    --color-bg-light: #ffffff;
    --color-border: #e1e8ed;
    --color-gradient-start: #2c3e50;
    --color-gradient-end: #34495e;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 8px rgba(44, 62, 80, 0.08);
    --shadow-md: 0 4px 16px rgba(44, 62, 80, 0.12);
    --shadow-lg: 0 8px 32px rgba(44, 62, 80, 0.16);
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg-light);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-bg-light);
    border-top: 2px solid var(--color-border);
    padding: 20px;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-content p {
    flex: 1;
    min-width: 250px;
    margin: 0;
    color: var(--color-text);
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-accept,
.btn-reject,
.btn-settings {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-accept {
    background: var(--color-primary);
    color: white;
}

.btn-accept:hover {
    background: var(--color-secondary);
}

.btn-reject {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-reject:hover {
    background: var(--color-bg);
}

.btn-settings {
    background: var(--color-accent);
    color: white;
}

.btn-settings:hover {
    background: var(--color-secondary);
}

.cookie-settings {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-bg-light);
    border-top: 2px solid var(--color-border);
    padding: 30px;
    z-index: 1001;
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.cookie-settings.show {
    transform: translateY(0);
}

.settings-content {
    max-width: 600px;
    margin: 0 auto;
}

.settings-content h3 {
    margin-bottom: 20px;
    color: var(--color-primary);
    font-family: var(--font-heading);
}

.setting-item {
    margin-bottom: 15px;
}

.setting-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--color-text);
}

.setting-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.btn-save {
    margin-top: 20px;
    padding: 12px 24px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-primary);
    font-weight: 500;
    transition: var(--transition);
}

.btn-save:hover {
    background: var(--color-secondary);
}

.main-header {
    background: linear-gradient(135deg, var(--color-gradient-start) 0%, var(--color-gradient-end) 100%);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-section {
    flex-shrink: 0;
}

.logo-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    color: white;
    transition: var(--transition);
}

.logo-link:hover {
    opacity: 0.9;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.logo-subtitle {
    font-size: 12px;
    font-weight: 300;
    opacity: 0.9;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    flex-wrap: wrap;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
    opacity: 0.9;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-section {
    background: linear-gradient(135deg, var(--color-gradient-start) 0%, var(--color-gradient-end) 100%);
    padding: 80px 20px;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text-wrapper {
    z-index: 2;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: white;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.8;
    opacity: 0.95;
    color: white;
}

.hero-visual {
    position: relative;
    height: 300px;
}

.fiber-visualization {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.fiber-visualization::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.intro-section {
    padding: 80px 20px;
    background: var(--color-bg-light);
}

.intro-article {
    max-width: 900px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 30px;
}

.article-meta {
    font-size: 14px;
    color: var(--color-text-light);
}

.article-content {
    font-size: 17px;
    line-height: 1.9;
    color: var(--color-text);
}

.lead-text {
    font-size: 20px;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 25px;
    font-weight: 400;
}

.articles-preview {
    padding: 80px 20px;
    background: var(--color-bg);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--color-primary);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.article-card {
    background: var(--color-bg-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    transition: var(--transition);
}

.article-card:hover .card-image {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-primary);
    line-height: 1.3;
}

.card-excerpt {
    color: var(--color-text-light);
    margin-bottom: 20px;
    flex: 1;
    line-height: 1.7;
}

.card-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    display: inline-block;
}

.card-link:hover {
    color: var(--color-secondary);
    transform: translateX(5px);
}

.cta-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--color-gradient-start) 0%, var(--color-gradient-end) 100%);
    color: white;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.cta-text {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.95;
    color: white;
}

.btn-primary {
    display: inline-block;
    padding: 15px 35px;
    background: white;
    color: var(--color-primary);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.main-footer {
    background: var(--color-primary);
    color: white;
    padding: 60px 20px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 20px;
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 10px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.footer-address {
    font-style: normal;
}

.footer-address a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.footer-address a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: white;
    text-decoration: underline;
}

.article-page {
    padding: 40px 0;
}

.article-header-section {
    background: linear-gradient(135deg, var(--color-gradient-start) 0%, var(--color-gradient-end) 100%);
    color: white;
    padding: 60px 20px 40px;
}

.breadcrumb {
    margin-bottom: 20px;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 14px;
}

.breadcrumb-list li {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-list li::after {
    content: '/';
    margin-left: 10px;
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-list li:last-child::after {
    display: none;
}

.breadcrumb-list a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.breadcrumb-list a:hover {
    color: white;
}

.article-header {
    max-width: 900px;
    margin: 0 auto;
}

.article-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.article-title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: white;
}

.article-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.article-content-section {
    padding: 60px 20px;
    background: var(--color-bg-light);
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.9;
    color: var(--color-text);
}

.article-lead {
    font-size: 20px;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 30px;
    font-weight: 400;
}

.article-body h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 600;
    margin-top: 50px;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.article-body h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    margin-top: 35px;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.article-body p {
    margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-body a {
    color: var(--color-primary);
    text-decoration: underline;
    transition: var(--transition);
}

.article-body a:hover {
    color: var(--color-secondary);
}

.article-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
    flex-wrap: wrap;
    gap: 20px;
}

.nav-link-prev,
.nav-link-next {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.nav-link-prev:hover,
.nav-link-next:hover {
    color: var(--color-secondary);
    transform: translateX(-3px);
}

.nav-link-next:hover {
    transform: translateX(3px);
}

.about-page,
.contact-page {
    padding: 40px 0;
}

.about-hero,
.contact-hero {
    background: linear-gradient(135deg, var(--color-gradient-start) 0%, var(--color-gradient-end) 100%);
    color: white;
    padding: 80px 20px 60px;
    text-align: center;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.page-subtitle {
    font-size: 20px;
    opacity: 0.95;
    color: white;
}

.about-content,
.contact-content {
    padding: 60px 20px;
    background: var(--color-bg-light);
}

.about-grid,
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.about-text h2:first-child {
    margin-top: 0;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.9;
    color: var(--color-text);
}

.about-text ul {
    margin: 20px 0;
    padding-left: 30px;
}

.about-text li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.about-text a {
    color: var(--color-primary);
    text-decoration: underline;
}

.about-text a:hover {
    color: var(--color-secondary);
}

.about-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-card {
    background: var(--color-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.facts-list {
    list-style: none;
}

.facts-list li {
    margin-bottom: 12px;
    line-height: 1.7;
    color: var(--color-text);
}

.facts-list strong {
    color: var(--color-primary);
}

.sidebar-links {
    list-style: none;
}

.sidebar-links li {
    margin-bottom: 12px;
}

.sidebar-links a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

.sidebar-links a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

.contact-form-wrapper h2,
.contact-info h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--color-primary);
}

.contact-form {
    background: var(--color-bg);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-text);
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 15px;
    color: var(--color-text);
    background: var(--color-bg-light);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success,
.form-error {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.form-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    background: var(--color-bg);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.info-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.info-card p {
    color: var(--color-text);
    line-height: 1.7;
}

.info-card a {
    color: var(--color-primary);
    text-decoration: none;
}

.info-card a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    color: var(--color-text);
    line-height: 1.7;
}

.info-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-navigation {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .article-title {
        font-size: 32px;
    }
    
    .page-title {
        font-size: 36px;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .main-nav {
        width: 100%;
    }
    
    .nav-list {
        width: 100%;
        flex-direction: column;
        gap: 15px;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-buttons {
        width: 100%;
    }
    
    .btn-accept,
    .btn-reject,
    .btn-settings {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 60px 20px;
    }
    
    .intro-section,
    .articles-preview,
    .cta-section {
        padding: 60px 20px;
    }
    
    .contact-form {
        padding: 25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
}

.skip-link:focus {
    top: 0;
}

