﻿



:root {
    --primary: #0066cc;
    --primary-dark: #004999;
    --secondary: #00aa88;
    --danger: #dd3333;
    --light-bg: #ffffff;
    --border: #e0e0e0;
    --text: #333;
    --text-light: #666;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.15);
    --radius: 8px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    margin: 0;
    padding: 0;
    background: white !important;
    line-height: 1;
    display: block;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background: white !important;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    display: block;
    border-top: none;
}




h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    font-weight: 600;
}

h1 { font-size: clamp(1.8rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 4vw, 2rem); }
h3 { font-size: clamp(1.1rem, 3vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }




.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

main {
    min-height: calc(100vh - 200px);
}




.main-header {
    background: white !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    margin: 0;
    padding: 0;
}

.navbar {
    padding: 1.2rem 0;
    margin: 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand img {
    height: 50px;
    width: auto;
}

.nav-brand h1 {
    font-size: 1.3rem;
    color: var(--primary);
    display: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.nav-menu > li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}


.nav-item {
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    top: calc(100% + 0.8rem);
    left: -20px;
    background: white;
    min-width: 280px;
    list-style: none;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    padding: 1.2rem 0;
    margin-top: 0;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 4px solid var(--primary);
}

.nav-item:hover .submenu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    margin: 0.4rem 0.8rem;
    padding: 0;
    border-bottom: none;
    list-style: none;
}

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

.submenu a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1.3rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-left: none;
    border-radius: 6px;
    position: relative;
}

.submenu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--primary);
    border-radius: 2px;
    transition: height 0.2s ease;
}

.submenu a:hover {
    background: linear-gradient(90deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 102, 204, 0.02) 100%);
    color: var(--primary);
    padding-left: 1.5rem;
}

.submenu a:hover::before {
    height: 20px;
}




.hero {
    position: relative;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 2rem;
}

.hero-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
    padding: 0 20px;
    text-align: center;
}

.hero-content h1 {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    color: var(--white);
}

.hero-content h2 {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: 2rem;
    opacity: 1;
    font-weight: 400;
    color: var(--white) !important;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
    line-height: 1.4;
}




.btn,
.btn-primary,
.btn-outline,
.btn-login,
.btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary,
.btn {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover,
.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

.btn-link {
    background: none;
    color: var(--primary);
    padding: 0.5rem 0;
}

.btn-link:hover {
    text-decoration: underline;
}




section {
    padding: 3rem 0;
}

section > .container {
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title h2 {
    margin-bottom: 0.5rem;
}

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




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

.card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

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

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.card-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}




.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

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

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}




.alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.alert-success {
    background: #e8f5e9;
    border-color: #4caf50;
    color: #2e7d32;
}

.alert-error,
.alert-danger {
    background: #ffebee;
    border-color: #f44336;
    color: #c62828;
}

.alert-warning {
    background: #fff3e0;
    border-color: #ff9800;
    color: #e65100;
}

.alert-info {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #0d47a1;
}




.footer {
    background: var(--text);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
}

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

.footer a:hover {
    text-decoration: underline;
}




.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

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

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

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }




@media (max-width: 1024px) {
    .container {
        max-width: 95%;
    }

    .grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .navbar .container {
        gap: 1rem;
    }

    .nav-menu {
        gap: 1rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        max-width: 100%;
    }

    html {
        font-size: 15px;
    }

    h1 { font-size: clamp(1.4rem, 5vw, 2rem); }
    h2 { font-size: clamp(1.1rem, 4vw, 1.6rem); }
    h3 { font-size: clamp(0.95rem, 3vw, 1.2rem); }

    .main-header {
        position: sticky;
        top: 0;
    }

    .navbar {
        padding: 0.8rem 0;
    }

    .navbar .container {
        gap: 0.8rem;
        flex-wrap: wrap;
    }

    .nav-brand img {
        height: 40px;
    }

    .nav-menu {
        width: 100%;
        gap: 0.5rem;
        font-size: 0.85rem;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .nav-menu a {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    section {
        padding: 1.5rem 0;
    }

    .hero {
        min-height: 200px;
        margin-bottom: 1rem;
        padding: 1.5rem;
    }

    .hero-content h1 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .hero-content h2 {
        font-size: 0.85rem;
    }

    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

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

    .card-image {
        height: 120px;
    }

    .card {
        padding: 0.75rem;
    }

    .card-content {
        padding: 0.75rem;
    }

    .card-content h3 {
        font-size: 0.95rem;
    }

    .card-content p {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        width: auto;
        display: inline-block;
    }

    .btn.block {
        width: 100%;
    }

    .form-group {
        margin-bottom: 0.75rem;
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.5rem;
        font-size: 0.85rem;
        width: 100%;
    }

    .form-group textarea {
        min-height: 100px;
        resize: vertical;
    }

    .alert {
        padding: 0.75rem;
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }

    footer {
        padding: 1.5rem 0;
    }

    footer p {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    footer a {
        font-size: 0.8rem;
    }
}




@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    h1 { font-size: 1.1rem; margin-bottom: 0.5rem; }
    h2 { font-size: 0.95rem; }
    h3 { font-size: 0.85rem; }
    h4 { font-size: 0.8rem; }

    body {
        line-height: 1.5;
    }

    .container {
        padding: 0 10px;
    }

    .main-header {
        padding: 0.5rem 0;
    }

    .navbar {
        padding: 0.5rem 0;
    }

    .navbar .container {
        padding: 0.5rem 10px;
        gap: 0.3rem;
        justify-content: space-between;
    }

    .nav-brand img {
        height: 32px;
    }

    .nav-menu {
        gap: 0.2rem;
        font-size: 0.7rem;
        width: 100%;
        justify-content: flex-start;
    }

    .nav-menu a {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }

    section {
        padding: 0.75rem 0;
    }

    .hero {
        min-height: 130px;
        margin-bottom: 0.5rem;
        padding: 0.75rem 10px;
    }

    .hero-content h1 {
        font-size: 1rem;
        margin-bottom: 0.2rem;
    }

    .hero-content h2 {
        font-size: 0.7rem;
        margin-bottom: 0.3rem;
    }

    .hero-content p {
        font-size: 0.75rem;
        margin-bottom: 0.3rem;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .card {
        margin-bottom: 0.5rem;
        padding: 0;
    }

    .card-image {
        height: 80px;
    }

    .card-content {
        padding: 0.4rem;
    }

    .card-content h3 {
        font-size: 0.8rem;
        margin-bottom: 0.15rem;
    }

    .card-content p {
        font-size: 0.7rem;
        margin-bottom: 0.2rem;
        line-height: 1.3;
    }

    .btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
        width: auto;
        display: inline-block;
        margin: 0.15rem;
    }

    .btn.block {
        width: calc(100% - 0.3rem);
        margin: 0.15rem;
    }

    .form-group {
        margin-bottom: 0.4rem;
    }

    .form-group label {
        font-size: 0.75rem;
        margin-bottom: 0.15rem;
        display: block;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.3rem;
        font-size: 0.75rem;
        width: 100%;
        border-radius: 3px;
    }

    .form-group textarea {
        min-height: 70px;
        resize: vertical;
    }

    .alert {
        padding: 0.4rem;
        font-size: 0.7rem;
        margin-bottom: 0.4rem;
    }

    footer {
        padding: 0.75rem 0;
    }

    footer .container {
        padding: 0 10px;
    }

    footer p {
        font-size: 0.65rem;
        margin-bottom: 0.2rem;
    }

    footer a {
        font-size: 0.65rem;
        margin: 0 0.2rem;
    }

    main {
        min-height: calc(100vh - 120px);
    }
}




@media print {
    .main-header,
    .footer,
    .btn,
    .nav-menu {
        display: none;
    }

    .container {
        max-width: 100%;
    }

    body {
        background: var(--white);
    }
}
