:root {
    --bg: #0b0e12;
    --card: #151922;
    --text: #e9eef5;
    --muted: #a8b3c7;
    --line: #242a36;
    --accent: #4cc38a;
    --accent2: #04ff00;

    --fs-h2: clamp(22px, 2.2vw, 28px);
    --fs-h3: clamp(16px, 1.6vw, 20px);
    --fs-p: clamp(14px, 1.25vw, 16px);
}

/* ===== БАЗА ===== */
* {
    box-sizing: border-box;
}
html,
body {
    height: 100%;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family:
        system-ui,
        -apple-system,
        Segoe UI,
        Roboto,
        Inter,
        Arial,
        sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a {
    color: #9cc7ff;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 18px;
}
.section {
    padding: 52px 0;
}
.h2 {
    font-size: var(--fs-h2);
    margin: 0 0 18px;
}
.center {
    text-align: center;
}
.mt-12 {
    margin-top: 12px;
}
.muted {
    color: var(--muted);
}

/* ===== HERO ===== */
.hero {
    padding: 72px 0 36px;
    text-align: left;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(180deg, #0f1420, #0b0e12);
}
.hero h1 {
    font-size: 32px;
    line-height: 1.2;
    margin: 0 0 10px;
}
.hero h1 span {
    color: var(--accent);
}
.hero__subtitle {
    color: var(--muted);
    max-width: 760px;
    margin: 0 0 18px;
}
.hero__cta,
.cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 16px 0;
}

/* ===== КНОПКИ ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
    position: relative;
}
.btn:active {
    transform: translateY(1px);
}
.w100 {
    width: 100%;
}
.btn--solid {
    background: linear-gradient(180deg, #fff, #f3f3f3 60%, #e7e7e7);
    color: #000;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.btn--solid:hover {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    transform: translateY(-1px);
}
.btn--ghost {
    border: 1px solid #fff;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 6px 18px rgba(255, 255, 255, 0.06);
}
.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 26px rgba(255, 255, 255, 0.12);
}
.btn--neon {
    background: linear-gradient(180deg, #35ff4a, #04ff00);
    color: #000;
    box-shadow: 0 0 20px rgba(4, 255, 0, 0.3);
}
.btn--neon:hover {
    box-shadow: 0 0 30px rgba(4, 255, 0, 0.5);
    transform: translateY(-1px);
}
.btn--primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #0a0f14;
}
.btn--primary:hover {
    filter: brightness(1.05);
}

/* ===== STRIP ===== */
.strip {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.strip__inner {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}
.strip__text {
    color: var(--muted);
}

/* ===== ГЛОБАЛЬНЫЕ КАРТОЧКИ/СЕТКИ ===== */
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.grid {
    display: grid;
    gap: 12px;
} /* БЕЗ жестких 12 колонок! */

/* ===== FEATURES ===== */
.features {
    grid-template-columns: repeat(12, 1fr);
}
.features .feature {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.feature__img {
    height: 200px;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    margin: -16px -16px 12px;
}
.feature__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.features .feature h3 {
    font-size: var(--fs-h3);
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.2px;
}
.features .feature p {
    font-size: var(--fs-p);
    line-height: 1.55;
    color: var(--muted);
    margin: 0;
}

/* ===== PRICING (исправлено) ===== */
.grid.pricing {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 20px;
}
.grid.pricing .price {
    grid-column: auto !important;
} /* сброс старых span-правил */
.card.price {
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}
.card.price:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.price__title {
    font-weight: 700;
    font-size: clamp(15px, 2vw, 18px);
    line-height: 1.35;
    margin-bottom: 6px;
    color: var(--text);
}
.price__value {
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 600;
    color: var(--accent2);
}

/* ===== SERVICES (формы/карточки) ===== */
.services-list,
.services-grid.services--cards {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}
.services-list {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.services-grid.services--cards {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.service,
.services-grid.services--cards .service-item {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}
.service:hover,
.services-grid.services--cards .service-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}
.service h3,
.services-grid.services--cards .service-item .title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px;
}
.service p,
.services-grid.services--cards .service-item .meta {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
}

/* ===== FORM ===== */
.form {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 12px;
}
.form__left {
    grid-column: span 6;
}
.form__right {
    grid-column: span 6;
}
.form .services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 10px 0 12px;
}
.form .service-item {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 8px;
    align-items: start;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}
.form .service-item:hover {
    border-color: #2a2a2a;
}
.form .service-item .title {
    font-weight: 600;
}
.form .service-item .meta {
    color: var(--muted);
    font-size: 13px;
    margin-top: 2px;
}
.row {
    margin: 10px 0;
    display: grid;
    gap: 8px;
}
.row.two {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
label {
    font-weight: 600;
}
input[type="text"],
input[type="tel"],
input[type="number"],
textarea {
    width: 100%;
    padding: 10px 12px;
    color: var(--text);
    background: #0e0e0e;
    border: 1px solid var(--line);
    border-radius: 10px;
    outline: none;
}
input::placeholder,
textarea::placeholder {
    color: #6e7f94;
}
.hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 0;
    width: 0;
    opacity: 0;
}
.summary {
    font-size: 15px;
}
.summary-list {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
    border-top: 1px dashed var(--line);
    border-bottom: 1px dashed var(--line);
}
.summary-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed var(--line);
}
.summary-list li:last-child {
    border-bottom: none;
}
.row-line {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
}
.status {
    margin-top: 10px;
    min-height: 22px;
    color: var(--muted);
}

/* ===== FAQ ===== */
.faq-card,
.section .card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.faq-card p,
.section .card p {
    margin: 0 0 16px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--line);
    font-size: 15px;
    line-height: 1.5;
}
.faq-card p:last-child,
.section .card p:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.faq-card strong,
.section .card strong {
    display: block;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}

/* ===== FOOTER ===== */
.footer {
    border-top: 1px solid var(--line);
    padding: 28px 0;
    margin-top: 20px;
}
.footer__inner {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}
.footer__text {
    color: var(--muted);
    max-width: 780px;
}
.footer__copy {
    color: #626f7f;
    text-align: center;
    padding-top: 12px;
}

/* ===== ЛОГО-ПЛИТКА  ===== */
.logo-tile {
    display: grid;
    place-items: center;
    width: clamp(96px, 12vw, 160px);
    aspect-ratio: 1/1;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}
.logo-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
.logo-tile img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
@media (max-width: 640px) {
    .logo-tile {
        width: 96px;
        padding: 10px;
    }
}

/* ===== САЙТ-ЛОГО (фиксированный справа сверху как в index.html) ===== */
.site-logo {
    position: fixed;
    top: 20px;
    right: 18px;
    z-index: 1000;
    line-height: 0;
    border-radius: 10px;
    transition:
        transform 0.15s ease,
        opacity 0.15s ease;
}
.site-logo img {
    display: block;
    width: clamp(160px, 13vw, 300px);
    height: auto;
    border-radius: 8px;
}
.site-logo:hover {
    transform: scale(1.03);
}
@media (max-width: 640px) {
    .site-logo img {
        width: 84px;
    }
    .site-logo {
        top: 10px;
        right: 12px;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1000px) {
    .features {
        grid-template-columns: repeat(12, 1fr);
    }
    .features .feature {
        grid-column: span 6;
    }
    .form__left,
    .form__right {
        grid-column: span 12;
    }
}
@media (max-width: 640px) {
    .features .feature {
        grid-column: span 12;
        padding: 14px;
    }
    .feature__img {
        height: 180px;
        margin: -14px -14px 10px;
        border-radius: 10px;
    }
    .services-list,
    .services-grid.services--cards {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .faq-card,
    .section .card {
        padding: 16px;
    }
    .faq-card p,
    .section .card p {
        font-size: 14px;
        line-height: 1.4;
    }
}
@media (max-width: 480px) {
    .btn {
        padding: 14px 20px;
    }
    .form .services-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .form .service-item {
        font-size: 14px;
        padding: 14px;
    }
    .form .service-item .title {
        font-size: 15px;
    }
    .form .service-item .meta {
        font-size: 13px;
    }
}
/* ==== ЛОГО В МЕНЮ (не ломает остальные стили) ==== */
.site-header .wrap,
.site-header .header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Базовая плитка, спец-версия для навигации */
.logo-tile {
    display: grid;
    place-items: center;
    aspect-ratio: 1/1;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.logo-tile img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Компактный размер именно в шапке */
.logo-tile--nav {
    width: clamp(72px, 10vw, 120px);
    padding: 10px;
    border-radius: 14px;
}

/* Мобилка — ещё компактнее */
@media (max-width: 640px) {
    .logo-tile--nav {
        width: 84px;
        padding: 8px;
    }
}
/* ==== PRICING: сетка и карточки ==== */
.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.price-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}
.price-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.price-card h2 {
    margin: 0;
    font-weight: 800;
    font-size: clamp(16px, 1.8vw, 20px);
}
.price-card .price {
    margin: 2px 0 6px;
    font-size: clamp(18px, 2.2vw, 22px);
    font-weight: 700;
    color: var(--accent2);
}

.price-card ul {
    margin: 6px 0 10px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: clamp(14px, 1.4vw, 16px);
}
.price-card ul li {
    display: grid;
    grid-template-columns: 12px 1fr;
    gap: 8px;
}
.price-card ul li::before {
    content: "";
    width: 8px;
    height: 8px;
    margin-top: 7px;
    border-radius: 3px;
    background: linear-gradient(180deg, #35ff4a, #04ff00);
    box-shadow: 0 0 10px rgba(4, 255, 0, 0.25);
}

/* кнопка внутри карточки */
.price-card .btn {
    align-self: flex-start;
}

/* Promo — занимает всю строку и уже по центру */
.price-card.promo {
    grid-column: 1 / -1;
    max-width: 820px;
    justify-self: center;
    text-align: center;
}
.price-card.promo .btn {
    align-self: center;
}

/* Мобилка: автоматически станет «столбиком»; чуть уменьшить отступы */
@media (max-width: 640px) {
    .price-card {
        padding: 16px;
    }
    .price-card ul {
        gap: 8px;
    }
}
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.logo img {
    height: 36px;
    width: auto;
    display: block;
}

.nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .logo img {
        height: 28px;
    }
    .nav {
        gap: 12px;
        font-size: 14px;
    }
}
/* ==== ЛОГО С ТЕКСТОМ ==== */
.logo.logo--with-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo.logo--with-text img {
    height: 32px; /* компактный размер */
    width: auto;
    display: block;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

/* мобилка — ещё меньше */
@media (max-width: 640px) {
    .logo.logo--with-text img {
        height: 26px;
    }
    .logo-text {
        font-size: 16px;
    }
}
/* ===== SAMOOCENKA / KSR NEON STYLE ===== */
.kc-hero {
    padding: 56px 0 28px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(180deg, #111725, #0b0e12);
}
.kc-eyebrow {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(76, 195, 138, 0.1);
    border: 1px solid rgba(76, 195, 138, 0.35);
    font-weight: 700;
    letter-spacing: 0.3px;
}
.kc-eyebrow .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent2);
    box-shadow: 0 0 12px rgba(4, 255, 0, 0.6);
}

.kc-two {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
}
.kc-sticky {
    position: sticky;
    top: 80px;
    align-self: start;
}
.kc-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    padding: 18px;
}

.kc-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px dashed rgba(156, 199, 255, 0.35);
    border-radius: 999px;
    color: #cfe4ff;
}
.kc-badge i {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(180deg, #35ff4a, #04ff00);
    box-shadow: 0 0 10px rgba(4, 255, 0, 0.45);
}

.kc-timeline {
    position: relative;
    padding-left: 24px;
}
.kc-timeline::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #2a2f3a, #04ff00);
}
.kc-step {
    position: relative;
    margin: 10px 0 16px;
}
.kc-step::before {
    content: "";
    position: absolute;
    left: -2px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent2);
    box-shadow: 0 0 10px rgba(4, 255, 0, 0.6);
}

.kc-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.kc-photo {
    overflow: hidden;
    border-radius: 15px;
    border: 1px solid var(--line);
    background: #0f1420;
}
.kc-photo img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}
.kc-photo figcaption {
    padding: 10px 12px;
    color: var(--muted);
    font-size: 14px;
    border-top: 1px dashed var(--line);
}
.kc-photo h3 {
    margin: 10px 12px 0;
    font-size: 16px;
}

.kc-howto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}
.kc-howto .it {
    padding: 14px;
    border: 1px dashed var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}
.kc-howto .it strong {
    display: block;
    margin-bottom: 6px;
}

.kc-cta .btn {
    width: 100%;
}
@media (max-width: 900px) {
    .kc-two {
        grid-template-columns: 1fr;
    }
    .kc-sticky {
        top: 68px;
    }
    .kc-photo img {
        height: 200px;
    }
}
/* Увеличиваем высоту картинок в карточках объектов на мобильных */
@media (max-width: 640px) {
    .kc-photo img {
        height: 240px !important; /* было 180px */
        object-fit: cover; /* сохраняем обрезку */
    }
}

@media (max-width: 480px) {
    .kc-photo img {
        height: 280px !important; /* на совсем маленьких экранах ещё выше */
    }
}
