/* teh-nadzorstroy — минимализм */

:root {
    --color-bg: #ffffff;
    --color-surface: #ffffff;
    --color-text: #111827;
    --color-muted: #6b7280;
    --color-accent: #b45309;
    --color-accent-dark: #92400e;
    --color-border: #e5e7eb;
    --color-line: #f3f4f6;
    --font: 'Manrope', system-ui, sans-serif;
    --radius: 8px;
    --header-h: 64px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.65;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-dark); }

.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.section-tag {
    display: block;
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: .75rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .75rem 1.35rem;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: .875rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
    text-decoration: none;
    color: inherit;
    background: none;
}

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

.btn-outline {
    border-color: var(--color-border);
    color: var(--color-text);
}
.btn-outline:hover { border-color: var(--color-text); }

.btn-ghost-light {
    border-color: rgba(255,255,255,.35);
    color: #fff;
}
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }

.btn-text {
    padding: 0;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--color-accent);
    border: none;
}
.btn-text:hover { color: var(--color-accent-dark); }

.btn-sm { padding: .45rem .85rem; font-size: .8125rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
    height: var(--header-h);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--color-text);
    font-weight: 700;
    text-decoration: none;
}

.logo-mark {
    width: 32px;
    height: 32px;
    background: var(--color-text);
    color: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .6875rem;
    font-weight: 800;
}

.logo-text { font-size: .9375rem; letter-spacing: -.01em; }

.nav { display: none; gap: 1.75rem; }

.nav a {
    color: var(--color-muted);
    font-size: .8125rem;
    font-weight: 500;
    text-decoration: none;
}
.nav a:hover { color: var(--color-text); }

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

.header-phone {
    display: none;
    color: var(--color-text);
    font-weight: 600;
    font-size: .8125rem;
    text-decoration: none;
}

.burger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: .25rem;
}
.burger span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--color-text);
}

.nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    padding: 1.25rem;
    border-bottom: 1px solid var(--color-border);
    gap: 1rem;
}

/* Hero */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: flex-end;
    padding: calc(var(--header-h) + 4rem) 0 4rem;
    background: var(--color-text) center/cover no-repeat;
    background-image: var(--hero-bg);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17,24,39,.75) 0%, rgba(17,24,39,.35) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 560px;
    color: #fff;
}

.hero-badge {
    display: inline-block;
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.7);
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(1.875rem, 5vw, 2.625rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.02em;
    margin-bottom: 1rem;
}

.hero-lead {
    font-size: 1rem;
    color: rgba(255,255,255,.82);
    margin-bottom: 2rem;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

/* Stats */
.stats {
    border-bottom: 1px solid var(--color-border);
    padding: 2.5rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-item {
    padding-left: 1rem;
    border-left: 1px solid var(--color-border);
}

.stat-num {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.1;
}

.stat-label {
    font-size: .75rem;
    color: var(--color-muted);
    margin-top: .2rem;
}

/* Sections */
.section { padding: 5rem 0; }

.section-line {
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.section-head {
    max-width: 480px;
    margin: 0 auto 3rem;
    text-align: center;
}

.section-head-left {
    margin-left: 0;
    text-align: left;
}

.section-head h2 {
    font-size: clamp(1.5rem, 3.5vw, 1.875rem);
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: .5rem;
}

.section-head p { color: var(--color-muted); font-size: .9375rem; }

/* Catalog */
.catalog-grid {
    display: grid;
    gap: 2rem 1.5rem;
}

.catalog-card {
    display: flex;
    flex-direction: column;
}

.catalog-img-wrap {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.catalog-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    transition: transform .5s ease;
}

.catalog-img-wrap:hover img { transform: scale(1.03); }

.catalog-body h3 {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -.01em;
    margin-bottom: .2rem;
}

.catalog-meta {
    font-size: .8125rem;
    color: var(--color-muted);
    margin-bottom: .65rem;
}

.catalog-footer {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.catalog-price {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -.01em;
}

/* Advantages */
.advantages-grid {
    display: grid;
    gap: 2rem 1.5rem;
}

.advantage-card {
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.advantage-num {
    display: block;
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--color-muted);
    margin-bottom: .75rem;
}

.advantage-card h3 {
    font-size: .9375rem;
    font-weight: 600;
    margin-bottom: .4rem;
}

.advantage-card p {
    font-size: .875rem;
    color: var(--color-muted);
    line-height: 1.55;
}

/* About */
.about-grid {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
}

.about-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.about-text h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: 1.25rem;
}

.about-text p {
    color: var(--color-muted);
    margin-bottom: 1rem;
    font-size: .9375rem;
}

.about-text .btn { margin-top: .5rem; }

/* Steps */
.steps-grid {
    display: grid;
    gap: 1.5rem;
}

.step-card {
    padding: 1.25rem 0;
    border-top: 1px solid var(--color-border);
}

.step-num {
    display: block;
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--color-muted);
    margin-bottom: .5rem;
}

.step-card h3 {
    font-size: .9375rem;
    font-weight: 600;
    margin-bottom: .3rem;
}

.step-card p {
    font-size: .875rem;
    color: var(--color-muted);
}

/* FAQ */
.faq-list { max-width: 640px; margin: 0 auto; }

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-item summary {
    padding: 1.125rem 0;
    font-weight: 600;
    font-size: .9375rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-size: 1.125rem;
    color: var(--color-muted);
    font-weight: 400;
    flex-shrink: 0;
}

.faq-item[open] summary::after { content: '−'; }

.faq-item p {
    padding: 0 0 1.125rem;
    color: var(--color-muted);
    font-size: .875rem;
    line-height: 1.6;
}

/* Contacts */
.section-contacts {
    background: var(--color-line);
}

.contacts-inner { max-width: 560px; }

.contacts-list {
    list-style: none;
    margin: 2rem 0;
}

.contacts-list li {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
}

.contacts-label {
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.contacts-list a,
.contacts-list span {
    color: var(--color-text);
    font-weight: 500;
    font-size: 1rem;
}

.contacts-list a { text-decoration: none; }
.contacts-list a:hover { color: var(--color-accent); }

.contacts-actions { margin-bottom: 2rem; }

.contacts-legal {
    font-size: .8125rem;
    color: var(--color-muted);
}

.contacts-legal .dot { margin: 0 .4rem; }

/* Forms */
.lead-form label {
    display: block;
    margin-bottom: .875rem;
    font-size: .8125rem;
    font-weight: 500;
    color: var(--color-muted);
}

.lead-form input:not([type="checkbox"]),
.lead-form textarea,
.lead-form select {
    display: block;
    width: 100%;
    margin-top: .3rem;
    padding: .65rem .75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: .9375rem;
    background: #fff;
    color: var(--color-text);
    transition: border-color .15s;
}

.lead-form input:focus,
.lead-form textarea:focus,
.lead-form select:focus {
    outline: none;
    border-color: var(--color-text);
}

.form-consent {
    display: flex !important;
    align-items: flex-start;
    gap: .5rem;
    font-size: .75rem !important;
    font-weight: 400 !important;
    color: var(--color-muted) !important;
    line-height: 1.45;
}

.form-consent input[type="checkbox"] {
    width: auto;
    margin-top: .15rem;
    flex-shrink: 0;
}

.optional { font-weight: 400; }

.form-msg {
    margin-top: .5rem;
    font-size: .8125rem;
    min-height: 1.2rem;
}
.form-msg.success { color: #166534; }
.form-msg.error { color: #b91c1c; }

.hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
}

/* Footer */
.site-footer {
    background: var(--color-text);
    color: rgba(255,255,255,.65);
    padding: 3rem 0 0;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-logo .logo-text { color: #fff; }
.footer-logo .logo-mark { background: rgba(255,255,255,.15); }
.footer-desc { font-size: .8125rem; margin-top: .75rem; max-width: 260px; line-height: 1.5; }
.footer-meta { font-size: .8125rem; margin-top: .5rem; color: rgba(255,255,255,.45); }

.site-footer strong {
    color: #fff;
    display: block;
    margin-bottom: .65rem;
    font-size: .8125rem;
    font-weight: 600;
}

.site-footer p { font-size: .8125rem; margin-bottom: .35rem; }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: #fff; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: .75rem;
    color: rgba(255,255,255,.45);
}

.footer-bottom a { color: rgba(255,255,255,.45); }

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, visibility .2s;
}

.modal.active { opacity: 1; visibility: visible; }

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(17,24,39,.4);
}

.modal-box {
    position: relative;
    background: #fff;
    border-radius: var(--radius);
    padding: 1.75rem;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-box-wide { max-width: 880px; padding: 0; overflow: hidden; }

.modal-box-wide .modal-close {
    top: .85rem;
    right: .85rem;
    z-index: 2;
    background: rgba(255,255,255,.9);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.modal-close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-muted);
    line-height: 1;
}

.modal-box h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: .25rem;
}

.modal-sub {
    color: var(--color-muted);
    font-size: .875rem;
    margin-bottom: 1.25rem;
}

/* Project modal */
.project-modal-grid {
    display: grid;
    grid-template-columns: 1fr;
}

.project-modal-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--color-line);
}

.project-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-modal-info {
    padding: 1.75rem;
}

.project-modal-meta {
    font-size: .8125rem;
    color: var(--color-muted);
    margin-bottom: .35rem;
}

.project-modal-price {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: .75rem;
}

.project-modal-desc {
    font-size: .875rem;
    color: var(--color-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--color-border);
}

/* Legal pages */
.legal-page { padding-top: calc(var(--header-h) + 2rem); }

.legal-content { max-width: 640px; padding-bottom: 3rem; }

.legal-back {
    display: inline-block;
    font-size: .8125rem;
    color: var(--color-muted);
    margin-bottom: 2rem;
}

.legal-content h1 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: .5rem;
}

.legal-updated {
    font-size: .8125rem;
    color: var(--color-muted);
    margin-bottom: 2rem;
}

.legal-content h2 {
    font-size: 1rem;
    font-weight: 600;
    margin: 2rem 0 .75rem;
}

.legal-content p {
    font-size: .9375rem;
    color: var(--color-muted);
    margin-bottom: .75rem;
    line-height: 1.65;
}

/* Responsive */
@media (min-width: 640px) {
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
    .catalog-grid { grid-template-columns: repeat(2, 1fr); }
    .advantages-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .header-phone { display: block; }
}

@media (min-width: 768px) {
    .project-modal-grid { grid-template-columns: 1.1fr 1fr; }
    .project-modal-image { aspect-ratio: auto; min-height: 420px; }
}

@media (min-width: 900px) {
    .nav { display: flex; }
    .burger { display: none; }
    .about-grid { grid-template-columns: 1fr 1fr; }
    .catalog-grid { grid-template-columns: repeat(3, 1fr); }
    .advantages-grid { grid-template-columns: repeat(3, 1fr); }
    .steps-grid { grid-template-columns: repeat(5, 1fr); }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
