:root {
    --bg: #0b1220;
    --surface: #111a2a;
    --text: #e5f3ff;
    --muted: #99adc2;
    --primary: #06b6d4;
    --border: #1f2f46;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background:
        linear-gradient(180deg, rgba(6, 11, 20, 0.84) 0%, rgba(11, 18, 32, 0.9) 100%),
        url('../images/background-service-55.webp') center / cover no-repeat fixed,
        linear-gradient(180deg, #060b14 0%, #0b1220 100%);
    color: var(--text);
    min-height: 100vh;
    position: relative;
}

body::before,
body::after {
    content: '';
    position: fixed;
    width: 40vw;
    height: 40vw;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    filter: blur(60px);
}

body::before {
    top: -10vw;
    right: -10vw;
    background: rgba(6, 182, 212, 0.14);
}

body::after {
    bottom: -12vw;
    left: -12vw;
    background: rgba(31, 47, 70, 0.45);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(11, 18, 32, 0.9);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
}

.brand img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.home-link {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease;
}

.home-link:hover {
    color: var(--text);
    transform: translateY(-1px);
}

.lang-switcher {
    display: flex;
    gap: 0.35rem;
}

.lang-switcher button {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    padding: 0.35rem 0.5rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.lang-switcher button:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}

.lang-switcher button.active {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(6, 182, 212, 0.12);
    box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.2) inset;
}

main {
    max-width: 1080px;
    margin: 0 auto;
    padding: 1rem;
}

.hero {
    margin-top: 1rem;
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: radial-gradient(80% 120% at 10% 0%, rgba(6,182,212,0.22), transparent 70%), var(--surface);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.35);
    animation: heroPulse 6s ease-in-out infinite;
}

.hero h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.6rem, 3.6vw, 2.4rem);
}

.hero p {
    margin: 0;
    color: var(--muted);
    max-width: 68ch;
}

.hero-seo-line {
    margin-top: 0.75rem;
    color: #cfe3f3;
    max-width: 72ch;
    line-height: 1.5;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.85rem;
    color: #b8d0e4;
    font-size: 0.95rem;
}

.hero-cta {
    margin-top: 1.25rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 0.7rem 1rem;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.btn-primary {
    background: var(--primary);
    color: #05222a;
    box-shadow: 0 14px 30px rgba(6, 182, 212, 0.3);
}

.btn-outline {
    border: 1px solid var(--border);
    color: var(--text);
    background: rgba(255, 255, 255, 0.02);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary:hover {
    box-shadow: 0 18px 34px rgba(6, 182, 212, 0.38);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(6, 182, 212, 0.1);
}

.section {
    margin-top: 1.5rem;
    padding: 1.2rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.section h2 {
    margin: 0 0 1rem;
}

.section-intro {
    margin: 0 0 0.95rem;
    color: var(--muted);
    line-height: 1.55;
    max-width: 72ch;
}

.pricing-toolbar {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 0.7rem;
    margin-bottom: 0.9rem;
}

.pricing-toolbar input,
.pricing-toolbar select,
.calc-grid select,
.calc-grid input,
.service-form input,
.service-form select,
.service-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #0d1727;
    color: var(--text);
    padding: 0.62rem 0.72rem;
    outline: none;
}

.pricing-toolbar input:focus,
.pricing-toolbar select:focus,
.calc-grid select:focus,
.calc-grid input:focus,
.service-form input:focus,
.service-form select:focus,
.service-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.12);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.9rem;
    background: #0d1727;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(6, 182, 212, 0.45);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.35);
}

.card h3 {
    margin: 0 0 0.4rem;
    font-size: 1rem;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.card .price {
    display: inline-flex;
    margin-top: 0.6rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
    color: var(--primary);
}

.price-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
}

.price-block {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: #0d1727;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.price-block-toggle {
    width: 100%;
    margin: 0;
    border: 0;
    padding: 0.8rem 0.95rem;
    background: rgba(6, 182, 212, 0.12);
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    text-align: left;
    transition: background-color 0.25s ease;
}

.price-block-toggle:hover {
    background: rgba(6, 182, 212, 0.18);
}

.price-chevron {
    transition: transform 0.25s ease;
}

.price-block.expanded .price-chevron {
    transform: rotate(180deg);
}

.price-block-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.price-block.expanded .price-block-content {
    max-height: 1000px;
}

.price-table-wrap {
    overflow-x: auto;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
}

.price-table th,
.price-table td {
    text-align: left;
    padding: 0.65rem;
    border-bottom: 1px solid var(--border);
}

.price-table td:last-child,
.price-table th:last-child {
    white-space: nowrap;
    font-weight: 600;
}

.price-table th {
    color: var(--muted);
    font-weight: 600;
}

#mobile-service .card ul {
    margin: 0.5rem 0 0;
    padding-left: 1rem;
    color: var(--muted);
}

#mobile-service .card li {
    margin: 0.3rem 0;
}

.note {
    margin-top: 0.75rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.calc-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
    align-items: end;
}

.calc-grid label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.calc-items {
    list-style: none;
    margin: 0.9rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.calc-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 0.55rem;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.55rem 0.7rem;
    background: #0d1727;
}

.calc-remove {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    border-radius: 8px;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
}

.calc-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 0.9rem;
}

.calc-total {
    margin: 0;
    font-weight: 700;
    color: var(--primary);
}

.service-form {
    display: grid;
    gap: 0.7rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.service-form label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.form-address.hidden {
    display: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-grid iframe {
    width: 100%;
    min-height: 260px;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

#contact .contact-grid a,
#contact .contact-grid a:visited {
    color: var(--text);
    text-decoration-color: rgba(6, 182, 212, 0.55);
    text-underline-offset: 2px;
}

#contact .contact-grid a:hover,
#contact .contact-grid a:focus-visible {
    color: var(--primary);
    text-decoration-color: var(--primary);
}

.footer {
    color: var(--muted);
    text-align: center;
    padding: 1.5rem 1rem 6rem;
}

.quick-actions {
    position: fixed;
    right: 16px;
    bottom: 16px;
    display: flex;
    gap: 0.5rem;
    z-index: 35;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: calc(100vw - 2rem);
}

.quick-action {
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--border);
    background: rgba(17, 26, 42, 0.92);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    font-size: 0.86rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.24);
}

.quick-action:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.32);
}

.quick-call {
    background: rgba(6, 182, 212, 0.2);
    border-color: rgba(6, 182, 212, 0.44);
}

.quick-icon {
    display: inline-block;
    transform-origin: center;
    animation: iconFloat 2.2s ease-in-out infinite;
}

.quick-action:nth-child(2) .quick-icon {
    animation-delay: 0.25s;
}

.quick-action:nth-child(3) .quick-icon {
    animation-delay: 0.45s;
}

.back-to-top {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 35;
    border: 1px solid var(--border);
    color: var(--text);
    background: rgba(17, 26, 42, 0.92);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    padding: 0.55rem 0.85rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.24);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all 0.25s ease;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

@keyframes heroPulse {
    0%,
    100% {
        box-shadow: 0 22px 48px rgba(0, 0, 0, 0.35);
    }
    50% {
        box-shadow: 0 24px 52px rgba(6, 182, 212, 0.18);
    }
}

@keyframes iconFloat {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-2px) scale(1.08);
    }
}

@media (max-width: 900px) {
    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero {
        padding: 1.3rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .pricing-toolbar {
        grid-template-columns: 1fr;
    }

    .calc-grid {
        grid-template-columns: 1fr 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        left: 12px;
        right: 12px;
        bottom: 12px;
        justify-content: center;
    }

    .quick-action {
        flex: 1 1 auto;
        text-align: center;
        justify-content: center;
    }

    .back-to-top {
        left: auto;
        right: 12px;
        bottom: 62px;
    }
}

@media (max-width: 760px) {
    .price-table thead {
        display: none;
    }

    .price-table,
    .price-table tbody,
    .price-table tr,
    .price-table td {
        display: block;
        width: 100%;
    }

    .price-table tr {
        border-bottom: 1px solid var(--border);
        padding: 0.4rem 0.35rem;
    }

    .price-table td {
        border-bottom: 0;
        padding: 0.35rem 0.5rem;
    }

    .price-table td::before {
        content: attr(data-label);
        display: block;
        color: var(--muted);
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        margin-bottom: 0.12rem;
    }

    .price-table td:last-child {
        color: var(--primary);
        font-weight: 700;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
