/* =============================================
   ЭЛЕКТРОМОНТАЖ PRO — STYLES
   Smoky Gray Dark Theme
   ============================================= */

/* --- RESET & BASE --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Smoky gray palette */
    --bg-base: #1a1c1e;
    --bg-surface: #22252a;
    --bg-raised: #2a2e35;
    --bg-hover: #32373f;
    --border: #383d47;
    --border-light: #454b57;

    /* Text */
    --text-primary: #e8eaed;
    --text-secondary: #9fa5b0;
    --text-muted: #6b7280;

    /* Accent — electric amber/yellow */
    --accent: #f0a500;
    --accent-dim: rgba(240, 165, 0, 0.15);
    --accent-glow: rgba(240, 165, 0, 0.35);

    /* Sidebar width */
    --sidebar-w: 260px;
    --topbar-h: 56px;
    --footer-h: 38px;

    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
    --transition: 0.22s ease;

    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-base);
}

html,
body {
    height: 100%;
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =============================================
   TOP BAR
   ============================================= */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-h);
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px 0 20px;
    z-index: 100;
    backdrop-filter: blur(8px);
}

.topbar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar__icon {
    width: 34px;
    height: 34px;
    background: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 0 12px var(--accent-glow);
    flex-shrink: 0;
}

.topbar__name {
    font-size: 16px;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.topbar__name strong {
    color: var(--accent);
}

.topbar__contact {
    display: flex;
    align-items: center;
    gap: 18px;
}

.topbar__phone {
    color: var(--text-secondary);
    font-size: 13.5px;
}

.topbar__cta {
    background: var(--accent);
    color: #1a1c1e;
    font-weight: 600;
    font-size: 13px;
    padding: 7px 16px;
    border-radius: var(--radius-sm);
    transition: opacity var(--transition), box-shadow var(--transition);
}

.topbar__cta:hover {
    opacity: 0.88;
    box-shadow: 0 0 14px var(--accent-glow);
}

.lang-switcher {
    display: flex;
    gap: 8px;
    margin-right: 5px;
    padding-right: 15px;
    border-right: 1px solid var(--border);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s;
    padding: 4px;
}

.lang-btn:hover {
    color: var(--text-secondary);
}

.lang-btn--active {
    color: var(--accent);
}

/* =============================================
   TWO-COLUMN LAYOUT
   ============================================= */
.layout {
    display: flex;
    position: fixed;
    top: var(--topbar-h);
    bottom: var(--footer-h);
    left: 0;
    right: 0;
    overflow: visible;
    /* Чтобы кнопка-стрелка не скрывалась */
}

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: var(--bg-surface);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    overflow-x: visible;
    /* Чтобы кнопка-стрелка не обрезалась */
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    transition: margin-left 0.3s ease, transform 0.3s ease;
    scrollbar-width: thin;
    scrollbar-color: var(--border-light) transparent;
}

.sidebar--collapsed {
    margin-left: calc(var(--sidebar-w) * -1) !important;
}

.sidebar-toggle {
    position: fixed;
    top: 65px;
    left: 205px;
    /* Внутри открытого меню (260 - 42 - 13) */
    width: 38px;
    height: 38px;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    color: #1a1c1e;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: left 0.3s ease, transform 0.3s ease, background 0.2s, opacity 0.2s;
}

.sidebar-toggle:hover {
    background: #ffb700;
}

@media (max-width: 768px) {
    .sidebar-toggle {
        display: none;
    }
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}

.sidebar__nav {
    padding: 20px 0 12px;
    flex: 1;
}

.sidebar__section-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 14px 20px 6px;
}

.sidebar__menu {
    list-style: none;
}

.sidebar__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 20px;
    font-size: 13.5px;
    color: var(--text-secondary);
    border-left: 3px solid transparent;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    cursor: pointer;
}

.sidebar__link:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.sidebar__link.active {
    background: var(--accent-dim);
    color: var(--accent);
    border-left-color: var(--accent);
    font-weight: 500;
}

.sidebar__link--sub {
    padding-left: 30px;
    font-size: 13px;
}

.sidebar__link-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Sidebar info card */
.sidebar__info-card {
    margin: 16px 14px 20px;
    background: var(--accent-dim);
    border: 1px solid rgba(240, 165, 0, 0.25);
    border-radius: var(--radius);
    padding: 16px;
}

.sidebar__info-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 6px;
}

.sidebar__info-text {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.sidebar__info-btn {
    display: block;
    text-align: center;
    background: var(--accent);
    color: #1a1c1e;
    font-weight: 600;
    font-size: 13px;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: opacity var(--transition);
}

.sidebar__info-btn:hover {
    opacity: 0.85;
}

/* =============================================
   MAIN CONTENT (scrollable)
   ============================================= */
.content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--bg-base);
    scrollbar-width: thin;
    scrollbar-color: var(--border-light) transparent;
}

.content::-webkit-scrollbar {
    width: 5px;
}

.content::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}

/* =============================================
   HERO
   ============================================= */
.hero {
    padding: 100px 57px 80px;
    background: 
        linear-gradient(90deg, var(--bg-base) 0%, rgba(26,28,30,0.85) 40%, rgba(26,28,30,0.3) 100%),
        url('../assets/hero_bg.png');
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-dim);
    border: 1px solid rgba(240, 165, 0, 0.3);
    color: var(--accent);
    font-size: 12px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 22px;
    letter-spacing: 0.5px;
}

.hero__title {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.hero__subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 560px;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    gap: 12px;
    margin-bottom: 44px;
    flex-wrap: wrap;
}

.hero__stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.hero__stat {
    display: flex;
    flex-direction: column;
}

.hero__stat-num {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.hero__stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-decoration: none;
}

.btn--primary {
    background: var(--accent);
    color: #1a1c1e;
}

.btn--primary:hover {
    box-shadow: 0 0 20px var(--accent-glow);
    opacity: 0.9;
}

.btn--ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.btn--ghost:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--text-muted);
}

/* =============================================
   SECTIONS
   ============================================= */
.section {
    padding: 52px 57px;
    border-bottom: 1px solid var(--border);
}

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

.section__title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.section__subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 36px;
}

.section__title+.cards,
.section__title+.features,
.section__title+.projects {
    margin-top: 32px;
}

/* =============================================
   SERVICE CARDS
   ============================================= */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 32px;
}

.card {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
    cursor: default;
}

.card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--accent-dim);
}

.card__icon {
    font-size: 28px;
    margin-bottom: 14px;
}

.card__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.card__text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 14px;
}

.card__tag {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 3px 10px;
    border-radius: 20px;
}

/* =============================================
   FEATURES (Why us)
   ============================================= */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.feature {
    padding: 24px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--transition);
}

.feature:hover {
    border-color: var(--border-light);
}

.feature__num {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.25;
    line-height: 1;
    margin-bottom: 12px;
}

.feature__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.feature__text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* =============================================
   PROJECTS
   ============================================= */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 32px;
}

.project-card {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.project-card__thumb {
    height: 150px;
    background-size: cover;
    background-position: center;
}

.project-card__thumb--1 {
    background-color: #2a2e35;
    background-image:
        repeating-linear-gradient(45deg, rgba(240, 165, 0, 0.05) 0px, rgba(240, 165, 0, 0.05) 2px, transparent 2px, transparent 16px),
        linear-gradient(135deg, #1f2228 0%, #2e333c 100%);
}

.project-card__thumb--2 {
    background-color: #252830;
    background-image:
        repeating-linear-gradient(-45deg, rgba(240, 165, 0, 0.04) 0px, rgba(240, 165, 0, 0.04) 2px, transparent 2px, transparent 18px),
        linear-gradient(135deg, #23262d 0%, #2a2e38 100%);
}

.project-card__thumb--3 {
    background-color: #1e2126;
    background-image:
        repeating-linear-gradient(90deg, rgba(240, 165, 0, 0.05) 0px, rgba(240, 165, 0, 0.05) 2px, transparent 2px, transparent 24px),
        linear-gradient(135deg, #1c1f25 0%, #282c34 100%);
}

.project-card__body {
    padding: 16px;
}

.project-card__cat {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
}

.project-card__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 6px 0 4px;
}

.project-card__meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* =============================================
   CONTACT
   ============================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 32px;
}

@media (max-width: 760px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--transition);
}

.contact-item:hover {
    border-color: var(--border-light);
}

.contact-item__icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

.contact-item strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.contact-item p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* FORM */
.contact-form {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.form-input {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--footer-h);
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    z-index: 100;
}

.footer__inner {
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}

.footer__brand {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.footer__sep {
    color: var(--border-light);
    font-size: 12px;
}

.footer__copy,
.footer__reg {
    font-size: 12px;
    color: var(--text-muted);
}

.footer__link {
    font-size: 12px;
    color: var(--text-muted);
    transition: color var(--transition);
}

.footer__link:hover {
    color: var(--accent);
}

/* =============================================
   PRICE LIST
   ============================================= */
.price-header {
    margin-bottom: 32px;
}

.price-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-dim);
    border: 1px solid rgba(240, 165, 0, 0.25);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 12px;
}

.price-note__icon {
    font-size: 16px;
    flex-shrink: 0;
}

/* Price group */
.price-group {
    margin-bottom: 32px;
}

.price-group__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

/* Tables */
.price-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.price-table thead {
    background: var(--bg-raised);
}

.price-table th {
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.price-table th:last-child {
    text-align: right;
    min-width: 120px;
}

.price-table td {
    padding: 11px 16px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

.price-table td:last-child {
    text-align: right;
    white-space: nowrap;
}

.price-table tbody tr:last-child td {
    border-bottom: none;
}

.price-table tbody tr:hover td {
    background: var(--bg-hover);
}

.price-val {
    font-weight: 600;
    color: var(--accent);
    font-size: 14px;
}

.price-solar-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 10px;
    padding-left: 4px;
    font-style: italic;
}

/* Packages */
.price-packages {
    margin-top: 48px;
    margin-bottom: 32px;
}

.price-packages__heading {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.price-packages__desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.price-packages__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.price-pkg {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.price-pkg:hover {
    border-color: var(--border-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.price-pkg--featured {
    border-color: var(--accent);
    background:
        radial-gradient(ellipse 80% 60% at 50% 10%, rgba(240, 165, 0, 0.06) 0%, transparent 60%),
        var(--bg-raised);
}

.price-pkg--featured:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 32px rgba(240, 165, 0, 0.15), var(--shadow);
}

.price-pkg__badge {
    position: absolute;
    top: -1px;
    right: 20px;
    background: var(--accent);
    color: #1a1c1e;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 12px 5px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.price-pkg__head {
    text-align: center;
    margin-bottom: 20px;
}

.price-pkg__icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.price-pkg__name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.price-pkg__area {
    font-size: 13px;
    color: var(--text-muted);
}

.price-pkg__price {
    text-align: center;
    margin-bottom: 20px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.price-pkg__from {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: block;
    margin-bottom: 4px;
}

.price-pkg__amount {
    font-size: 36px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.price-pkg__currency {
    font-size: 20px;
    font-weight: 600;
    color: var(--accent);
    margin-left: 2px;
}

.price-pkg__list {
    list-style: none;
    flex: 1;
    margin-bottom: 20px;
}

.price-pkg__list li {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 6px 0;
    border-bottom: 1px solid rgba(56, 61, 71, 0.5);
}

.price-pkg__list li::before {
    content: "✓ ";
    color: var(--accent);
    font-weight: 600;
}

.price-pkg__list li:last-child {
    border-bottom: none;
}

.price-pkg__btn {
    width: 100%;
    justify-content: center;
}

/* Disclaimer */
.price-disclaimer {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
}

.price-disclaimer p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* =============================================
   SCROLLBAR - globally thin for content
   ============================================= */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

/* =============================================
   AUTH & DASHBOARD
   ============================================= */
.layout--centered {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - var(--topbar-h) - var(--footer-h));
    padding: 20px;
}

.content--auth {
    margin-left: 0;
    max-width: 400px;
    width: 100%;
}

.auth-box,
.dashboard-box {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.auth-box__title {
    text-align: center;
    margin-bottom: 25px;
    font-size: 22px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-form__btn {
    margin-top: 10px;
    width: 100%;
    justify-content: center;
}

.auth-box__footer {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-box__footer a {
    color: var(--accent);
    text-decoration: none;
}

.auth-box__footer a:hover {
    text-decoration: underline;
}

.form-error {
    color: #ef4444;
    font-size: 13px;
    min-height: 20px;
    text-align: center;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   TEAM CARDS
   ============================================= */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.team-card {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--border-light);
}

.team-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.team-card__avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-dim);
    color: var(--accent);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    border: 2px solid rgba(240, 165, 0, 0.3);
}

.team-card__name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.team-card__role {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-card__contacts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.team-card__btn {
    padding: 8px 12px;
    font-size: 13px;
    justify-content: center;
    border-color: var(--border);
}

.team-card__btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* =============================================
   MOBILE RESPONSIVENESS (Max 768px)
   ============================================= */
@media (max-width: 768px) {

    html,
    body {
        overflow-y: auto !important;
        height: auto !important;
    }

    /* Topbar */
    .topbar {
        padding: 0 12px;
    }

    .topbar__brand {
        gap: 6px;
    }

    .topbar__icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .topbar__name {
        font-size: 14px;
    }

    .topbar__phone {
        display: none;
        /* Прячем номер на телефоне для экономии места */
    }

    .topbar__cta {
        padding: 6px 10px;
        font-size: 12px;
    }

    /* Для кнопки "Войти" */
    a[href="login.html"] {
        margin-right: 5px !important;
    }

    /* Layout */
    .layout {
        flex-direction: column;
        position: relative;
        /* Чтобы не перекрывать все fixed элементами */
        overflow: visible;
        height: auto;
    }

    /* Sidebar -> Выплывающее меню */
    .sidebar {
        position: fixed;
        top: 0;
        right: -100%;
        /* Спрятано справа */
        width: 80%;
        height: 100vh;
        z-index: 1000;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
        border-right: none;
        border-left: 1px solid var(--border);
        padding: 20px 0;
        display: flex;
    }

    .sidebar--open {
        right: 0;
        /* Показываем */
    }

    /* Оверлей при открытом меню */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 999;
        display: none;
    }

    .sidebar-overlay--active {
        display: block;
    }

    .sidebar__nav {
        padding: 40px 0;
    }

    .sidebar__menu {
        display: flex;
        flex-direction: column;
    }

    .sidebar__link {
        font-size: 16px;
        padding: 15px 25px;
        border-left: 4px solid transparent;
    }

    .sidebar__section-label {
        display: block;
        padding: 10px 25px;
    }

    .sidebar__info-card {
        display: block;
        margin: 20px;
    }

    /* Floating Burger Button */
    .burger-btn {
        position: fixed;
        bottom: 25px;
        right: 25px;
        width: 56px;
        height: 56px;
        background: var(--accent);
        border-radius: 50%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        cursor: pointer;
        z-index: 1001;
        box-shadow: 0 4px 15px rgba(240, 165, 0, 0.4);
        border: none;
        transition: transform 0.2s ease;
    }

    .burger-btn:active {
        transform: scale(0.9);
    }

    .burger-btn span {
        width: 24px;
        height: 3px;
        background: #1a1c1e;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    /* Анимация крестика */
    .burger-btn--active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .burger-btn--active span:nth-child(2) {
        opacity: 0;
    }

    .burger-btn--active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Content Area */
    .content {
        overflow: visible;
        height: auto;
    }

    /* Hero */
    .hero {
        padding: 30px 16px;
    }

    .hero__title {
        font-size: 26px;
    }

    .hero__subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .hero__stats {
        gap: 20px;
    }

    .hero__stat-num {
        font-size: 22px;
    }

    /* General Sections */
    .section {
        padding: 30px 16px;
    }

    .section__title {
        font-size: 22px;
    }

    /* Footer */
    .footer {
        position: static;
        height: auto;
        padding: 20px 0;
    }

    .footer__inner {
        justify-content: center;
        padding: 0 10px;
        gap: 8px;
    }

    .footer__copy,
    .footer__reg,
    .footer__sep {
        display: none;
        /* Упрощаем футер */
    }

    /* Forms */
    .contact-grid {
        gap: 20px;
    }

    .contact-form {
        padding: 20px;
    }

    /* Team Cards */
    .team-card__contacts {
        grid-template-columns: 1fr;
    }

    .team-card__contacts a[style*="grid-column: span 2;"] {
        grid-column: span 1 !important;
    }

    /* Price Packages */
    .price-pkg {
        padding: 24px 16px;
    }
}

/* =============================================
   PROCESS STEPS
   ============================================= */
.process {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.process-step {
    position: relative;
    text-align: left;
}

.process-step__num {
    width: 32px;
    height: 32px;
    background: var(--accent);
    color: #1a1c1e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 16px;
}

.process-step__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.process-step__text {
    font-size: 13px;
    color: var(--text-secondary);
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.testimonial {
    background: var(--bg-raised);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    position: relative;
}

.testimonial::before {
    content: "“";
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 60px;
    color: var(--accent);
    opacity: 0.15;
    font-family: serif;
}

.testimonial__text {
    font-style: italic;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.testimonial__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--accent);
    border: 1px solid var(--border);
}

.testimonial__name {
    font-size: 13px;
    font-weight: 600;
}

.testimonial__meta {
    font-size: 11px;
    color: var(--text-muted);
}

/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner {
    background: var(--accent);
    padding: 48px;
    border-radius: var(--radius);
    text-align: center;
    color: #1a1c1e;
    margin-top: 40px;
}

.cta-banner__title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-banner__text {
    font-size: 16px;
    margin-bottom: 28px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-banner .btn--primary {
    background: #1a1c1e;
    color: var(--accent);
}
.cta-banner .btn--primary:hover {
    background: #000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* =============================================
   MODAL & ADMIN UI
   ============================================= */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
}

.close-modal:hover {
    color: var(--text-primary);
}

.admin-menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 25px;
}

.admin-menu-item {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.admin-menu-item:hover:not(.disabled) {
    background: var(--bg-hover);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.admin-menu-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.admin-menu-icon {
    font-size: 32px;
}