:root {
    color-scheme: dark;
    --color-ink: #e2e8f0;
    --color-muted: #94a3b8;
    --color-primary: #00a6d6;
    --color-primary-dark: #0077ff;
    --color-accent: #00d2ff;
    --color-paper: #0d111a;
    --color-background: #05080f;
    --color-line: rgba(255, 255, 255, 0.08);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--color-background);
    color: var(--color-ink);
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.65;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 0;
    background: rgba(5, 8, 15, 0.96);
    border-bottom: 1px solid var(--color-line);
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.18);
}

.nav-inner,
.nav-actions,
.hero-actions,
.summary-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-inner {
    justify-content: space-between;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-ink);
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
}

.logo-img {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(0, 210, 255, 0.4);
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0, 210, 255, 0.18);
    object-fit: cover;
}

.user-location {
    padding: 7px 13px;
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-radius: 999px;
    background: rgba(0, 210, 255, 0.08);
    color: var(--color-primary-dark);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.nav-actions .btn-primary,
.nav-call-btn {
    padding: 10px 15px;
    font-size: 13px;
}

.nav-call-btn {
    border: 1px solid var(--color-line);
    border-radius: 10px;
    color: var(--color-ink);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.nav-call-btn:hover {
    border-color: var(--color-primary);
    background: rgba(0, 210, 255, 0.08);
    color: var(--color-primary-dark);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 92px 0 100px;
    background:
        radial-gradient(ellipse at 85% 20%, rgba(0, 210, 255, 0.14), transparent 34%),
        linear-gradient(125deg, #05080f 0%, #0b1522 70%, #102336 100%);
    color: white;
}

.hero::after {
    position: absolute;
    right: -100px;
    bottom: -240px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    content: "";
    box-shadow: 0 0 0 55px rgba(255, 255, 255, 0.025), 0 0 0 110px rgba(255, 255, 255, 0.02);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-block;
    margin-bottom: 22px;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #a9efff;
    font-size: 13px;
    font-weight: 700;
}

.hero h1 {
    max-width: 760px;
    margin-bottom: 20px;
    color: white;
    font-size: clamp(34px, 5vw, 54px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1.5px;
}

.hero p {
    max-width: 720px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
}

.hero p strong {
    color: white;
}

.hero-actions {
    flex-wrap: wrap;
}

.btn-primary,
button[type="submit"] {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: linear-gradient(135deg, #00d2ff, #0077ff);
    box-shadow: 0 5px 14px rgba(0, 119, 255, 0.24);
    color: white;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover,
button[type="submit"]:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #2ce0ff, #0088ff);
    box-shadow: 0 8px 18px rgba(0, 210, 255, 0.28);
}

.btn-primary:active,
button[type="submit"]:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    border: 1px solid rgba(0, 210, 255, 0.35);
    border-radius: 10px;
    background: rgba(0, 210, 255, 0.05);
    color: #00d2ff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.btn-secondary:hover {
    border-color: #00d2ff;
    background: rgba(0, 210, 255, 0.12);
    color: white;
}

.seo-blocks,
.services,
.pricing,
.request-section {
    padding: 68px 0;
}

.seo-blocks h2,
.services h2,
.pricing h2,
.request-box h2 {
    margin-bottom: 18px;
    color: var(--color-ink);
    font-size: clamp(26px, 3.2vw, 36px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.6px;
}

.seo-blocks h3 {
    margin-bottom: 10px;
    color: var(--color-primary-dark);
    font-size: 19px;
    font-weight: 750;
}

.seo-blocks p,
.pricing p,
.request-box > p,
.card p {
    margin-bottom: 14px;
    color: var(--color-muted);
    font-size: 15px;
}

.cards-grid,
.process-steps,
.geo-lists,
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.card,
.seo-card,
.faq-item,
.review-card {
    padding: 24px;
    border: 1px solid var(--color-line);
    border-radius: 16px;
    background: var(--color-paper);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.card:hover,
.seo-card:hover,
.faq-item:hover,
.review-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 210, 255, 0.4);
    box-shadow: 0 14px 32px rgba(0, 119, 255, 0.15);
}

.card-img {
    width: 100%;
    height: 190px;
    margin-bottom: 17px;
    border-radius: 11px;
    background: #0b0e14;
    object-fit: cover;
}

.card h3 {
    margin-bottom: 9px;
    color: var(--color-ink);
    font-size: 19px;
}

.reviews-section {
    padding: 70px 0;
    border-top: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
    background: rgba(0, 210, 255, 0.025);
}

.reviews-heading {
    margin-bottom: 30px;
    text-align: center;
}

.reviews-heading h2 {
    margin-bottom: 8px;
    color: var(--color-ink);
    font-size: clamp(27px, 3vw, 36px);
    line-height: 1.2;
}

.reviews-heading p {
    color: var(--color-muted);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.review-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 0;
}

.review-meta,
.reviewer-info {
    display: flex;
    align-items: center;
}

.review-meta {
    justify-content: space-between;
    gap: 12px;
}

.reviewer-info {
    min-width: 0;
    gap: 11px;
}

.avatar {
    display: flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #00a6d6, #0077ff);
    color: white;
    font-size: 18px;
    font-weight: 800;
}

.name-date h4 {
    overflow: hidden;
    color: var(--color-ink);
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.name-date span,
.review-boiler {
    color: var(--color-muted);
    font-size: 12px;
}

.review-stars,
.stars {
    color: var(--color-accent);
    font-size: 16px;
    letter-spacing: 1px;
    white-space: nowrap;
}

.review-text {
    color: #cbd5e1;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.review-boiler {
    align-self: flex-start;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(0, 210, 255, 0.08);
}

.reviews-empty {
    margin: 0 auto 22px;
    color: var(--color-muted);
    text-align: center;
}

.reviews-empty[hidden] {
    display: none;
}

.reviews-actions {
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.price-table-wrap {
    overflow: hidden;
    margin-top: 23px;
    border: 1px solid var(--color-line);
    border-radius: 14px;
    background: var(--color-paper);
    box-shadow: var(--shadow-card);
}

.price-table {
    width: 100%;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
}

.price-table th,
.price-table td {
    padding: 15px 18px;
    border-bottom: 1px solid var(--color-line);
    font-size: 14px;
    text-align: left;
}

.price-table th {
    background: rgba(0, 210, 255, 0.1);
    color: var(--color-primary-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.price-table tr:last-child td {
    border-bottom: 0;
}

.price-table tbody tr:hover {
    background: rgba(0, 210, 255, 0.04);
}

.highlight-row td {
    background: rgba(0, 210, 255, 0.08);
    color: var(--color-ink);
    font-weight: 700;
}

.highlight-row td:nth-child(2) {
    color: #00d2ff;
}

.request-box {
    position: relative;
    overflow: hidden;
    padding: 38px;
    border-radius: 20px;
    background: linear-gradient(180deg, #0d111a, #080c12);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
    color: white;
}

.request-box::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, transparent, #00d2ff, #0077ff, transparent);
    content: "";
}

.request-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.request-box h2 {
    margin-bottom: 0;
    color: white;
}

.request-box > p {
    margin: 15px 0 22px;
    color: rgba(255, 255, 255, 0.78);
}

.request-box > p strong {
    color: white;
}

.schedule-tag {
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #a9efff;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.callback-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.callback-form input,
.callback-form select,
.callback-form textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9px;
    outline: none;
    background: rgba(0, 0, 0, 0.28);
    color: white;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.callback-form input:focus,
.callback-form select:focus,
.callback-form textarea:focus {
    border-color: #00d2ff;
    box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.15);
}

.callback-form input::placeholder,
.callback-form textarea::placeholder {
    color: #64748b;
}

.callback-form .checkbox-label,
.callback-form button[type="submit"] {
    grid-column: 1 / -1;
}

.callback-form button[type="submit"] {
    width: 100%;
    margin-top: 2px;
    background: linear-gradient(135deg, #00d2ff, #0077ff);
    box-shadow: none;
}

.callback-form button[type="submit"]:hover {
    background: linear-gradient(135deg, #2ce0ff, #0088ff);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 3px 0;
    color: rgba(255, 255, 255, 0.78);
    cursor: pointer;
    font-size: 12px;
    text-align: left;
}

.checkbox-label input[type="checkbox"] {
    width: 17px;
    min-height: 17px;
    height: 17px;
    flex: 0 0 17px;
    margin-top: 3px;
    accent-color: var(--color-accent);
}

.checkbox-label a,
.footer-links a {
    color: #00d2ff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.checkbox-label a:hover,
.footer-links a:hover {
    color: white;
}

.call-summary {
    display: none;
    margin-top: 22px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
}

.call-summary p {
    margin-bottom: 10px;
    color: white;
}

.summary-actions {
    flex-wrap: wrap;
}

.footer {
    padding: 42px 0 22px;
    background: #030408;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    padding-bottom: 28px;
}

.footer-grid h4 {
    margin-bottom: 12px;
    color: white;
    font-size: 15px;
}

.footer-grid p {
    margin-bottom: 9px;
}

.footer-phone-link {
    color: white;
    font-weight: 700;
    text-decoration: none;
}

.footer-phone-link:hover {
    color: #00d2ff;
}

.footer-bottom {
    padding-top: 17px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    text-align: center;
}

.legal-modal {
    position: fixed;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(5, 8, 15, 0.88);
    inset: 0;
}

.legal-modal.active {
    display: flex;
}

.legal-modal-box {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 34px;
    border: 1px solid var(--color-line);
    border-radius: 18px;
    background: var(--color-paper);
    box-shadow: 0 22px 65px rgba(0, 0, 0, 0.25);
    color: var(--color-ink);
}

.legal-modal-box h3 {
    margin-bottom: 14px;
    padding-right: 40px;
    color: var(--color-primary-dark);
    font-size: 23px;
}

.legal-modal-box h4 {
    margin: 19px 0 7px;
    color: var(--color-ink);
    font-size: 16px;
}

.legal-modal-box p,
.legal-modal-box li {
    margin-bottom: 10px;
    color: var(--color-muted);
}

.legal-modal-box ul {
    padding-left: 22px;
}

.legal-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid var(--color-line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-ink);
    cursor: pointer;
    font-size: 21px;
    transition: background 0.2s, color 0.2s;
}

.legal-modal-close:hover {
    background: #00d2ff;
    color: white;
}

.review-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.review-rating-field,
.review-form textarea,
.review-form button[type="submit"] {
    grid-column: 1 / -1;
}

.review-rating-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--color-muted);
    font-size: 14px;
}

.star-rating-input {
    display: inline-flex;
    gap: 4px;
}

.star-rating-input button {
    padding: 0 2px;
    border: 0;
    background: none;
    color: #333c4a;
    cursor: pointer;
    font-size: 30px;
    line-height: 1.1;
    transition: color 0.15s, transform 0.15s;
}

.star-rating-input button:hover,
.star-rating-input button.active {
    transform: scale(1.08);
    color: var(--color-accent);
}

.review-form textarea {
    min-height: 115px;
    resize: vertical;
}

.review-photo-field {
    grid-column: 1 / -1;
    color: var(--color-muted);
    font-size: 14px;
}

.review-photo-field input {
    margin-top: 8px;
    padding: 9px;
}

.review-photo {
    width: 100%;
    max-height: 260px;
    border-radius: 10px;
    object-fit: cover;
}

.review-form button[type="submit"] {
    margin-top: 2px;
}

@media (max-width: 768px) {
    .container {
        width: min(100% - 32px, 640px);
    }

    .user-location {
        display: none;
    }

    .hero {
        padding: 68px 0 76px;
    }

    .hero h1 {
        letter-spacing: -0.8px;
    }

    .seo-blocks,
    .services,
    .pricing,
    .request-section,
    .reviews-section {
        padding: 54px 0;
    }

    .cards-grid,
    .process-steps,
    .geo-lists,
    .grid,
    .reviews-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .container {
        width: calc(100% - 28px);
    }

    .navbar {
        padding: 9px 0;
    }

    .nav-inner {
        gap: 8px;
    }

    .logo {
        gap: 7px;
    }

    .logo span {
        display: none;
    }

    .logo-img {
        width: 38px;
        height: 38px;
    }

    .nav-actions {
        gap: 7px;
    }

    .nav-actions .btn-primary,
    .nav-call-btn {
        padding: 9px 10px;
        font-size: 11px;
    }

    .hero {
        padding: 56px 0 62px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 15px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions a {
        width: 100%;
    }

    .seo-blocks,
    .services,
    .pricing,
    .request-section,
    .reviews-section {
        padding: 44px 0;
    }

    .cards-grid,
    .process-steps,
    .geo-lists,
    .grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .card,
    .seo-card,
    .faq-item,
    .review-card {
        padding: 20px;
    }

    .request-box {
        padding: 27px 19px;
    }

    .request-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .callback-form,
    .review-form {
        grid-template-columns: 1fr;
    }

    .review-form > *,
    .review-rating-field,
    .review-form textarea,
    .review-form button[type="submit"] {
        grid-column: 1;
    }

    .price-table-wrap {
        overflow-x: auto;
    }

    .price-table {
        min-width: 650px;
        white-space: nowrap;
    }

    .price-table th,
    .price-table td {
        padding: 12px;
        font-size: 12px;
    }

    .legal-modal-box {
        padding: 28px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
