:root {
    --blue: #129fe4;
    --blue-strong: #048ed8;
    --blue-soft: #eaf7ff;
    --dark: #34343a;
    --dark-2: #1f2026;
    --gray: #656872;
    --line: rgba(52, 52, 58, 0.12);
    --white: #ffffff;
    --shadow: 0 24px 80px rgba(17, 47, 70, 0.14);
    --shadow-soft: 0 16px 45px rgba(17, 47, 70, 0.10);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --font-main: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-title: 'Montserrat', 'Manrope', system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-main);
    color: var(--dark);
    background:
        radial-gradient(circle at top right, rgba(18, 159, 228, 0.14), transparent 34rem),
        radial-gradient(circle at 5% 25%, rgba(18, 159, 228, 0.08), transparent 23rem),
        linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

body.is-loading {
    overflow: hidden;
}

img {
    max-width: 100%;
    display: block;
}

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

button, input, textarea {
    font: inherit;
}

::selection {
    background: rgba(18, 159, 228, 0.18);
    color: var(--dark-2);
}

.page-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(18, 159, 228, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18, 159, 228, 0.04) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 82%);
    z-index: -2;
}

.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #edf9ff 52%, #ffffff 100%);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hide {
    opacity: 0;
    visibility: hidden;
}

.preloader-card {
    width: min(88vw, 560px);
    padding: 34px;
    border: 1px solid rgba(18, 159, 228, 0.16);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    text-align: center;
}

.preloader-logo {
    width: min(100%, 430px);
    margin: 0 auto 22px;
}

.preloader-card p {
    margin: 14px 0 0;
    font-weight: 700;
    color: var(--gray);
    letter-spacing: 0.02em;
}

.loader-ring {
    width: 56px;
    height: 56px;
    margin: 0 auto;
    border: 5px solid rgba(18, 159, 228, 0.16);
    border-top-color: var(--blue);
    border-right-color: var(--dark);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 18px clamp(18px, 4vw, 52px);
    transition: 0.25s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(18, 159, 228, 0.11);
    box-shadow: 0 12px 40px rgba(17, 47, 70, 0.06);
}

.navbar {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand img {
    width: clamp(220px, 26vw, 405px);
    height: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    position: relative;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--dark);
    font-weight: 800;
    font-size: 0.92rem;
    transition: 0.22s ease;
}

.nav-links a:hover {
    color: var(--blue-strong);
    background: rgba(18, 159, 228, 0.08);
}

.nav-links .nav-cta {
    color: #fff;
    background: var(--dark);
    box-shadow: 0 12px 24px rgba(31, 32, 38, 0.18);
}

.nav-links .nav-cta:hover {
    color: #fff;
    background: var(--blue);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--dark);
    border-radius: 99px;
}

.hero {
    width: min(1180px, calc(100% - 36px));
    min-height: calc(100vh - 100px);
    margin: 0 auto;
    padding: clamp(50px, 8vw, 100px) 0 54px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: center;
    gap: clamp(34px, 6vw, 80px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--blue-strong);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.13em;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--blue);
    box-shadow: 0 0 0 0 rgba(18, 159, 228, 0.62);
    animation: pulse 1.65s infinite;
}

@keyframes pulse {
    70% { box-shadow: 0 0 0 12px rgba(18, 159, 228, 0); }
    100% { box-shadow: 0 0 0 0 rgba(18, 159, 228, 0); }
}

h1, h2, h3 {
    font-family: var(--font-title);
    color: var(--dark-2);
    margin: 0;
    line-height: 1.06;
}

h1 {
    margin-top: 16px;
    font-size: clamp(3rem, 8vw, 7rem);
    letter-spacing: -0.065em;
}

.hero-lead {
    max-width: 660px;
    margin: 22px 0 0;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--gray);
    line-height: 1.75;
}

.hero-actions {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn, .refresh-btn {
    position: relative;
    isolation: isolate;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn::after, .mail-item::after, .refresh-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(6px);
    width: max-content;
    max-width: 260px;
    padding: 8px 10px;
    color: #fff;
    background: var(--dark-2);
    border-radius: 10px;
    font-size: 0.75rem;
    line-height: 1.25;
    opacity: 0;
    pointer-events: none;
    transition: 0.18s ease;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
    z-index: 5;
}

.btn:hover::after, .mail-item:hover::after, .refresh-btn:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--blue-strong));
    box-shadow: 0 16px 36px rgba(18, 159, 228, 0.32);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 44px rgba(18, 159, 228, 0.38);
}

.btn-secondary {
    color: var(--dark-2);
    background: #fff;
    border: 1px solid rgba(18, 159, 228, 0.18);
    box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    color: var(--blue-strong);
}

.full {
    width: 100%;
}

.trust-row {
    margin-top: 34px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.trust-row div {
    padding: 18px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(18, 159, 228, 0.12);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(17, 47, 70, 0.06);
}

.trust-row strong {
    display: block;
    color: var(--dark-2);
    font: 800 1.38rem var(--font-title);
}

.trust-row span {
    display: block;
    margin-top: 4px;
    color: var(--gray);
    font-size: 0.86rem;
    font-weight: 700;
}

.hero-visual {
    position: relative;
    min-height: 530px;
    display: grid;
    place-items: center;
}

.hero-visual::before {
    content: '';
    position: absolute;
    width: min(82vw, 510px);
    aspect-ratio: 1;
    border-radius: 42% 58% 44% 56%;
    background: linear-gradient(135deg, rgba(18, 159, 228, 0.14), rgba(52, 52, 58, 0.08));
    animation: morph 8s ease-in-out infinite;
    z-index: -1;
}

@keyframes morph {
    0%, 100% { border-radius: 42% 58% 44% 56%; transform: rotate(0deg); }
    50% { border-radius: 55% 45% 58% 42%; transform: rotate(7deg); }
}

.construction-card {
    width: min(100%, 430px);
    padding: 36px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(18, 159, 228, 0.16);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

.helmet-icon {
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    border-radius: 26px;
    color: var(--blue);
    background: var(--blue-soft);
    margin-bottom: 22px;
}

.construction-card h2 {
    font-size: clamp(2rem, 4vw, 3.35rem);
    letter-spacing: -0.045em;
}

.construction-card p {
    color: var(--gray);
    line-height: 1.65;
    margin: 16px 0 24px;
    font-weight: 600;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-weight: 900;
    color: var(--dark-2);
    margin-bottom: 10px;
}

.progress-header b {
    color: var(--blue-strong);
}

.progress-bar {
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(18, 159, 228, 0.12);
}

.progress-bar span {
    display: block;
    width: 85%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--blue), var(--dark));
    animation: loadBar 1.7s ease both;
}

@keyframes loadBar {
    from { width: 0; }
    to { width: 85%; }
}

.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    color: var(--dark-2);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(18, 159, 228, 0.14);
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
    font-weight: 900;
    backdrop-filter: blur(16px);
    animation: float 4.5s ease-in-out infinite;
}

.floating-badge span {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--blue);
}

.badge-one {
    top: 82px;
    left: 0;
}

.badge-two {
    right: 0;
    bottom: 84px;
    animation-delay: 0.8s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.section {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: 72px 0;
}

.section-heading {
    max-width: 740px;
    text-align: center;
    margin: 0 auto 34px;
}

.section-heading h2, .contact-card h2, .form-panel h2, .comments-header h2 {
    margin-top: 12px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: -0.045em;
}

.section-heading p, .contact-card p, .form-panel p {
    color: var(--gray);
    line-height: 1.7;
    font-weight: 600;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.service-card {
    padding: 30px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(18, 159, 228, 0.12);
    box-shadow: var(--shadow-soft);
    transition: 0.24s ease;
}

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

.service-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: var(--blue);
    background: var(--blue-soft);
    margin-bottom: 20px;
}

.service-icon svg {
    width: 34px;
    height: 34px;
}

.service-card h3 {
    font-size: 1.32rem;
    margin-bottom: 10px;
}

.service-card p {
    margin: 0;
    color: var(--gray);
    line-height: 1.65;
    font-weight: 600;
}

.contact-card {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 28px;
    align-items: center;
    padding: clamp(28px, 5vw, 48px);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(234, 247, 255, 0.76));
    border: 1px solid rgba(18, 159, 228, 0.16);
    box-shadow: var(--shadow-soft);
}

.mail-list {
    display: grid;
    gap: 14px;
}

.mail-item {
    position: relative;
    padding: 18px 20px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(18, 159, 228, 0.13);
    box-shadow: 0 12px 32px rgba(17, 47, 70, 0.06);
    transition: 0.22s ease;
}

.mail-item:hover {
    transform: translateY(-4px);
    border-color: rgba(18, 159, 228, 0.36);
}

.mail-item span {
    display: block;
    color: var(--blue-strong);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.76rem;
    letter-spacing: 0.11em;
}

.mail-item strong {
    display: block;
    margin-top: 4px;
    color: var(--dark-2);
    overflow-wrap: anywhere;
}

.message-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: 22px;
    align-items: start;
}

.form-panel, .comments-panel {
    padding: clamp(24px, 4vw, 36px);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(18, 159, 228, 0.14);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

form {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

label {
    display: grid;
    gap: 8px;
    color: var(--dark-2);
    font-weight: 900;
}

input, textarea {
    width: 100%;
    border: 1px solid rgba(52, 52, 58, 0.14);
    border-radius: 15px;
    background: #fff;
    padding: 14px 15px;
    color: var(--dark-2);
    outline: none;
    transition: 0.18s ease;
}

input:focus, textarea:focus {
    border-color: rgba(18, 159, 228, 0.62);
    box-shadow: 0 0 0 4px rgba(18, 159, 228, 0.10);
}

textarea {
    resize: vertical;
    min-height: 130px;
}

.hidden-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.form-status {
    min-height: 22px;
    margin: 0;
    color: var(--gray);
    font-weight: 800;
}

.form-status.ok {
    color: #15855a;
}

.form-status.error {
    color: #b72525;
}

.comments-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.refresh-btn {
    min-height: 44px;
    padding: 0 16px;
    color: var(--blue-strong);
    background: var(--blue-soft);
    font-size: 0.9rem;
}

.refresh-btn:hover {
    transform: translateY(-2px);
    background: rgba(18, 159, 228, 0.15);
}

.comments-list {
    display: grid;
    gap: 14px;
    max-height: 620px;
    overflow: auto;
    padding-right: 5px;
}

.comment-card {
    padding: 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(18, 159, 228, 0.12);
    box-shadow: 0 10px 26px rgba(17, 47, 70, 0.05);
    animation: fadeUp 0.35s ease both;
}

.comment-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.comment-top strong {
    color: var(--dark-2);
    font: 800 1rem var(--font-title);
}

.comment-top span {
    color: var(--blue-strong);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.comment-card p {
    margin: 0;
    color: var(--gray);
    line-height: 1.65;
    font-weight: 600;
}

.comment-date {
    display: block;
    margin-top: 10px;
    color: rgba(52, 52, 58, 0.58);
    font-size: 0.82rem;
    font-weight: 800;
}

.empty-state {
    padding: 28px;
    border: 1px dashed rgba(18, 159, 228, 0.35);
    border-radius: 18px;
    color: var(--gray);
    background: rgba(234, 247, 255, 0.44);
    text-align: center;
    font-weight: 800;
}

.site-footer {
    width: min(1180px, calc(100% - 36px));
    margin: 30px auto 28px;
}

.footer-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 20px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(18, 159, 228, 0.12);
    box-shadow: 0 10px 32px rgba(17, 47, 70, 0.06);
}

.footer-logo {
    width: min(230px, 42vw);
}

.footer-inner strong {
    color: var(--dark-2);
}

.footer-inner p {
    margin: 4px 0 0;
    color: var(--gray);
    font-weight: 700;
}

.back-top {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: var(--dark);
    font-size: 1.3rem;
    font-weight: 900;
    transition: 0.22s ease;
}

.back-top:hover {
    background: var(--blue);
    transform: translateY(-3px);
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 44px;
    }

    .hero-visual {
        min-height: 440px;
    }

    .service-grid,
    .contact-card,
    .message-layout {
        grid-template-columns: 1fr;
    }

    .contact-card {
        gap: 18px;
    }
}

@media (max-width: 760px) {
    .site-header {
        padding: 14px 16px;
    }

    .brand img {
        width: min(64vw, 305px);
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 12px);
        left: 16px;
        right: 16px;
        display: grid;
        gap: 8px;
        padding: 14px;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(18, 159, 228, 0.14);
        border-radius: 22px;
        box-shadow: var(--shadow-soft);
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: 0.22s ease;
    }

    .nav-links.open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
    }

    h1 {
        font-size: clamp(3.05rem, 16vw, 5.2rem);
    }

    .trust-row {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 400px;
    }

    .construction-card {
        padding: 28px;
    }

    .floating-badge {
        position: static;
        margin-top: 12px;
        justify-content: center;
        animation: none;
    }

    .hero-visual {
        display: block;
    }

    .section {
        padding: 50px 0;
    }

    .comments-header {
        flex-direction: column;
    }

    .refresh-btn {
        width: 100%;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }
}

@media (max-width: 460px) {
    .hero,
    .section,
    .site-footer {
        width: min(100% - 24px, 1180px);
    }

    .hero-actions {
        display: grid;
    }

    .btn {
        width: 100%;
    }

    .preloader-card {
        padding: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }
}
