:root {
    --primary-color: #1b54f5;
    --primary-hover: #1440bd;
    --accent-light: #eef2ff;
    --bg-color: #ffffff;
    --bg-secondary: #f8faff;
    --text-color: #2c3e50;
    --text-secondary: #5a6a7e;
    --card-bg: #ffffff;
    --shadow-sm: 0 2px 10px rgba(27, 84, 245, 0.05);
    --shadow-md: 0 8px 30px rgba(27, 84, 245, 0.12);
    --transition: all 0.3s ease;
    --font-size-base: 16px;
    --header-height: 70px;
}

@media (max-width: 768px) {
    .desktop-search-btn {
        display: none !important;
    }

    .header-tools {
        gap: 8px;
    }

    .tool-btn {
        width: 36px;
        height: 36px;
    }
}

body.dark-theme {
    --bg-color: #121212;
    --bg-secondary: #1a1a1a;
    --accent-light: #1e2230;
    --text-color: #e0e0e0;
    --text-secondary: #aaaaaa;
    --card-bg: #252525;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.5);
}

body.a11y-contrast {
    --primary-color: #000000;
    --primary-hover: #333333;
    --accent-light: #ffffff;
    --bg-color: #ffffff;
    --bg-secondary: #eeeeee;
    --text-color: #000000;
    --text-secondary: #000000;
    --card-bg: #ffffff;
    --shadow-sm: none;
    --shadow-md: none;
    border: 2px solid #000;
}

    body.a11y-contrast .card,
    body.a11y-contrast header,
    body.a11y-contrast .a11y-panel {
        border: 2px solid #000;
    }

body.a11y-no-images img,
body.a11y-no-images .hero-image-container {
    display: none !important;
}

body.a11y-no-images .hero-content {
    width: 100%;
    text-align: center;
    padding-right: 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Manrope', 'Segoe UI', Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: var(--transition);
    overflow-x: hidden;
    line-height: 1.7;
}

h1, h2, h3 {
    font-weight: 800;
    line-height: 1.3;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 0 20px;
    height: var(--header-height);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.mobile-only-cabinet {
    display: none !important;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only-cabinet {
        display: block !important;
    }
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0 auto;
    flex-grow: 1;
    justify-content: center;
}

    .nav-links a {
        text-decoration: none;
        color: var(--text-color);
        font-weight: 600;
        font-size: 0.95rem;
        transition: var(--transition);
        position: relative;
        padding: 5px 0;
    }

        .nav-links a:hover, .nav-links a.active-link {
            color: var(--primary-color);
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: 0;
            left: 0;
            background-color: var(--primary-color);
            transition: var(--transition);
        }

        .nav-links a:hover::after, .nav-links a.active-link::after {
            width: 100%;
        }

.header-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
}

.tool-btn {
    background: var(--accent-light);
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--primary-color);
    transition: var(--transition);
}

    .tool-btn:hover {
        background: var(--primary-color);
        color: white;
        transform: translateY(-2px);
    }

.nav-links a.btn-cabinet,
.btn-cabinet {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(27, 84, 245, 0.2);
}

    .nav-links a.btn-cabinet:hover,
    .btn-cabinet:hover {
        color: white;
    }

.search-wrapper {
    position: relative;
}

.search-input {
    position: absolute;
    right: 45px;
    top: 0;
    width: 0;
    opacity: 0;
    height: 40px;
    border: 2px solid var(--accent-light);
    border-radius: 20px;
    padding: 5px 20px;
    outline: none;
    transition: var(--transition);
    background: var(--card-bg);
    color: var(--text-color);
    pointer-events: none;
}

.search-wrapper.active .search-input {
    width: 220px;
    opacity: 1;
    pointer-events: auto;
    border-color: var(--primary-color);
}

.burger-btn {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.a11y-panel {
    position: fixed;
    top: var(--header-height);
    right: -320px;
    width: 300px;
    background: var(--card-bg);
    border-left: 4px solid var(--primary-color);
    padding: 25px;
    box-shadow: var(--shadow-md);
    z-index: 999;
    transition: var(--transition);
    border-bottom-left-radius: 20px;
}

    .a11y-panel.open {
        right: 0;
    }

    .a11y-panel h3 {
        margin-bottom: 20px;
        font-size: 1.1rem;
        color: var(--primary-color);
    }

.a11y-control {
    margin-bottom: 20px;
}

    .a11y-control label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        font-size: 0.9rem;
    }

.a11y-btn-group {
    display: flex;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--accent-light);
}

.a11y-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: var(--bg-color);
    color: var(--text-color);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

    .a11y-btn:not(:last-child) {
        border-right: 1px solid var(--accent-light);
    }

    .a11y-btn:hover {
        background: var(--accent-light);
    }

body.a11y-contrast .a11y-btn-group,
body.a11y-contrast .a11y-btn {
    border-color: #000;
}

main {
    margin-top: var(--header-height);
}

.section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-bg-secondary {
    background-color: var(--bg-secondary);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

    .section-title::after {
        content: '';
        display: block;
        width: 60px;
        height: 3px;
        background: var(--primary-color);
        margin: 10px auto 0;
        border-radius: 2px;
    }

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.cta-btn {
    display: inline-block;
    padding: 15px 35px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(27, 84, 245, 0.4);
    transition: var(--transition);
}

    .cta-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 35px rgba(27, 84, 245, 0.5);
        background: var(--primary-hover);
    }

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 90vh;
    padding-top: 50px;
    padding-bottom: 50px;
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        top: -100px;
        right: -100px;
        width: 600px;
        height: 600px;
        background: var(--accent-light);
        border-radius: 50%;
        z-index: -1;
        opacity: 0.7;
    }

.hero-content {
    flex: 1;
    padding-right: 60px;
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    padding: 8px 16px;
    background: var(--accent-light);
    color: var(--primary-color);
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.highlight {
    color: var(--primary-color);
    position: relative;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 35px;
    max-width: 500px;
}

.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-blob {
    width: 480px;
    height: 480px;
    background: var(--primary-color);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    overflow: hidden;
    position: relative;
    animation: morph 8s ease-in-out infinite;
    border: 5px solid white;
    box-shadow: var(--shadow-md);
}

    .hero-blob img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: scale(1.05);
    }

.floating-badge {
    position: absolute;
    background: var(--card-bg);
    padding: 15px 20px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    z-index: 3;
    animation: float 4s ease-in-out infinite;
}

.badge-1 {
    top: 100px;
    left: -30px;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 80px;
    right: -20px;
    animation-delay: 1.5s;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    gap: 30px;
}

.card {
    background: var(--card-bg);
    padding: 35px;
    border-radius: 25px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}

    .card:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-md);
        border-color: var(--accent-light);
    }

.about-card-icon {
    width: 70px;
    height: 70px;
    background: var(--accent-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.review-card {
    position: relative;
    padding-top: 50px;
}

.review-quote-icon {
    position: absolute;
    top: 30px;
    left: 30px;
    font-size: 4rem;
    color: var(--accent-light);
    z-index: 0;
    opacity: 0.7;
}

.review-text {
    position: relative;
    z-index: 1;
    font-size: 1.05rem;
    font-style: italic;
    margin-bottom: 25px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: bold;
}

.author-info h5 {
    font-weight: 700;
    margin-bottom: 3px;
}

.author-info span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.blog-card {
    padding: 0;
    overflow: hidden;
}

.blog-thumb {
    height: 220px;
    width: 100%;
    background-color: var(--accent-light);
    position: relative;
    overflow: hidden;
}

    .blog-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: var(--transition);
    }

.blog-card:hover .blog-thumb img {
    transform: scale(1.05);
}

.blog-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.blog-content {
    padding: 30px;
}

.blog-meta {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
}

.blog-content h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.blog-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .blog-link:hover {
        gap: 12px;
    }

.contact-container {
    background: var(--card-bg);
    border-radius: 30px;
    padding: 60px;
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid var(--accent-light);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.social-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    transition: var(--transition);
    text-decoration: none;
}

.sb-wa {
    background: #25D366;
}

.sb-tg {
    background: #0088cc;
}

.sb-vk {
    background: #0077FF;
}

.social-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

footer {
    background: var(--bg-secondary);
    padding: 40px 20px;
    text-align: center;
    color: var(--text-secondary);
}

#scrollToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(27, 84, 245, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 900;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

    #scrollToTop.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    #scrollToTop:hover {
        transform: translateY(-5px);
        background: var(--primary-hover);
    }

@keyframes morph {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }

    50% {
        border-radius: 60% 40% 30% 70% / 70% 40% 50% 60%;
    }

    100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

    .fade-up.visible {
        opacity: 1;
        transform: translateY(0);
    }

@media (max-width: 968px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero-blob {
        width: 380px;
        height: 380px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        margin: 0;
        justify-content: flex-start;
    }

    .search-wrapper {
        display: none;
    }

    .burger-btn {
        display: block;
        order: 3;
    }

    .header-tools {
        order: 2;
        margin-right: 15px;
    }

    .btn-cabinet {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--card-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        box-shadow: inset 0 10px 20px -10px rgba(0,0,0,0.1);
    }

        .nav-links.active {
            left: 0;
        }

        .nav-links li {
            margin: 15px 0;
        }

        .nav-links a {
            font-size: 1.3rem;
        }

            .nav-links a::after {
                display: none;
            }

    .a11y-panel {
        width: 100%;
        right: -100%;
        border-left: none;
        border-top: 4px solid var(--primary-color);
        border-radius: 0 0 20px 20px;
    }

    .section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 30px;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 50px;
        order: 1;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        margin: 0 auto 30px;
    }

    .hero-image-container {
        order: 2;
        width: 100%;
    }

    .hero-blob {
        width: 300px;
        height: 300px;
    }

    .floating-badge {
        transform: scale(0.8);
    }

    .badge-1 {
        top: 20px;
        left: 0;
    }

    .badge-2 {
        bottom: 20px;
        right: 0;
    }

    .about-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .contact-container {
        padding: 30px 20px;
    }

    .social-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

.blog-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), #8CA8FF);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
    position: absolute;
    top: 0;
    left: 0;
}

.placeholder-icon {
    font-size: 3.5rem;
    opacity: 0.8;
    margin-bottom: 15px;
    transition: transform 0.4s ease;
}

.placeholder-text {
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.85rem;
    opacity: 0.9;
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 20px;
}

.blog-card:hover .blog-placeholder {
    background: linear-gradient(135deg, var(--primary-hover), #7496ff);
}

.blog-card:hover .placeholder-icon {
    transform: scale(1.1) rotate(-5deg);
}
