:root {
    --bg: #f1f4f6;
    --surface: #ffffff;
    --surface-alt: #f7f9fc;
    --text: #3b3d42;
    --muted: #a1a2a4;
    --primary: #398ffc;
    --primary-dark: #2576de;
    --primary-ink: #1f67c8;
    --accent-dark: #212429;
    --border: #ebeced;
    --shadow: 0 5px 32px rgba(103, 122, 141, 0.17);
    --radius: 4px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Roboto", "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
}

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

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

.container {
    width: min(1200px, calc(100% - 2rem));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.top-panel {
    background: var(--accent-dark);
    color: #d6d9dd;
    font-size: 0.74rem;
    letter-spacing: 0.02em;
}

.top-panel-row {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.top-panel-right {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.top-panel a {
    color: #f3f5f7;
}

.header-row {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.echodev-banner {
    border-top: 1px solid var(--border);
    background: #f6f9ff;
}

.echodev-banner-row {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.22rem 0;
}

.echodev-banner-row p {
    margin: 0;
    color: #5b6270;
    font-size: 0.82rem;
    line-height: 1.25;
}

.echodev-banner-btn {
    white-space: nowrap;
    font-size: 0.62rem;
    letter-spacing: 0.05em;
    padding: 0.45rem 0.72rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
}

.logo-symbol {
    width: 36px;
    height: 36px;
    display: block;
    flex: 0 0 auto;
}

.logo-text {
    font-family: "Montserrat", "Arial Narrow", Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.main-nav {
    display: inline-flex;
    gap: 1.1rem;
    font-size: 0.86rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.main-nav a {
    color: var(--text);
    padding: 0.35rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: var(--primary-ink);
    border-color: var(--primary);
}

.header-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.phone-link {
    font-size: 0.84rem;
    font-weight: 700;
    color: #50545a;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 0.78rem 1.18rem;
    font-family: "Roboto", "Segoe UI", Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-secondary {
    background: #fff;
    border-color: var(--border);
    color: var(--text);
}

.btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.56);
    color: #fff;
}

.text-link {
    color: var(--primary-ink);
    font-weight: 700;
}

.hero {
    position: relative;
    overflow: hidden;
    margin-top: 0;
    min-height: 420px;
    height: clamp(420px, 46vw, 520px);
    max-height: 520px;
    border-radius: 0;
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(22, 30, 42, 0.8) 0%, rgba(22, 30, 42, 0.48) 55%, rgba(22, 30, 42, 0.28) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: grid;
    align-content: center;
    gap: 0.95rem;
    color: #fff;
    width: min(700px, calc(100% - 1.3rem));
}

.hero-kicker {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 700;
    opacity: 0.95;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2rem, 3.45vw, 3.35rem);
    line-height: 1.12;
    font-weight: 700;
}

.hero p {
    margin: 0;
    max-width: 60ch;
    color: #e8edf2;
}

.hero-cta {
    display: flex;
    gap: 0.66rem;
    flex-wrap: wrap;
    margin-top: 0.2rem;
}

.proofs {
    margin-top: 1rem;
}

.proofs-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.proofs-grid article {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    border-top: 3px solid var(--primary);
    box-shadow: var(--shadow);
    padding: 1rem;
}

.proofs-grid h2 {
    margin: 0 0 0.3rem;
    font-size: 1rem;
}

.proofs-grid p {
    margin: 0;
    color: #757982;
}

.section {
    padding: 3rem 0;
}

.section-alt {
    background: var(--surface-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-head {
    margin-bottom: 1.1rem;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.section h2,
.page-head h1 {
    margin: 0;
    font-size: clamp(1.55rem, 2.6vw, 2.1rem);
    line-height: 1.2;
}

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

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.2rem;
}

.service-card h3,
.service-card h2 {
    margin-top: 0;
}

.service-card p {
    margin-bottom: 0;
    color: #757982;
}

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

.project-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.project-card:hover {
    transform: translateY(-2px);
    border-color: #c8d8ef;
    box-shadow: 0 8px 28px rgba(103, 122, 141, 0.22);
}

.project-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.project-meta {
    padding: 1rem;
}

.project-meta span {
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--primary-ink);
    background: #e8f2ff;
    border-radius: 999px;
    padding: 0.18rem 0.58rem;
}

.project-meta h2,
.project-meta h3 {
    margin: 0.6rem 0 0.32rem;
    font-size: 1.05rem;
}

.project-meta p {
    margin: 0;
    color: #7d828b;
}

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

.method-grid article {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem;
}

.method-grid p {
    margin-bottom: 0;
    color: #757982;
}

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

.review-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem;
    box-shadow: var(--shadow);
}

.review-stars {
    margin: 0 0 0.4rem;
    color: #f0b429;
    letter-spacing: 2px;
    font-size: 1rem;
}

.review-card blockquote {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

.review-author {
    margin: 0.9rem 0 0;
    color: #71757d;
    font-weight: 700;
}

.final-cta {
    padding-top: 2rem;
}

.cta-box {
    background: linear-gradient(110deg, #2f88f8 0%, #1f67c8 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 1.8rem;
    box-shadow: var(--shadow);
}

.cta-box h2 {
    color: #fff;
    margin-bottom: 0.35rem;
}

.cta-box p {
    color: #e6eef8;
    margin-bottom: 1rem;
}

.cta-box .btn-primary {
    background: #fff;
    color: var(--primary-ink);
    border-color: #fff;
}

.cta-box .btn-primary:hover {
    background: #f4f9ff;
    border-color: #f4f9ff;
}

.page-head {
    padding: 2rem 0 1.2rem;
}

.page-head p {
    margin-top: 0.5rem;
    color: #747982;
}

.form-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 1rem;
}

.form-card {
    padding: 1.2rem;
}

.stack-form {
    display: grid;
    gap: 0.8rem;
}

.stack-form label {
    font-weight: 700;
    font-size: 0.9rem;
}

.stack-form input,
.stack-form textarea,
.stack-form select {
    width: 100%;
    border: 1px solid #d8dee8;
    border-radius: var(--radius);
    padding: 0.64rem 0.72rem;
    font: inherit;
    background: #fff;
}

.stack-form input:focus-visible,
.stack-form textarea:focus-visible,
.stack-form select:focus-visible {
    outline: 0;
    border-color: #8dc0ff;
    box-shadow: 0 0 0 3px rgba(57, 143, 252, 0.17);
}

.stack-form input[type="checkbox"],
.stack-form input[type="radio"] {
    width: auto;
    padding: 0;
    margin: 0.15rem 0.55rem 0 0;
    flex: 0 0 auto;
}

.stack-form .consent-row .form-check {
    display: flex;
    align-items: flex-start;
}

.stack-form .consent-row .consent-input {
    margin: 0.15rem 0.55rem 0 0;
    padding-right: 0.55rem;
}

.stack-form .consent-row .consent-label {
    display: inline;
    font-weight: 500;
}

.stack-form ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stack-form .form-error-message {
    color: #b42318;
    font-size: 0.87rem;
}

.list-check {
    padding-left: 1rem;
}

.list-check li {
    margin: 0.35rem 0;
}

.honeypot {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.filters-bar {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.filters-bar label {
    font-weight: 700;
    color: #4c5563;
    letter-spacing: 0.02em;
}

.filters-bar select {
    min-width: 210px;
    height: 42px;
    padding: 0.55rem 2.35rem 0.55rem 0.82rem;
    border: 1px solid #cfd8e5;
    border-radius: var(--radius);
    background-color: #fff;
    color: #2f3642;
    font: inherit;
    font-weight: 600;
    line-height: 1.1;
    box-shadow: 0 2px 10px rgba(31, 54, 92, 0.06);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #64748b 50%), linear-gradient(135deg, #64748b 50%, transparent 50%);
    background-position: calc(100% - 16px) 17px, calc(100% - 10px) 17px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filters-bar select:hover {
    border-color: #aebdd3;
}

.filters-bar select:focus-visible {
    outline: none;
    border-color: #8dc0ff;
    box-shadow: 0 0 0 3px rgba(57, 143, 252, 0.18), 0 2px 10px rgba(31, 54, 92, 0.08);
}

.pagination {
    margin-top: 1.1rem;
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.pagination a {
    min-width: 36px;
    text-align: center;
    padding: 0.44rem 0.58rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.pagination a.is-active {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.project-header {
    margin-bottom: 1rem;
}

.project-subtitle {
    color: #7d828b;
}

.project-cover {
    margin-bottom: 1rem;
    border-radius: var(--radius);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.gallery-grid img {
    width: 100%;
    border-radius: var(--radius);
    object-fit: cover;
}

.before-after {
    margin-top: 1.2rem;
}

.compare-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.map-embed {
    margin-top: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow);
}

.map-embed iframe {
    display: block;
    width: 100%;
    min-height: 300px;
    border: 0;
}

.map-embed-contact iframe {
    min-height: 320px;
}

.map-embed-zone iframe {
    min-height: 340px;
}

.footer-map-wrap {
    margin-top: 0.25rem;
}

.map-embed-footer {
    margin-top: 0;
    border-color: #343a42;
    box-shadow: none;
}

.map-embed-footer iframe {
    min-height: 190px;
}

.prose {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.35rem;
    box-shadow: var(--shadow);
}

.prose h2 {
    margin-top: 1.2rem;
}

.flash-wrap {
    margin-top: 0.8rem;
}

.flash {
    border-radius: var(--radius);
    padding: 0.72rem 0.9rem;
    margin-bottom: 0.4rem;
}

.flash-success {
    background: #dcfae6;
    color: #0e6933;
}

.flash-error {
    background: #fee4e2;
    color: #b42318;
}

.flash-warning {
    background: #fff4ce;
    color: #934b00;
}

.site-footer {
    margin-top: 2.4rem;
    background: #212429;
    color: #e6eaef;
}

.footer-grid {
    padding: 2rem 0;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 1.2rem;
}

.footer-grid h3 {
    margin-top: 0;
    margin-bottom: 0.55rem;
    font-size: 1.04rem;
    color: #fff;
}

.footer-grid p {
    margin: 0.45rem 0;
    color: #c4c8ce;
}

.footer-grid a {
    color: #f2f4f6;
}

.footer-grid a:hover {
    color: #9dccff;
}

.footer-links {
    margin: 0.5rem 0 0;
    padding-left: 1rem;
}

.footer-links li {
    margin: 0.3rem 0;
}

.footer-bottom {
    border-top: 1px solid #343a42;
    padding: 0.8rem 0 1rem;
    color: #aeb5be;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-credit a {
    color: #9dccff;
}

.cookie-banner {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    width: min(430px, calc(100% - 2rem));
    background: #13161a;
    color: #fff;
    border-radius: var(--radius);
    padding: 0.95rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    z-index: 80;
}

.cookie-banner .cookie-title {
    margin: 0 0 0.35rem;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.cookie-banner .cookie-text {
    margin: 0 0 0.7rem;
    font-size: 0.86rem;
    color: #d6dbe1;
}

.cookie-banner a {
    color: #8dc0ff;
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cookie-banner .cookie-actions .btn {
    padding: 0.55rem 0.72rem;
    font-size: 0.62rem;
}

.cookie-custom-panel {
    margin-top: 0.75rem;
    border-top: 1px solid #2b3139;
    padding-top: 0.7rem;
}

.cookie-option {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.7rem;
    margin-bottom: 0.62rem;
}

.cookie-option strong {
    display: block;
    font-size: 0.83rem;
}

.cookie-option p {
    margin: 0.1rem 0 0;
    font-size: 0.8rem;
    color: #aab2bc;
}

.cookie-option input[type="checkbox"] {
    margin-top: 0.1rem;
    width: 1rem;
    height: 1rem;
}

.cookie-custom-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.4rem;
}

@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }

    .hero {
        min-height: 360px;
        height: clamp(360px, 56vw, 460px);
        max-height: 460px;
    }

    .proofs-grid,
    .cards-grid,
    .projects-grid,
    .reviews-grid,
    .method-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .form-layout,
    .footer-grid,
    .compare-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .top-panel-row {
        min-height: 32px;
        justify-content: center;
    }

    .top-panel-right,
    .phone-link {
        display: none;
    }

    .header-row {
        min-height: 68px;
    }

    .echodev-banner-row {
        align-items: center;
        flex-direction: row;
        gap: 0.55rem;
    }

    .echodev-banner-btn {
        width: auto;
        padding: 0.4rem 0.62rem;
        font-size: 0.58rem;
    }

    .hero {
        min-height: 260px;
        height: clamp(260px, 62vw, 340px);
        max-height: 340px;
    }

    .hero h1 {
        font-size: clamp(1.65rem, 7vw, 2.2rem);
    }

    .proofs-grid,
    .cards-grid,
    .projects-grid,
    .reviews-grid,
    .method-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .map-embed iframe,
    .map-embed-contact iframe,
    .map-embed-zone iframe {
        min-height: 240px;
    }
}
