@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
    --primary: #4F46E5;
    --primary-light: #EEF2FF;
    --primary-dark: #4338CA;
    --accent: #F59E0B;
    --accent-bg: #FFFBEB;
    --dark: #1E293B;
    --text: #475569;
    --text-light: #94A3B8;
    --bg: #F8FAFC;
    --card: #FFFFFF;
    --border: #E2E8F0;
    --nav-bg: rgba(255,255,255,0.9);
    --footer-bg: #0F172A;
    --card-hover-bg: #F8FAFC;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --font: "Inter", sans-serif;
    --z-fixed: 100;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --primary-light: #1E1B4B;
    --dark: #F1F5F9;
    --text: #CBD5E1;
    --text-light: #94A3B8;
    --bg: #0B1121;
    --card: #1E293B;
    --border: #334155;
    --nav-bg: rgba(11,17,33,0.95);
    --footer-bg: #020617;
    --card-hover-bg: #1E293B;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.6);
}

*, ::before, ::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 4rem;
}

h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ===== NAV ===== */
.l-header {
    width: 100%;
    position: fixed;
    top: 0; left: 0;
    z-index: var(--z-fixed);
    background: var(--nav-bg);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

.nav {
    height: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav__logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
}
.nav__logo span { color: var(--primary); }

.nav__toggle {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    font-size: 1.3rem;
    cursor: pointer;
    border-radius: 10px;
    transition: var(--transition);
    background: transparent;
    border: none;
    font-family: inherit;
}
.nav__toggle:hover { background: var(--primary-light); color: var(--primary); }
.nav__toggle:active { transform: scale(0.92); }

@media screen and (max-width: 767px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        padding: 5rem 2rem 2rem;
        background: var(--card);
        border-left: 1px solid var(--border);
        transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: calc(var(--z-fixed) + 1);
        overflow-y: auto;
    }
    .nav__menu.show { right: 0; }
    .nav__item { margin-bottom: 1.25rem; }
    .nav__link {
        color: var(--dark);
        font-size: 1.05rem;
        font-weight: 500;
        display: block;
        padding: 0.5rem 0;
        border-bottom: 1px solid transparent;
        transition: var(--transition);
    }
    .nav__link.active { color: var(--primary); font-weight: 600; }
}

.nav-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15,23,42,0.4);
    z-index: calc(var(--z-fixed) - 1);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s;
}
.nav-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

@media screen and (min-width: 768px) {
    .nav-overlay { opacity: 0 !important; pointer-events: none !important; }
}

[data-theme="dark"] .nav__link { color: var(--text); }
[data-theme="dark"] .nav__link.active { color: var(--primary); }
[data-theme="dark"] .nav__toggle { color: var(--dark); }

@media screen and (min-width: 768px) {
    .nav__toggle { display: none; }
    .nav__menu { display: flex; }
    .nav__list { display: flex; gap: 2.5rem; }
    .nav__item { margin: 0; }
    .nav__link {
        color: var(--text);
        font-weight: 500;
        font-size: 0.9rem;
        position: relative;
        padding: 0.25rem 0;
        transition: var(--transition);
    }
    .nav__link:hover { color: var(--primary); }
    .nav__link.active {
        color: var(--primary);
        font-weight: 600;
    }
    .nav__link.active::after {
        content: "";
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 100%;
        height: 2.5px;
        background: var(--primary);
        border-radius: 2px;
    }
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: none;
    background: var(--bg);
    color: var(--text);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}
.theme-toggle:hover {
    background: var(--primary-light);
    color: var(--primary);
}

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

/* ===== LAYOUT ===== */
.main {
    flex: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
    width: 100%;
}

/* ===== SECTION TITLE ===== */
.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    text-align: center;
    margin-bottom: 2.5rem;
    letter-spacing: -0.5px;
}

/* ===== HERO ===== */
.hero {
    display: grid;
    gap: 2.5rem;
    padding: 1rem 0 2rem;
    min-height: calc(100vh - 8rem);
    align-content: center;
}
.hero__data { align-self: center; }

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.25rem;
}

.hero__title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--dark);
    letter-spacing: -1px;
    margin-bottom: 1rem;
}
.hero__title span { 
    background: linear-gradient(135deg, var(--primary), #7C3AED);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__text {
    font-size: 1.05rem;
    color: var(--text);
    max-width: 520px;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero__actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media screen and (min-width: 768px) {
    .hero__actions {
        grid-template-columns: repeat(4, auto);
    }
}

.hero__actions .btn {
    justify-content: center;
    width: 100%;
}

@media screen and (min-width: 768px) {
    .hero__actions .btn {
        width: auto;
    }
}

.hero__svg {
    display: none;
    align-items: center;
    justify-content: center;
}

.hero__blob {
    width: 360px;
    color: var(--primary-light);
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 8px 40px rgba(79,70,229,0.15));
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-24px); }
}

@media screen and (min-width: 768px) {
    .hero {
        grid-template-columns: 1.1fr 0.9fr;
        align-items: center;
        min-height: auto;
        padding: 3rem 0;
    }
    .hero__title { font-size: 3.2rem; }
    .hero__svg { display: flex; }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: var(--font);
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(79,70,229,0.3);
}

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

.btn-accent {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #fff;
}
.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245,158,11,0.35);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}
.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; }

/* ===== CARDS ===== */
.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); }

.card--centered {
    text-align: center;
}

/* ===== SERVICE CARDS ===== */
.services__grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.service-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-card__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    background: var(--primary-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
    transition: var(--transition);
}
.service-card:hover .service-card__icon {
    background: var(--primary);
    color: #fff;
}

.service-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}
.service-card p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== PROJECT CARDS ===== */
.projects__grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.project-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.75rem;
    transition: var(--transition);
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
}
.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.project-card .proj-id {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.project-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.project-card p {
    font-size: 0.88rem;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.project-card .proj-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
}
.project-card .proj-link:hover { gap: 0.75rem; }

/* ===== PROFILE PAGE ===== */
.profile-head {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), #7C3AED);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.profile-title {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
    margin-top: 0.25rem;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    display: inline-block;
    animation: pulse-dot 2s infinite;
}

.status-text {
    font-size: 0.78rem;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.status-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

/* ===== PROFILE BIO ===== */
.profile-bio {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.bio-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
}

.bio-item__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.bio-item__label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.15rem;
}

.bio-item__text {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.6;
}

/* ===== OFFER PAGE ===== */
.offer-card {
    border: 2px solid #FEF3C7;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.offer-card::before {
    content: "АКЦИЯ";
    position: absolute;
    top: 16px;
    right: -32px;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 0.25rem 2.5rem;
    transform: rotate(45deg);
}

.offer-card .profile-head {
    justify-content: center;
    margin-bottom: 0.5rem;
}

.offer-card .profile-avatar {
    background: linear-gradient(135deg, #F59E0B, #D97706);
}

.offer-price {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), #7C3AED);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0.5rem 0 1.5rem;
    line-height: 1;
    letter-spacing: -1px;
}

.offer-features {
    max-width: 500px;
    margin: 0 auto 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
}

.offer-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text);
}

.offer-feature i {
    width: 24px;
    text-align: center;
    color: var(--primary);
    font-size: 1rem;
}

.section-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.5rem;
}

/* ===== AI CHAT ===== */
.chat-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.chat-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), #7C3AED);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.chat-header h1 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
}

.chat-body {
    max-height: 400px;
    overflow-y: auto;
    margin: 1.25rem 0;
    padding: 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chat-body::-webkit-scrollbar { width: 4px; }
.chat-body::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

.chat-message {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 85%;
}

.chat-message.user {
    background: var(--primary);
    color: #fff;
    align-self: flex-end;
    font-weight: 500;
    border-bottom-right-radius: 4px;
}

.chat-message.agent {
    background: var(--card);
    color: var(--text);
    align-self: flex-start;
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

.chat-message.streaming::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 1em;
    background: var(--text);
    margin-left: 2px;
    animation: blink 0.8s step-end infinite;
    vertical-align: text-bottom;
}
@keyframes blink {
    50% { opacity: 0; }
}
.chat-message.agent.streaming { min-height: 1.6em; }

.chat-input {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.chat-input input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}
.chat-input input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }
.chat-input input::placeholder { color: var(--text-light); }

.chat-wrap {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.api-key-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.api-key-row input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.82rem;
    outline: none;
    transition: var(--transition);
}
.api-key-row input:focus { border-color: var(--primary); }
.api-key-row input::placeholder { color: var(--text-light); font-size: 0.78rem; }

/* ===== MODAL ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15,23,42,0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 440px;
    padding: 2rem;
    position: relative;
    animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.25rem;
}

.modal-close {
    position: absolute;
    top: 16px; right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1rem;
    cursor: pointer;
    background: var(--bg);
    border: none;
    transition: var(--transition);
}
.modal-close:hover { background: var(--primary-light); color: var(--primary); }

.modal-footer {
    margin-top: 1.5rem;
}

.modal-message {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.5;
}

.modal-message .prompt {
    color: var(--primary);
    font-weight: 700;
    font-family: monospace;
    flex-shrink: 0;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--footer-bg);
    color: #fff;
    text-align: center;
    padding: 3rem 1.5rem 2rem;
    margin-top: auto;
}

.footer__title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}
.footer__title span { color: var(--primary); }

.footer__text {
    font-size: 0.88rem;
    opacity: 0.6;
    margin-bottom: 1.5rem;
}

.contacts-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.contacts-line a { color: rgba(255,255,255,0.7); transition: var(--transition); }
.contacts-line a:hover { color: #fff; }
.contacts-line i { color: var(--primary); width: 20px; text-align: center; }

.sep { opacity: 0.3; margin: 0 0.5rem; }

.footer__social {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #fff;
    background: rgba(255,255,255,0.06);
    font-size: 1rem;
    transition: var(--transition);
}
.footer__icon:hover { background: var(--primary); transform: translateY(-3px); }

.footer__copy {
    font-size: 0.78rem;
    opacity: 0.4;
}

/* ===== DARK THEME OVERRIDES ===== */
[data-theme="dark"] .hero__badge { background: var(--primary-light); color: #A5B4FC; }
[data-theme="dark"] .service-card { background: var(--card); }
[data-theme="dark"] .service-card:hover { border-color: var(--primary); }
[data-theme="dark"] .service-card__icon { background: var(--primary-light); }
[data-theme="dark"] .service-card:hover .service-card__icon { background: var(--primary); }
[data-theme="dark"] .project-card { background: var(--card); }
[data-theme="dark"] .project-card p { color: var(--text); }
[data-theme="dark"] .card { background: var(--card); }
[data-theme="dark"] .profile-title { color: var(--text-light); }
[data-theme="dark"] .offer-card { border-color: rgba(245,158,11,0.15); }
[data-theme="dark"] .offer-feature { background: rgba(255,255,255,0.04); }
[data-theme="dark"] .bio-item { background: rgba(255,255,255,0.04); }
[data-theme="dark"] .chat-body { background: rgba(255,255,255,0.04); }
[data-theme="dark"] .chat-message.agent { background: var(--card); color: var(--text); }
[data-theme="dark"] .modal-card { background: var(--card); }
[data-theme="dark"] .modal-message { background: rgba(255,255,255,0.04); }
[data-theme="dark"] .theme-toggle { background: rgba(255,255,255,0.08); color: var(--text); }
[data-theme="dark"] .theme-toggle:hover { background: var(--primary-light); color: var(--primary); }

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 576px) {
    body { font-size: 0.9rem; }

    .main { padding: 1.25rem 1rem 3rem; }

    .section-title {
        font-size: 1.35rem;
        margin-bottom: 1.75rem;
    }

    .hero {
        padding: 0.5rem 0 1.5rem;
        min-height: calc(100vh - 6rem);
        gap: 1.5rem;
    }
    .hero__title { font-size: 1.65rem; }
    .hero__badge { font-size: 0.72rem; padding: 0.3rem 0.75rem; }
    .hero__text {
        font-size: 0.92rem;
        margin-bottom: 1.25rem;
    }
    .hero__actions { gap: 0.5rem; }

    .btn {
        padding: 0.65rem 1rem;
        font-size: 0.82rem;
    }

    .services__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .service-card { padding: 1.5rem 1.25rem; }
    .service-card__icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .projects__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .project-card { padding: 1.25rem; }

    .card { padding: 1.25rem; }

    .profile-head {
        flex-direction: column;
        text-align: center;
    }
    .profile-avatar {
        width: 68px;
        height: 68px;
        font-size: 1.6rem;
        border-radius: 16px;
    }
    .profile-name { font-size: 1.25rem; }

    .bio-item { padding: 0.75rem; }
    .bio-item__icon {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .offer-price { font-size: 2.2rem; }
    .offer-card::before {
        font-size: 0.6rem;
        padding: 0.2rem 2rem;
        top: 12px;
        right: -36px;
    }

    .chat-avatar {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
        border-radius: 12px;
    }
    .chat-header h1 { font-size: 1rem; }
    .chat-body { max-height: 300px; padding: 0.75rem; }
    .chat-message {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
        max-width: 90%;
    }
    .chat-input input { padding: 0.6rem 0.8rem; font-size: 0.85rem; }

    .footer { padding: 2rem 1rem 1.5rem; }
    .footer__title { font-size: 1.15rem; }
    .contacts-line { font-size: 0.78rem; flex-direction: column; gap: 0.35rem; }
    .footer__icon { width: 36px; height: 36px; }

    .modal-card { padding: 1.5rem; margin: 0.5rem; }
    .modal-header { font-size: 1.1rem; }
}

@media screen and (min-width: 577px) and (max-width: 767px) {
    .main { padding: 1.5rem 1.25rem 3rem; }
    .hero__title { font-size: 2rem; }
    .services__grid { grid-template-columns: repeat(2, 1fr); }
    .projects__grid { grid-template-columns: repeat(2, 1fr); }
    .card { padding: 1.5rem; }
    .offer-price { font-size: 2.8rem; }
}

/* ===== ADMIN ===== */
.admin-login { padding: 2rem 0; }

.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.admin-toolbar-actions {
    display: flex;
    gap: 0.5rem;
}

.admin-subtitle {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.admin-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.admin-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    padding: 1.25rem;
    transition: var(--transition);
}
.admin-card:hover { box-shadow: var(--shadow); }

.admin-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-card__info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.admin-card__date {
    font-size: 0.78rem;
    color: var(--text-light);
    font-weight: 500;
}

.admin-card__actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.admin-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: var(--bg);
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: var(--transition);
}
.admin-action-btn:hover { background: var(--primary-light); color: var(--primary); }
.admin-action-btn--danger:hover { background: #FEE2E2; color: #EF4444; }

.admin-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.admin-badge--new { background: #DBEAFE; color: #2563EB; }
.admin-badge--done { background: #D1FAE5; color: #059669; }

[data-theme="dark"] .admin-badge--new { background: #1E3A5F; color: #93C5FD; }
[data-theme="dark"] .admin-badge--done { background: #064E3B; color: #6EE7B7; }

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

.admin-field {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.admin-field__label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-field__value {
    font-size: 0.88rem;
    color: var(--dark);
    font-weight: 500;
    line-height: 1.5;
}

.admin-conv {
    font-size: 0.78rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    padding: 0.75rem;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: inherit;
    margin-top: 0.25rem;
}

@media screen and (max-width: 576px) {
    .admin-card__fields {
        grid-template-columns: 1fr;
    }
    .admin-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .admin-toolbar-actions { width: 100%; }
    .admin-toolbar-actions .btn { flex: 1; justify-content: center; }
}

.breadcrumbs {
    font-size: 0.8rem;
    margin-bottom: 1rem;
    padding: 0 1rem;
    color: var(--text-light);
}
.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.breadcrumbs li:not(:last-child)::after {
    content: '/';
    color: var(--text-light);
    opacity: 0.5;
}
.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}
.breadcrumbs span {
    color: var(--text-light);
}
