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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1a1a2e;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ===== Animations ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-20px) scale(1.05); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.05); }
}

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes shapeFloat1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33%      { transform: translate(30px, -30px) rotate(120deg); }
    66%      { transform: translate(-20px, 20px) rotate(240deg); }
}

@keyframes shapeFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-40px, 20px) scale(1.2); }
}

@keyframes shapeFloat3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50%      { transform: translate(20px, 40px) rotate(180deg); }
}

@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ===== Gradient Text ===== */
.gradient-text {
    background: linear-gradient(135deg, #6c63ff, #ff6b9d, #ffa751);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid rgba(108, 99, 255, 0.08);
    animation: fadeIn 0.6s ease;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a2e;
    text-decoration: none;
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.05);
}

.logo span {
    background: linear-gradient(135deg, #6c63ff, #ff6b9d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav a {
    margin-left: 32px;
    text-decoration: none;
    color: #1a1a2e;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6c63ff, #ff6b9d);
    transition: width 0.3s;
    border-radius: 1px;
}

.nav a:hover {
    color: #6c63ff;
}

.nav a:hover::after {
    width: 100%;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 101;
}

.burger span {
    width: 26px;
    height: 3px;
    background: #1a1a2e;
    border-radius: 2px;
    transition: 0.3s;
}

/* ===== Hero ===== */
.hero {
    padding: 170px 0 110px;
    background: linear-gradient(-45deg, #f5f7ff, #e8ecff, #fce4ec, #fff3e0);
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero__shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.hero__shape--1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #6c63ff, transparent);
    top: -100px;
    right: -100px;
    animation: shapeFloat1 15s ease-in-out infinite;
}

.hero__shape--2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #ff6b9d, transparent);
    bottom: -80px;
    left: -60px;
    animation: shapeFloat2 12s ease-in-out infinite;
}

.hero__shape--3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #ffa751, transparent);
    top: 50%;
    left: 50%;
    animation: shapeFloat3 18s ease-in-out infinite;
}

.hero__badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(108, 99, 255, 0.1);
    color: #6c63ff;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 24px;
    animation: fadeUp 0.8s ease;
}

.hero__content h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.15;
    animation: fadeUp 0.8s ease 0.1s both;
}

.hero__content p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeUp 0.8s ease 0.2s both;
}

.hero__cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeUp 0.8s ease 0.3s both;
}

/* ===== Section ===== */
.section {
    padding: 100px 0;
}

.section__title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 56px;
    position: relative;
}

.section__title::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, #6c63ff, #ff6b9d);
    margin: 14px auto 0;
    border-radius: 2px;
}

/* ===== Services ===== */
.services {
    background: #fff;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: linear-gradient(135deg, #fafaff, #f0f0ff);
    padding: 44px 32px 40px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(108, 99, 255, 0.06);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.4s ease,
                background 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #6c63ff, #ff6b9d, #ffa751);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(108, 99, 255, 0.15);
    background: linear-gradient(135deg, #fff, #f5f3ff);
}

.service-card__icon {
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.4s ease;
}

.service-card:hover .service-card__icon {
    transform: scale(1.15) rotate(-5deg);
}

.service-card__icon svg {
    filter: drop-shadow(0 4px 8px rgba(108, 99, 255, 0.2));
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 14px;
    color: #1a1a2e;
    font-weight: 700;
}

.service-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
}

/* ===== About ===== */
.about {
    background: linear-gradient(135deg, #f5f7ff 0%, #fce4ec 100%);
}

.about__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.about__item {
    padding: 36px 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about__item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(108, 99, 255, 0.1);
}

.about__icon {
    margin-bottom: 16px;
    transition: transform 0.4s ease;
}

.about__item:hover .about__icon {
    transform: scale(1.15) rotate(5deg);
}

.about__item h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.about__item p {
    color: #555;
    font-size: 0.95rem;
}

/* ===== Stats ===== */
.stats {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 80px 0;
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stats__item h3 {
    font-size: 2.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #6c63ff, #ff6b9d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stats__item p {
    color: #aaa;
    font-size: 1rem;
    margin-top: 6px;
}

/* ===== Contact ===== */
.contact {
    background: #fff;
    position: relative;
}

.contact__subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 44px;
    font-size: 1.1rem;
}

.contact__form {
    max-width: 500px;
    margin: 0 auto;
}

.contact__form .btn--full {
    width: 100%;
}

.form__group {
    margin-bottom: 16px;
}

.form__group input,
.form__group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
    background: #fafaff;
}

.form__group input:focus,
.form__group textarea:focus {
    border-color: #6c63ff;
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.1);
    background: #fff;
}

.contact__links {
    text-align: center;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.contact__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6c63ff;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 12px;
    background: rgba(108, 99, 255, 0.06);
    transition: all 0.3s ease;
}

.contact__link:hover {
    background: rgba(108, 99, 255, 0.12);
    transform: translateY(-2px);
}

.contact__link svg {
    width: 20px;
    height: 20px;
}

/* ===== Social Links ===== */
.social__links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.social__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    color: #fff;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social__link:hover {
    transform: translateY(-4px) scale(1.08);
}

.social__link--tg {
    background: linear-gradient(135deg, #1da1f2, #0088cc);
    box-shadow: 0 4px 16px rgba(0, 136, 204, 0.3);
}
.social__link--tg:hover {
    box-shadow: 0 8px 28px rgba(0, 136, 204, 0.4);
}

.social__link--vk {
    background: linear-gradient(135deg, #4a76a8, #2a5885);
    box-shadow: 0 4px 16px rgba(74, 118, 168, 0.3);
}
.social__link--vk:hover {
    box-shadow: 0 8px 28px rgba(74, 118, 168, 0.4);
}

.social__link--yt {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    box-shadow: 0 4px 16px rgba(255, 0, 0, 0.3);
}
.social__link--yt:hover {
    box-shadow: 0 8px 28px rgba(255, 0, 0, 0.4);
}

/* ===== Button ===== */
.btn {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: linear-gradient(135deg, #6c63ff, #5a52e0);
    color: #fff;
    box-shadow: 0 4px 16px rgba(108, 99, 255, 0.3);
}

.btn--primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 28px rgba(108, 99, 255, 0.4);
}

.btn--primary:active {
    transform: translateY(0) scale(0.98);
}

.btn--outline {
    background: transparent;
    color: #6c63ff;
    border: 2px solid rgba(108, 99, 255, 0.25);
}

.btn--outline:hover {
    background: rgba(108, 99, 255, 0.06);
    border-color: #6c63ff;
    transform: translateY(-3px);
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #aaa;
    padding: 32px 0;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer .logo {
    color: #fff;
    font-size: 1.2rem;
}

.footer p {
    font-size: 0.9rem;
}

.footer__social {
    display: flex;
    gap: 12px;
}

.footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: #888;
    transition: all 0.3s ease;
}

.footer__social a:hover {
    color: #fff;
    background: rgba(108, 99, 255, 0.15);
    transform: translateY(-2px);
}

/* ===== Admin Counter ===== */
.admin {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    font-family: 'Inter', sans-serif;
}

.admin--visible {
    display: block;
    animation: fadeUp 0.4s ease;
}

.admin__body {
    background: #1a1a2e;
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 16px;
    padding: 20px 24px;
    min-width: 240px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.admin__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin__header h3 {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin__close {
    background: none;
    border: none;
    color: #666;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.3s;
}

.admin__close:hover {
    color: #fff;
}

.admin__stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin__label {
    color: #888;
    font-size: 0.8rem;
}

.admin__value {
    color: #6c63ff;
    font-weight: 700;
    font-size: 1.1rem;
}

.admin__value--sm {
    font-size: 0.8rem;
    color: #aaa;
}

/* ===== Modal ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    z-index: 200;
    animation: fadeIn 0.3s ease;
}

.modal--open {
    display: flex;
}

.modal__body {
    background: #fff;
    padding: 48px;
    border-radius: 24px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    animation: fadeUp 0.4s ease;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.2);
}

.modal__icon {
    font-size: 3rem;
    margin-bottom: 16px;
    animation: pulse 2s ease infinite;
}

.modal__body p {
    margin-bottom: 24px;
    font-size: 1.15rem;
    color: #1a1a2e;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero__content h1 {
        font-size: 2rem;
    }

    .services__grid,
    .about__grid {
        grid-template-columns: 1fr;
    }

    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid #eee;
        padding: 24px 20px;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
    }

    .nav--open {
        display: flex;
        animation: fadeUp 0.3s ease;
    }

    .nav a {
        margin: 10px 0;
        font-size: 1.1rem;
    }

    .burger {
        display: flex;
    }

    .section__title {
        font-size: 1.7rem;
    }
}

@media (max-width: 480px) {
    .hero__content h1 {
        font-size: 1.6rem;
    }

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