/* Змінні для світлої теми */
:root {
    --primary-color: #00a859; /* Зелений */
    --secondary-color: #0066cc; /* Синій */
    --dark-color: #1a1a1a; /* Чорний */
    --bg-color: #ffffff;
    --text-color: #333333;
    --header-bg: #ffffff;
    --footer-bg: #1a1a1a;
    --footer-text: #ffffff;
    --link-color: #0066cc;
    --link-hover: #004499;
    --border-color: #e0e0e0;
    --section-bg: #f8f9fa;
    --card-bg: #ffffff;
    --card-shadow: rgba(0, 0, 0, 0.1);
}

/* Темна тема */
[data-theme="dark"] {
    --primary-color: #00d978; /* Світліший зелений для темної теми */
    --secondary-color: #4da6ff; /* Світліший синій */
    --dark-color: #000000;
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --header-bg: #0f0f0f;
    --footer-bg: #000000;
    --footer-text: #e0e0e0;
    --link-color: #4da6ff;
    --link-hover: #66b3ff;
    --border-color: #404040;
    --section-bg: #252525;
    --card-bg: #2d2d2d;
    --card-shadow: rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Header */
header {
    background-color: var(--header-bg);
    padding: 0.8rem 0;
    box-shadow: 0 2px 10px var(--card-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
    position: relative;
}

.header-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Header Left - логотип і перемикач теми */
.header-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.logo {
    text-align: left;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    white-space: nowrap;
}

.logo-box {
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Перемикач теми - тепер зліва */
.theme-toggle {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    width: 50px;
    height: 26px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 0 4px;
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 168, 89, 0.3);
}

.theme-icon {
    position: absolute;
    font-size: 1rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.sun-icon {
    left: 4px;
    opacity: 1;
}

.moon-icon {
    right: 4px;
    opacity: 0;
}

[data-theme="dark"] .sun-icon {
    opacity: 0;
    transform: rotate(90deg);
}

[data-theme="dark"] .moon-icon {
    opacity: 1;
    transform: rotate(0deg);
}

/* Header Right - меню і телефон */
.header-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* Navigation Menu - справа */
.nav-menu {
    display: block;
}

.nav-menu .menu {
    display: flex;
    flex-direction: row;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-menu .menu li {
    border: none;
}

.nav-menu .menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    background-color: transparent;
    position: relative;
    font-size: 1rem;
}

.nav-menu .menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu .menu a:hover,
.nav-menu .menu a:focus {
    color: var(--primary-color);
    background-color: transparent;
    padding-left: 0;
}

.nav-menu .menu a:hover::after,
.nav-menu .menu a:focus::after {
    width: 100%;
}

/* Menu Toggle Button - тільки для мобільних */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
    flex-shrink: 0;
}

.menu-icon {
    width: 24px;
    height: 2.5px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

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

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

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

/* Phone Icon */
.phone-icon {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    background-color: transparent;
    flex-shrink: 0;
}

.phone-icon:hover {
    color: var(--secondary-color);
    background-color: var(--section-bg);
    transform: scale(1.05);
}

.phone-icon svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.phone-number {
    display: inline-block;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #ffffff;
    padding: 6rem 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 width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><path d="M0 0L100 100M100 0L0 100" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.brand-name {
    display: block;
    font-size: 4rem;
    background: #ffffff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 0.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

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

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: #ffffff;
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--dark-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Main content */
main {
    min-height: calc(100vh - 200px);
}

.section {
    padding: 5rem 0;
    background-color: var(--section-bg);
    transition: background-color 0.3s ease;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--card-shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--card-shadow);
    border-top: 4px solid var(--primary-color);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

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

.service-card p {
    color: var(--text-color);
    line-height: 1.8;
    opacity: 0.9;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    line-height: 1.8;
}

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

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--card-bg);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.feature-check {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
}

/* Contact Section */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    text-align: center;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.contact-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.phone-section {
    margin-bottom: 3rem;
}

.contact-label {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.contact-phone {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.messengers {
    margin-top: 2rem;
}

.messenger-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.messenger-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background-color: var(--card-bg);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 50px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    font-weight: 600;
}

.messenger-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--card-shadow);
}

.messenger-btn.telegram:hover {
    border-color: #0088cc;
    background-color: #0088cc;
    color: #ffffff;
}

.messenger-btn.viber:hover {
    border-color: #665cac;
    background-color: #665cac;
    color: #ffffff;
}

.messenger-btn.whatsapp:hover {
    border-color: #25d366;
    background-color: #25d366;
    color: #ffffff;
}

.messenger-icon {
    font-size: 1.3rem;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 3rem 0 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

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

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-section a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-messengers {
    margin-top: 0.5rem;
}

.footer-messengers a {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Адаптивність */
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }

    .nav-menu {
        position: static;
        max-height: none !important;
        opacity: 1 !important;
        width: auto;
        background-color: transparent;
        box-shadow: none;
    }

    .nav-menu .menu {
        flex-direction: row;
        gap: 2rem;
    }

    .nav-menu .menu li {
        border: none;
    }

    .nav-menu .menu li:first-child {
        border-top: none;
    }

    .nav-menu .menu a {
        padding: 0.5rem 1rem;
    }

    .nav-menu .menu a:hover,
    .nav-menu .menu a:focus {
        padding-left: 1rem;
        background-color: transparent;
    }

    .header-controls {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.6rem 0;
    }

    .header-content {
        gap: 0.6rem;
    }

    .header-left {
        gap: 0.6rem;
    }

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

    .theme-toggle {
        width: 44px;
        height: 22px;
    }

    .theme-icon {
        font-size: 0.9rem;
    }

    /* Мобільне меню - акардіон */
    .menu-toggle {
        display: flex;
        width: 22px;
        height: 22px;
    }

    .menu-icon {
        width: 22px;
        height: 2.5px;
    }

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

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

    .header-right {
        gap: 0.6rem;
    }

    .phone-icon {
        padding: 0.3rem 0.6rem;
        font-size: 0.9rem;
    }

    .phone-icon svg {
        width: 18px;
        height: 18px;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out, opacity 0.3s ease;
        opacity: 0;
        background-color: var(--header-bg);
        box-shadow: 0 5px 15px var(--card-shadow);
        z-index: 1000;
    }

    .nav-menu.active {
        max-height: 500px;
        opacity: 1;
    }

    .nav-menu .menu {
        flex-direction: column;
        gap: 0;
        text-align: center;
    }

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

    .nav-menu .menu li:first-child {
        border-top: 1px solid var(--border-color);
    }

    .nav-menu .menu a {
        display: block;
        padding: 1rem;
        font-size: 1rem;
    }

    .nav-menu .menu a::after {
        display: none;
    }

    .nav-menu .menu a:hover,
    .nav-menu .menu a:focus {
        color: var(--primary-color);
        background-color: var(--section-bg);
        padding-left: 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .brand-name {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .contact-phone {
        font-size: 1.5rem;
    }

    .messenger-links {
        flex-direction: column;
        align-items: center;
    }

    .messenger-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }

    .phone-number {
        display: none;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.5rem 0;
    }

    .header-content {
        gap: 0.5rem;
    }

    .header-left {
        gap: 0.5rem;
    }

    .header-right {
        gap: 0.5rem;
    }

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

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

    .theme-icon {
        font-size: 0.8rem;
    }

    .menu-toggle {
        width: 20px;
        height: 20px;
    }

    .menu-icon {
        width: 20px;
        height: 2px;
    }

    .phone-icon {
        padding: 0.25rem 0.5rem;
        font-size: 0.85rem;
    }

    .phone-icon svg {
        width: 16px;
        height: 16px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .brand-name {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

