/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --dark-color: #1f2937;
    --light-color: #f3f4f6;
    --white: #ffffff;
    --text-color: #374151;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* Karanlık tema */
body.dark-theme {
    --primary-color: #3b82f6;
    --secondary-color: #60a5fa;
    --accent-color: #fbbf24;
    --dark-color: #111827;
    --light-color: #1f2937;
    --white: #0f172a;
    --text-color: #e5e7eb;
    background-color: #0f172a;
    color: #e5e7eb;
}

body.dark-theme .header {
    background: #1e293b;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

body.dark-theme .logo h1 {
    color: #60a5fa;
}

body.dark-theme .tagline {
    color: #cbd5e1;
}

body.dark-theme .nav a {
    color: #e5e7eb;
}

body.dark-theme .nav a:hover {
    color: #fbbf24;
}

body.dark-theme .hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
}

body.dark-theme .hero-title,
body.dark-theme .hero-subtitle,
body.dark-theme .hero-highlight h3,
body.dark-theme .hero-highlight p {
    color: #ffffff;
}

body.dark-theme .section-title {
    color: #60a5fa;
}

body.dark-theme .services {
    background: #0f172a;
}

body.dark-theme .service-card {
    background: #1e293b;
    color: #e5e7eb;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

body.dark-theme .service-card h3 {
    color: #60a5fa;
}

body.dark-theme .service-card p {
    color: #cbd5e1;
}

body.dark-theme .service-list li {
    color: #cbd5e1;
    border-bottom-color: #334155;
}

body.dark-theme .advantages {
    background: #0a0f1a;
}

body.dark-theme .advantage-card {
    background: #1e293b;
    border-left-color: #60a5fa;
}

body.dark-theme .advantage-card:hover {
    background: #1e293b;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-left-color: #fbbf24;
}

body.dark-theme .advantage-card h3 {
    color: #60a5fa;
}

body.dark-theme .advantage-card p {
    color: #cbd5e1;
}

body.dark-theme .contacts {
    background: #0f172a;
}

body.dark-theme .contact-item {
    background: #1e293b;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

body.dark-theme .contact-item h3 {
    color: #60a5fa;
}

body.dark-theme .contact-item p {
    color: #cbd5e1;
}

body.dark-theme .contact-phone {
    color: #fbbf24;
}

body.dark-theme .contact-phone:hover {
    color: #60a5fa;
}

body.dark-theme .contact-form {
    background: #1e293b;
    color: #e5e7eb;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

body.dark-theme .contact-form h3 {
    color: #60a5fa;
}

body.dark-theme input,
body.dark-theme select,
body.dark-theme textarea {
    background: #0f172a;
    color: #e5e7eb;
    border-color: #334155;
}

body.dark-theme input::placeholder,
body.dark-theme textarea::placeholder {
    color: #64748b;
}

body.dark-theme .footer {
    background: #000000;
}

body.dark-theme .footer-info h3,
body.dark-theme .footer-links h4,
body.dark-theme .footer-contact h4 {
    color: #fbbf24;
}

body.dark-theme .footer-info p,
body.dark-theme .footer-contact p {
    color: #cbd5e1;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Mobil menü butonu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

body.dark-theme .mobile-menu-toggle span {
    background: var(--accent-color);
}

.logo h1 {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.tagline {
    color: var(--text-color);
    font-size: 14px;
    font-weight: 300;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    padding: 5px 10px;
}

.nav a:hover {
    color: var(--secondary-color);
}

.header-phone {
    background: var(--accent-color);
    color: var(--white);
    padding: 12px 25px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: var(--transition);
    white-space: nowrap;
}

.header-phone:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
}

/* Tema değiştirme butonu */
.theme-toggle {
    background: var(--light-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 24px;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    transform: rotate(20deg) scale(1.1);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.theme-toggle:active {
    transform: rotate(20deg) scale(0.95);
}

.theme-icon {
    transition: var(--transition);
    display: inline-block;
}

body.dark-theme .theme-toggle {
    background: #1e293b;
    border-color: var(--accent-color);
}

body.dark-theme .theme-toggle:hover {
    box-shadow: 0 5px 15px rgba(251, 191, 36, 0.3);
}

/* Главный баннер */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero::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 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,165.3C384,171,480,149,576,128C672,107,768,85,864,90.7C960,96,1056,128,1152,133.3C1248,139,1344,117,1392,106.7L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 22px;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-highlight {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    border-left: 5px solid var(--accent-color);
}

.hero-highlight h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

.hero-highlight p {
    font-size: 18px;
    line-height: 1.6;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: #d97706;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

/* Секции */
.section-title {
    font-size: 42px;
    text-align: center;
    margin-bottom: 60px;
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Услуги */
.services {
    padding: 80px 0;
    background: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card > p {
    font-size: 16px;
    margin-bottom: 25px;
    color: var(--text-color);
}

.service-list {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.service-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--light-color);
    color: var(--text-color);
    position: relative;
    padding-left: 25px;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Преимущества */
.advantages {
    padding: 80px 0;
    background: var(--white);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.advantage-card {
    background: var(--light-color);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border-left: 5px solid var(--secondary-color);
}

.advantage-card:hover {
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-left-color: var(--accent-color);
}

.advantage-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.advantage-card h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.advantage-card p {
    color: var(--text-color);
    line-height: 1.7;
}

/* Контакты */
.contacts {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--light-color) 0%, var(--white) 100%);
}

.contacts-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 20px;
}

.contact-phone {
    font-size: 28px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 10px;
    transition: var(--transition);
}

.contact-phone:hover {
    color: var(--secondary-color);
}

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

/* Форма */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 26px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid var(--light-color);
    border-radius: var(--border-radius);
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.contact-form button {
    width: 100%;
}

/* Подвал */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 50px 0 30px;
}

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

.footer-info h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.footer-info p {
    margin: 10px 0;
    color: rgba(255, 255, 255, 0.8);
}

.footer-copyright {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 20px;
    color: var(--accent-color);
    font-size: 18px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--accent-color);
}

/* Адаптивность */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        order: 2;
    }

    .logo {
        order: 1;
    }

    .nav {
        order: 4;
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
        transition: left 0.3s ease;
        z-index: 1000;
        padding-top: 80px;
    }

    .nav.active {
        left: 0;
    }

    .nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav li {
        width: 100%;
        border-bottom: 1px solid var(--light-color);
    }

    .nav a {
        display: block;
        padding: 20px 30px;
        font-size: 18px;
    }

    body.dark-theme .nav {
        background: #1e293b;
    }

    body.dark-theme .nav li {
        border-bottom-color: #334155;
    }

    .header-actions {
        order: 3;
        gap: 10px;
    }

    .header-phone {
        font-size: 14px;
        padding: 10px 15px;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .header-content {
        justify-content: space-between;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-highlight h3 {
        font-size: 22px;
    }

    .hero-highlight p {
        font-size: 16px;
    }

    .section-title {
        font-size: 32px;
    }

    .services-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .contacts-content {
        grid-template-columns: 1fr;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 26px;
    }

    .contact-phone {
        font-size: 22px;
    }

    .service-card,
    .advantage-card {
        padding: 25px;
    }
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.advantage-card,
.contact-item {
    animation: fadeInUp 0.6s ease-out;
}
