:root {
    --bg: #f5f1ea;
    --bg-soft: #ece4d8;
    --surface: #ffffff;
    --surface-strong: #1e2a2f;
    --text: #182126;
    --muted: #5c6a70;
    --line: rgba(24, 33, 38, 0.12);
    --brand: #0f766e;
    --brand-strong: #0b5d56;
    --accent: #d97706;
    --shadow: 0 24px 60px rgba(24, 33, 38, 0.12);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top left, rgba(15, 118, 110, 0.1), transparent 35%), linear-gradient(180deg, #fbf7f2 0%, var(--bg) 100%);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(calc(100% - 32px), var(--container)); margin: 0 auto; }
.narrow { width: min(calc(100% - 32px), 860px); }
.hero-narrow { width: min(calc(100% - 32px), 980px); }
.topbar { background: var(--surface-strong); color: #eef4f4; font-size: 0.92rem; }
.topbar-inner, .header-inner, .footer-bottom, .hero-grid, .two-column, .cta-box { display: flex; gap: 20px; }
.topbar-inner { justify-content: space-between; align-items: center; padding: 12px 0; }
.topbar-inner p { margin: 0; }
.topbar-phones, .hero-actions, .cta-actions, .contact-list, .footer-phones, .tag-list { display: flex; gap: 14px; flex-wrap: wrap; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(251, 247, 242, 0.88);
    border-bottom: 1px solid rgba(24, 33, 38, 0.08);
}
.header-inner { align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: inline-flex; align-items: center; gap: 14px; min-width: 0; }
.brand img { width: 66px; }
.brand span { display: grid; gap: 2px; }
.brand strong { font-size: 1.05rem; }
.brand small, .hero-copy, .section-heading p, .content-card p, .price-row p, .service-note, .area-card li span { color: var(--muted); }
.main-nav { display: flex; gap: 18px; align-items: center; flex-wrap: nowrap; }
.main-nav > a, .nav-dropdown-trigger { padding: 10px 0; position: relative; font-weight: 600; }
.main-nav > a.active::after, .main-nav > a:hover::after, .nav-dropdown-trigger.active::after, .nav-dropdown:hover > .nav-dropdown-trigger::after, .nav-dropdown:focus-within > .nav-dropdown-trigger::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--accent);
}
.nav-dropdown { position: relative; display: flex; align-items: center; padding-bottom: 12px; margin-bottom: -12px; }
.nav-dropdown-trigger { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.nav-caret { font-size: 0.85rem; line-height: 1; }
.dropdown-panel {
    position: absolute !important;
    top: calc(100% - 2px);
    left: 0;
    min-width: 260px;
    padding: 10px 0;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    display: none !important;
    z-index: 30;
    overflow: hidden;
}
.dropdown-panel a {
    display: block;
    width: 100%;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    font-weight: 600;
}
.dropdown-panel a:last-child { border-bottom: 0; }
.dropdown-panel a:hover { background: var(--bg-soft); }
.nav-dropdown:hover > .dropdown-panel,
.nav-dropdown:focus-within > .dropdown-panel { display: block !important; }
.menu-toggle { display: none; }
.button, button {
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}
.button:hover, button:hover { transform: translateY(-1px); }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 14px 22px; }
.button-primary, button, .admin-button { background: linear-gradient(135deg, var(--brand), var(--brand-strong)); color: white; }
.button-secondary { background: transparent; color: var(--text); border: 1px solid var(--line); }
.hero-section, .page-hero { padding: 72px 0 44px; }
.hero-grid { align-items: stretch; }
.hero-grid > *, .two-column > * { flex: 1; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.1);
    color: var(--brand-strong);
    font-weight: 700;
    margin-bottom: 18px;
}
.hero-section h1, .page-hero h1, .section-heading h2, .content-card h2, .cta-box h2 { margin: 0 0 18px; line-height: 1.05; }
.hero-section h1, .page-hero h1 { font-size: clamp(2.4rem, 5vw, 4.8rem); max-width: 12ch; }
.hero-narrow h1 { max-width: 16ch; }
.hero-copy, .content-flow { font-size: 1.05rem; line-height: 1.8; }
.hero-highlights, .footer-list { list-style: none; padding: 0; margin: 24px 0 0; }
.hero-highlights li, .footer-list li { padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.hero-card, .content-card, .service-card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.hero-card, .content-card, .cta-box { padding: 32px; }
.hero-card { background: linear-gradient(180deg, rgba(15, 118, 110, 0.96), rgba(11, 93, 86, 0.96)), url("../img/og-cover.png") center/cover; color: white; }
.hero-card ol { margin: 0; padding-left: 20px; display: grid; gap: 14px; }
.section { padding: 42px 0; }
.section-muted { background: rgba(255, 255, 255, 0.35); }
.section-heading { margin-bottom: 28px; }
.card-grid, .area-grid { display: grid; gap: 24px; }
.card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-card { overflow: hidden; }
.service-card img, .detail-cover { width: 100%; height: 220px; object-fit: cover; }
.service-card > div { padding: 22px; }
.service-card h3, .service-card h2, .price-preview h3, .area-card h2 { margin-top: 0; }
.service-card-large { grid-column: span 2; }
.service-link-card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.service-link-card:hover { transform: translateY(-4px); }
.content-flow > *:first-child { margin-top: 0; }
.content-flow > *:last-child { margin-bottom: 0; }
.accent-card { background: linear-gradient(180deg, #fff8ee 0%, #ffffff 100%); }
.price-preview + .price-preview, .district-block + .district-block, .price-category + .price-category { margin-top: 24px; }
.price-table { background: var(--surface); border-radius: var(--radius-lg); padding: 10px 20px; box-shadow: var(--shadow); }
.price-row { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.price-row:last-child { border-bottom: 0; }
.tag-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--bg-soft);
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}
.tag-chip:hover, .tag-chip.active { background: var(--brand); color: white; }
.check-list { display: grid; gap: 12px; }
.check-list p { margin: 0; padding: 12px 14px; background: rgba(15, 118, 110, 0.08); border-radius: 12px; }
.section-cta { padding-bottom: 76px; }
.cta-box {
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(24, 33, 38, 0.97), rgba(15, 118, 110, 0.92)), url("../img/og-cover.png") center/cover;
    color: white;
}
.site-footer { background: #142025; color: #ebf1f1; padding-top: 54px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; }
.footer-list li { border-bottom-color: rgba(255, 255, 255, 0.08); }
.footer-bottom { justify-content: space-between; padding: 22px 0; margin-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.92rem; }
.contact-form, .admin-form { display: grid; gap: 18px; }
.contact-form label, .admin-form label { display: grid; gap: 8px; }
.contact-form input, .contact-form textarea, .admin-form input, .admin-form textarea, .admin-form select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 16px;
    font: inherit;
    background: white;
}
.map-frame { width: 100%; min-height: 320px; border: 0; border-radius: var(--radius-md); margin-top: 20px; }
.alert-success { padding: 14px 16px; border-radius: 14px; background: rgba(15, 118, 110, 0.12); color: var(--brand-strong); }

@media (max-width: 1024px) {
    .header-inner, .hero-grid, .two-column, .cta-box, .footer-bottom, .topbar-inner { flex-direction: column; align-items: flex-start; }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .main-nav, .header-cta { display: none; }
    .menu-toggle { display: inline-flex; background: transparent; color: var(--text); border: 1px solid var(--line); padding: 12px 16px; }
    .site-header.nav-open .main-nav { display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding-top: 14px; }
    .site-header.nav-open .nav-dropdown { width: 100%; display: block; padding-bottom: 0; margin-bottom: 0; }
    .site-header.nav-open .nav-dropdown-trigger { width: 100%; justify-content: space-between; }
    .site-header.nav-open .dropdown-panel {
        position: static !important;
        display: block !important;
        width: 100%;
        margin-top: 8px;
        box-shadow: none;
        padding: 0;
        border-radius: 14px;
        background: transparent;
    }
    .site-header.nav-open .header-cta { display: inline-flex; }
    .header-inner { align-items: stretch; }
    .brand { justify-content: space-between; }
    .card-grid, .footer-grid { grid-template-columns: 1fr; }
    .service-card-large { grid-column: span 1; }
    .hero-section h1, .page-hero h1 { max-width: none; }
    .hero-card, .content-card, .cta-box { padding: 24px; }
}
