:root {
    --bg: #0f172a;
    --bg-soft: #111827;
    --card: #ffffff;
    --muted: #64748b;
    --text: #0f172a;
    --line: #dbe2ea;
    --accent: #0ea5e9;
    --accent-dark: #0284c7;
    --accent-soft: #e0f2fe;
    --success: #15803d;
    --danger: #b91c1c;
    --danger-soft: #fee2e2;
    --telegram: #229ed9;
    --telegram-dark: #1686ba;
    --call: #16a34a;
    --call-dark: #15803d;
    --header-bg: #ffffff;
    --radius: 24px;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    color: var(--text);
    background: #f8fafc;
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container {
    width: min(1440px, 90vw);
    margin: 0 auto;
}
.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--header-bg);
    color: var(--bg);
    border-bottom: 1px solid rgba(15,23,42,0.08);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.topbar__inner {
    min-height: 76px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
}
.logo {
    display: flex;
    align-items: center;
    min-width: 0;
}
.logo__image {
    width: min(18vw, 210px);
    min-width: 118px;
    max-width: 210px;
    max-height: 62px;
    object-fit: contain;
    height: auto;
    border-radius: 12px;
    background: #fff;
    padding: 4px 8px;
    box-shadow: 0 10px 30px rgba(15,23,42,0.1);
}
.logo__text {
    display: none;
}
.nav {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: center;
    justify-self: center;
}
.nav a {
    color: var(--bg);
    font-size: 16px;
    font-weight: 700;
}
.nav a:hover { color: var(--accent-dark); }
.topbar__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-self: end;
}
.topbar__phones {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 14px;
    color: #475569;
}
.topbar__phones a {
    font-weight: 800;
    color: var(--bg);
    font-size: clamp(18px, 1.45vw, 23px);
    line-height: 1.05;
}
.social-icon-button,
.footer-telegram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    border-radius: 999px;
    transition: .2s ease;
}
.social-icon-button {
    width: 48px;
    min-width: 48px;
    padding: 0;
    background: #f0f9ff;
    border: 1px solid rgba(34, 158, 217, 0.22);
    color: var(--telegram);
}
.footer-telegram {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    color: #fff;
}
.social-icon-button:hover,
.footer-telegram:hover {
    transform: translateY(-1px);
}
.social-icon-button:hover {
    background: #e0f2fe;
}
.footer-telegram:hover {
    background: rgba(255,255,255,0.14);
}
.social-icon-button__icon,
.button__icon,
.contact-link__icon,
.footer-telegram__icon,
.mobile-sticky-actions__icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}
.menu-toggle {
    display: none;
    background: transparent;
    color: var(--bg);
    border: 1px solid rgba(15,23,42,0.16);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 22px;
}
.hero {
    background:
        radial-gradient(circle at top right, rgba(14,165,233,0.26), transparent 30%),
        linear-gradient(180deg, #08101f 0%, #0f172a 100%);
    color: #fff;
    padding: 72px 0 52px;
}
.hero__grid {
    display: grid;
    grid-template-columns: 1.35fr 0.9fr;
    gap: 36px;
    align-items: center;
}
.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}
.badge {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.12);
    color: #dbeafe;
    font-size: 13px;
}
.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(34px, 4.4vw, 60px);
    line-height: 1.02;
}
.hero__lead {
    font-size: clamp(16px, 1.8vw, 19px);
    color: rgba(255,255,255,0.8);
    max-width: 760px;
}
.hero__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin: 30px 0 28px;
}
.hero__list {
    margin: 0;
    padding-left: 18px;
    color: rgba(255,255,255,0.84);
}
.hero__content {
    align-self: center;
}
.card, .request-form, .contact-card, .contact-note, .admin-card, .admin-login, .hero-media {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.hero-media {
    overflow: hidden;
    min-height: 100%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
}
.hero-media img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}
.hero-tail {
    margin-top: 24px;
    display: grid;
    gap: 14px;
}
.hero-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    align-items: center;
    color: rgba(255,255,255,0.95);
    font-size: 14px;
}
.hero-contacts span {
    white-space: nowrap;
}
.hero-contacts strong, .contact-card strong {
    display: inline;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(255,255,255,0.76);
    margin-right: 6px;
}
.contact-card strong {
    display: block;
    color: var(--muted);
    margin: 0 0 6px;
}
.hero-contacts a {
    color: #fff;
    font-weight: 700;
}
.badge-row--tail {
    margin-bottom: 0;
}
.inline-link {
    color: var(--accent-dark);
    font-weight: 700;
}
.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 700;
    transition: .2s ease;
}
.button:hover { transform: translateY(-1px); }
.button--primary {
    background: linear-gradient(135deg, var(--accent), #38bdf8);
    color: #fff;
}
.button--ghost {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.18);
    color: #fff;
}
.button--call {
    background: linear-gradient(135deg, var(--call), #22c55e);
    border-color: rgba(255,255,255,0.14);
    color: #fff;
    box-shadow: 0 16px 32px rgba(21, 128, 61, 0.28);
}
.button--telegram {
    background: linear-gradient(135deg, var(--telegram), #38bdf8);
    border-color: rgba(34, 158, 217, 0.16);
    color: #fff;
    box-shadow: 0 16px 32px rgba(34, 158, 217, 0.26);
}
.button--danger {
    background: var(--danger);
    color: #fff;
}
.button--full { width: 100%; }
.section { padding: 76px 0; }
.section--muted { background: #eef4fa; }
.section--accent {
    background: linear-gradient(180deg, #dff3fb 0%, #eff6ff 100%);
}
.section-heading {
    margin-bottom: 30px;
    max-width: 760px;
}
.section-heading h2 {
    margin: 8px 0 0;
    font-size: clamp(28px, 3.2vw, 42px);
    line-height: 1.1;
}
.section-heading__eyebrow {
    color: var(--accent-dark);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 12px;
}
.section-text { color: #334155; }
.cards {
    display: grid;
    gap: 22px;
}
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
    padding: 24px;
    border: 1px solid rgba(15,23,42,0.06);
}
.card h3 { margin-top: 0; margin-bottom: 12px; }
.service-card__price {
    display: inline-block;
    margin-bottom: 18px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 700;
}
.request-grid,
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}
.request-form,
.contact-card,
.contact-note,
.admin-form-grid,
.admin-login {
    padding: 24px;
}
.request-form,
.admin-form-grid {
    display: grid;
    gap: 16px;
}
label span {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}
input, textarea, select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid #cbd5e1;
    background: #fff;
    font: inherit;
}
textarea { resize: vertical; }
.form-note, .contact-note ul, .admin-sidebar p { color: var(--muted); }
.alert {
    padding: 14px 16px;
    border-radius: 16px;
    margin-top: 16px;
}
.alert--error { background: var(--danger-soft); color: var(--danger); }
.alert--success { background: #dcfce7; color: var(--success); }
.brands {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.brands span {
    padding: 12px 18px;
    background: #fff;
    border: 1px solid #dbe2ea;
    border-radius: 999px;
    font-weight: 700;
}
.faq-list {
    display: grid;
    gap: 14px;
}
.faq-item {
    background: #fff;
    border-radius: 22px;
    border: 1px solid #dbe2ea;
    padding: 18px 22px;
}
.faq-item summary {
    cursor: pointer;
    font-weight: 700;
}
.faq-item p { color: #334155; margin: 14px 0 0; }
.contact-card {
    display: grid;
    gap: 18px;
}
.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}
.contact-link--telegram {
    color: var(--accent-dark);
}
.contact-note ul { margin: 12px 0 0; padding-left: 20px; }
.footer {
    background: #0f172a;
    color: rgba(255,255,255,0.72);
    padding: 28px 0;
}
.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}
.footer-brand__logo {
    width: min(18vw, 160px);
    min-width: 120px;
    max-width: 160px;
    max-height: 58px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(255,255,255,0.96);
    padding: 4px 8px;
}
.footer-brand p {
    margin: 0;
}
.footer-brand p + p {
    margin-top: 4px;
}
.footer-telegram {
    padding: 12px 18px;
    white-space: nowrap;
}
.contact-link svg,
.footer-telegram svg,
.button svg,
.social-icon-button svg,
.mobile-sticky-actions svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    min-height: 20px;
    display: block;
    flex: 0 0 20px;
}
.mobile-sticky-actions {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 30;
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.mobile-sticky-actions__button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 52px;
    border-radius: 18px;
    color: #fff;
    font-weight: 800;
    box-shadow: var(--shadow);
}
.mobile-sticky-actions__button--call {
    background: linear-gradient(135deg, #0f766e, #14b8a6);
}
.mobile-sticky-actions__button--telegram {
    background: linear-gradient(135deg, var(--telegram), #38bdf8);
}

.admin-body {
    background: #f1f5f9;
}
.admin-login-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px;
    background: linear-gradient(180deg, #0f172a, #172554);
}
.admin-login {
    width: min(100%, 460px);
}
.admin-login h1 { margin-top: 0; }
.admin-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}
.admin-sidebar {
    background: #0f172a;
    color: #fff;
    padding: 28px;
    display: grid;
    gap: 28px;
    align-content: start;
}
.admin-sidebar nav {
    display: grid;
    gap: 10px;
}
.admin-sidebar nav a {
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.86);
}
.admin-sidebar nav a:hover { background: rgba(255,255,255,0.1); }
.admin-main {
    padding: 28px;
}
.admin-header h1 { margin: 0 0 6px; }
.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 18px;
    margin-bottom: 24px;
}
.admin-stats .card {
    display: grid;
    gap: 8px;
}
.admin-stats strong { font-size: 34px; }
.admin-section,
.table-wrap {
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--shadow);
}
.admin-section__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 22px 24px 0;
}
.table-wrap { overflow: auto; }
.admin-table {
    width: 100%;
    border-collapse: collapse;
}
.admin-table th,
.admin-table td {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
}
.admin-table th {
    font-size: 13px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}
.inline-form { display: grid; gap: 8px; }
.admin-form-grid {
    background: #fff;
    border-radius: 24px;
}
.admin-stack { display: grid; gap: 18px; }
.admin-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.check-line {
    display: flex;
    gap: 12px;
    align-items: center;
    font-weight: 600;
}
.check-line input { width: auto; }

@media (max-width: 1180px) {
    .logo__image {
        width: min(22vw, 190px);
        max-width: 190px;
        max-height: 58px;
    }
    .nav { gap: 18px; }
}

@media (max-width: 1024px) {
    .hero__grid,
    .request-grid,
    .contacts-grid,
    .cards--3,
    .admin-shell,
    .admin-stats {
        grid-template-columns: 1fr;
    }
    .hero-media img { min-height: 360px; }
    .hero-contacts span { white-space: normal; }
    .topbar__inner {
        grid-template-columns: auto auto;
    }
    .nav {
        justify-self: start;
        grid-column: 1 / -1;
        order: 3;
    }
    .topbar__phones { display: none; }
    .admin-sidebar { position: static; }
}

@media (max-width: 820px) {
    .nav {
        display: none;
        position: absolute;
        top: 76px;
        left: 16px;
        right: 16px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 18px;
        background: #fff;
        border-radius: 18px;
        box-shadow: var(--shadow);
    }
    .nav--open { display: flex; }
    .menu-toggle { display: inline-flex; }
    .topbar__inner {
        grid-template-columns: auto auto;
        gap: 12px;
    }
    .logo__image {
        width: min(46vw, 180px);
        min-width: 110px;
        max-width: 180px;
        max-height: 52px;
    }
}


@media (max-width: 768px) {
    .hero__content {
        text-align: center;
    }
    .badge-row,
    .badge-row--tail,
    .hero__actions,
    .hero-contacts {
        justify-content: center;
    }
    .hero__lead {
        margin-left: auto;
        margin-right: auto;
    }
    .hero__list {
        display: inline-block;
        text-align: left;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    body { padding-bottom: 86px; }
    .mobile-sticky-actions { display: grid; }
}

@media (max-width: 640px) {
    .hero { padding-top: 42px; }
    .section { padding: 58px 0; }
    .container { width: 90vw; }
    .card,
    .request-form,
    .contact-card,
    .contact-note,
    .admin-form-grid,
    .admin-login,
    .admin-main { padding: 18px; }
    .hero-media img { min-height: 240px; }
    .hero-contacts { font-size: 13px; }
    .footer__inner,
    .footer-brand { flex-direction: column; align-items: flex-start; }
    .social-icon-button { width: 44px; min-width: 44px; min-height: 44px; }
    .logo__image {
        width: min(52vw, 170px);
        max-width: 170px;
        max-height: 48px;
    }
    .footer-brand__logo {
        width: min(52vw, 150px);
        max-width: 150px;
        max-height: 52px;
    }
}

