/* ==========================================================
   تصميم موقع مكتب المحاماة
   الألوان والخطوط والمسافات من المتغيرات في الأعلى — غيّرها من هنا فقط
   ========================================================== */

:root {
    --ink: #12161c;
    --ink-soft: #1c222b;
    --brass: #b08d57;
    --brass-dark: #8a6a3a;
    --ivory: #f6f2ea;
    --paper: #ffffff;
    --text: #262a31;
    --muted: #5d636c;
    --line: #e3dccf;

    --font-body: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif;
    --font-head: 'Amiri', 'Noto Naskh Arabic', serif;

    --container: 1180px;
    --radius: 6px;
    --header-h: 68px;
}

/* ---------- أساسيات ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.container-narrow { width: min(100% - 2rem, 900px); margin-inline: auto; }

.icon {
    width: 1.25em;
    height: 1.25em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* ---------- الأزرار ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 48px;
    padding: .8rem 1.6rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    transition: background-color .2s, color .2s, border-color .2s;
}
.btn-brass { background: var(--brass); color: #16110a; }
.btn-brass:hover { background: #c29d63; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-soft); }
.btn-outline { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, .08); }
.btn-whatsapp { background: #1f9d55; color: #fff; }
.btn-whatsapp:hover { background: #188546; }
.btn-block { width: 100%; }

/* ---------- الشريط العلوي (سطح المكتب فقط) ---------- */
.topbar {
    display: none;
    background: var(--ink);
    color: #c9c2b5;
    font-size: .8125rem;
}
.topbar-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .25rem 1.5rem;
    padding-block: .55rem;
}
.topbar-item { display: inline-flex; align-items: center; gap: .45rem; }
.topbar .icon { color: var(--brass); }

/* ---------- الهيدر ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: 0 4px 18px -8px rgba(18, 22, 28, .25); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--ink);
    color: var(--brass);
}
.brand-mark .icon { width: 22px; height: 22px; }
.brand-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink);
}

.header-actions { display: flex; align-items: center; gap: .75rem; }
.header-cta { display: none; min-height: 42px; padding: .5rem 1.25rem; font-size: .9rem; }

.nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--ink);
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* قائمة الجوال: لوحة تحت الهيدر */
.nav {
    position: fixed;
    top: var(--header-h);
    inset-inline: 0;
    bottom: 0;
    z-index: 55;
    display: flex;
    flex-direction: column;
    padding: 1rem 1.25rem 2rem;
    overflow-y: auto;
    background: var(--ink);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
}
.nav.open { visibility: visible; opacity: 1; transform: none; }
.nav a:not(.btn) {
    padding: 1rem .25rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
}
.nav a:not(.btn).active { color: var(--brass); }
.nav-call { margin-top: 1.5rem; }

/* ---------- القسم الرئيسي ---------- */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(120deg, #12161c 55%, #241a13 100%);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }

.hero-inner {
    display: grid;
    gap: 2.5rem;
    padding-block: clamp(3rem, 8vw, 6rem);
}
.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1rem;
    font-size: .9rem;
    font-weight: 600;
    color: var(--brass);
}
.hero-tagline::before { content: ''; width: 28px; height: 2px; background: var(--brass); }

.hero-title {
    margin-bottom: 1.25rem;
    font-family: var(--font-head);
    font-size: clamp(2.3rem, 6.5vw, 4rem);
    font-weight: 700;
    line-height: 1.35;
}
.hero-subtitle {
    max-width: 36rem;
    margin-bottom: 2rem;
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    color: #cfc8ba;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-actions .btn { flex: 1 1 200px; }

.hero-card {
    padding: 1.5rem;
    border: 1px solid rgba(176, 141, 87, .4);
    border-radius: 8px;
    background: rgba(255, 255, 255, .05);
}
.hero-card-title {
    margin-bottom: .75rem;
    font-size: .9rem;
    font-weight: 600;
    color: var(--brass);
}
.info-row {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    padding-block: .8rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.info-row .icon { margin-top: .3rem; color: var(--brass); }
.info-label { display: block; font-size: .8rem; line-height: 1.5; color: #9f9888; }
.info-value { display: block; font-weight: 500; }
.hero-card .btn { margin-top: 1.25rem; }

/* ---------- شريط الأرقام ---------- */
.stats { background: var(--ivory); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.stat { padding: 1.5rem 1rem; text-align: center; border-inline-start: 1px solid var(--line); }
.stat:nth-child(2n + 1) { border-inline-start: 0; }
.stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
.stat:last-child:nth-child(odd) { grid-column: 1 / -1; border-inline-start: 0; }
.stat-number {
    display: block;
    font-family: var(--font-head);
    font-size: 2.3rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--brass-dark);
}
.stat-label { font-size: .9rem; color: var(--muted); }

/* ---------- الأقسام العامة ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-alt { background: var(--ivory); }
.section-dark { background: var(--ink); color: #fff; }

.section-head { max-width: 42rem; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .5rem;
    font-size: .9rem;
    font-weight: 600;
    color: var(--brass-dark);
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--brass); }
.section-dark .eyebrow { color: var(--brass); }

.section-title {
    font-family: var(--font-head);
    font-size: clamp(1.75rem, 4.4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.4;
    color: var(--ink);
}
.section-dark .section-title { color: #fff; }
.section-lead { margin-top: .75rem; color: #b9b3a7; }

/* ---------- مجالات الممارسة ---------- */
.services-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }

.service-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    transition: border-color .2s, transform .2s;
}
.service-card:hover { border-color: var(--brass); transform: translateY(-3px); }
.service-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--line); }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.service-card:hover .service-media img { transform: scale(1.05); }
.service-body { padding: 1.35rem 1.5rem 1.6rem; }
.service-num {
    display: block;
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--brass);
}
.service-title { margin-bottom: .4rem; font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.service-text { font-size: .975rem; color: var(--muted); }

/* ---------- لماذا نحن ---------- */
.features-grid { display: grid; gap: 0; grid-template-columns: 1fr; }
.feature { padding-block: 1.75rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.feature:first-child { border-top: 0; }
.feature-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 1rem;
    border: 1px solid rgba(176, 141, 87, .6);
    border-radius: 50%;
    color: var(--brass);
}
.feature-icon .icon { width: 24px; height: 24px; }
.feature-title { margin-bottom: .4rem; font-size: 1.2rem; font-weight: 700; }
.feature-text { color: #b9b3a7; font-size: .975rem; }

/* ---------- من نحن ---------- */
.about-grid { display: grid; gap: 3rem; align-items: center; }
.about-media { position: relative; margin: 0 .9rem 1.5rem; }
.about-media::before {
    content: '';
    position: absolute;
    inset: 14px 14px -14px -14px;
    border: 2px solid var(--brass);
    border-radius: 8px;
}
.about-media img {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    border-radius: 8px;
    background: var(--line);
}
.about-placeholder { position: relative; z-index: 1; aspect-ratio: 16 / 11; border-radius: 8px; background: var(--line); }
.about-badge {
    position: absolute;
    z-index: 2;
    inset-inline-start: 1rem;
    bottom: -1.5rem;
    padding: .8rem 1.3rem;
    border-radius: var(--radius);
    border-inline-start: 3px solid var(--brass);
    background: var(--ink);
    color: #fff;
}
.about-badge strong {
    display: block;
    font-family: var(--font-head);
    font-size: 1.8rem;
    line-height: 1.2;
    color: var(--brass);
}
.about-badge span { font-size: .85rem; }
.about-text { margin-bottom: 1.75rem; color: var(--muted); line-height: 2; }

/* ---------- فريق المحامين ---------- */
.team-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 340px)); } }
.team-card { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.team-photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.team-photo .placeholder { display: grid; place-items: center; height: 100%; color: #b3aa98; }
.team-photo .placeholder .icon { width: 56px; height: 56px; stroke-width: 1.25; }
.team-body { padding: 1.25rem 1.5rem 1.6rem; }
.team-name { font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.team-position { font-size: .9rem; font-weight: 600; color: var(--brass-dark); }
.team-specialty { margin-bottom: .6rem; font-size: .85rem; color: var(--muted); }
.team-bio { font-size: .925rem; color: var(--muted); }

/* ---------- معرض الشهادات ---------- */
.filters {
    display: flex;
    gap: .5rem;
    margin-bottom: 1.5rem;
    padding-bottom: .5rem;
    overflow-x: auto;
    scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.filter-btn {
    flex: 0 0 auto;
    padding: .5rem 1.15rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    font-size: .9rem;
    font-weight: 500;
    transition: background-color .2s, color .2s;
}
.filter-btn:hover { background: var(--ivory); }
.filter-btn.active { border-color: var(--ink); background: var(--ink); color: #fff; }

.gallery-grid { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); }
.gallery-item {
    aspect-ratio: 1;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: var(--radius);
    background: var(--line);
    cursor: zoom-in;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item.hidden-item { display: none; }

.empty-box {
    padding: 2.5rem 1rem;
    border: 1px dashed var(--line);
    border-radius: 8px;
    text-align: center;
    color: var(--muted);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(10, 12, 16, .92);
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 88vh; object-fit: contain; border-radius: 4px; }
.lightbox-close {
    position: absolute;
    top: 1rem;
    inset-inline-end: 1rem;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    background: transparent;
    color: #fff;
}

/* ---------- الفيديو ---------- */
.video-wrap {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    background: #000;
    box-shadow: 0 24px 40px -24px rgba(18, 22, 28, .5);
}
.video-wrap video { width: 100%; height: 100%; object-fit: contain; }
.section-sub { margin-top: .75rem; color: var(--muted); }

/* ---------- المقال ---------- */
.prose { max-width: 46rem; margin-inline: auto; }
.prose-body { margin-top: 1.5rem; color: var(--muted); font-size: 1.05rem; line-height: 2.1; }
.prose .btn { margin-top: 2rem; }

/* ---------- الأسئلة الشائعة ---------- */
.faq-grid { display: grid; gap: 2rem; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 0;
    font-weight: 600;
    color: var(--ink);
    list-style: none;
    cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .icon { color: var(--brass-dark); transition: transform .2s; }
.faq-item[open] .icon { transform: rotate(45deg); }
.faq-answer { padding-bottom: 1.25rem; color: var(--muted); }

/* ---------- آراء العملاء ---------- */
.testimonials-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.testimonial {
    display: flex;
    flex-direction: column;
    padding: 1.6rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}
.stars { display: flex; gap: .15rem; margin-bottom: .9rem; color: var(--brass); }
.stars .icon { width: 1.05rem; height: 1.05rem; }
.stars .off { color: var(--line); }
.testimonial-text { flex: 1; margin-bottom: 1.25rem; color: var(--text); }
.testimonial-author { display: flex; align-items: center; gap: .8rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--ivory);
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--brass-dark);
}
.author-name { font-weight: 700; line-height: 1.4; }
.author-title { font-size: .85rem; color: var(--muted); }

/* ---------- التواصل ---------- */
.contact-grid { display: grid; gap: 2.5rem; }
.contact-list { margin-block: 1.5rem; }
.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    padding-block: .9rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.contact-list .icon { margin-top: .3rem; color: var(--brass); }
.contact-list .info-label { color: #9f9888; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.contact-actions .btn { flex: 1 1 160px; }

.form-card { padding: 1.5rem; border-radius: 8px; background: var(--paper); color: var(--text); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; margin-bottom: .35rem; font-size: .9rem; font-weight: 600; }
.field input, .field select, .field textarea {
    width: 100%;
    padding: .8rem 1rem;
    border: 1px solid #d6cdbd;
    border-radius: var(--radius);
    background: #fff;
    font: inherit;
    font-size: 1rem; /* 16px يمنع تكبير الصفحة تلقائياً في آيفون */
    color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--brass);
    box-shadow: 0 0 0 3px rgba(176, 141, 87, .2);
}
.field .ltr { direction: ltr; text-align: right; }
.hp-field { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin-top: 1rem; font-size: .8rem; text-align: center; color: var(--muted); }

.alert { padding: 1rem 1.25rem; border-radius: var(--radius); font-weight: 500; }
.alert-success { background: #e8f4ed; border: 1px solid #b6dbc4; color: #15583a; }
.alert-error { margin-bottom: 1rem; background: #fbeaea; border: 1px solid #efc2c2; color: #8a2222; }

/* ---------- الفوتر ---------- */
.site-footer { padding-top: 3.5rem; background: #0d1015; color: #b9b3a7; font-size: .95rem; }
.footer-grid { display: grid; gap: 2rem; padding-bottom: 2.5rem; }
.footer-title { margin-bottom: .9rem; font-size: 1.05rem; font-weight: 700; color: #fff; }
.footer-brand { font-family: var(--font-head); font-size: 1.3rem; }
.footer-links li + li, .footer-contact li + li { margin-top: .5rem; }
.footer-links a:hover, .footer-contact a:hover { color: var(--brass); }
.footer-contact li { display: flex; align-items: flex-start; gap: .6rem; }
.footer-contact .icon { margin-top: .35rem; color: var(--brass); }
.footer-bottom { padding-block: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; text-align: center; color: #857f72; }

/* ---------- أزرار ثابتة ---------- */
.mobile-bar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid rgba(255, 255, 255, .12);
    background: var(--ink);
}
.mobile-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .1rem;
    padding: .6rem .25rem;
    font-size: .78rem;
    font-weight: 500;
    line-height: 1.4;
    color: #fff;
}
.mobile-bar a.primary { background: var(--brass); color: #16110a; }
.mobile-bar .icon { width: 1.35rem; height: 1.35rem; }

.wa-float {
    position: fixed;
    inset-inline-end: 1.5rem;
    bottom: 1.5rem;
    z-index: 60;
    display: none;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #1f9d55;
    color: #fff;
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .4);
    transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float .icon { width: 26px; height: 26px; }

/* ---------- ظهور تدريجي عند التمرير ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .service-card, .service-media img, .gallery-item img { transition: none; }
}

/* ==========================================================
   الجوال فقط: مساحة تحت الصفحة لشريط الأزرار السفلي
   ========================================================== */
@media (max-width: 899px) {
    body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
}

/* ==========================================================
   شاشات أكبر
   ========================================================== */
@media (min-width: 640px) {
    .services-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .form-card { padding: 2rem; }
}

@media (min-width: 900px) {
    :root { --header-h: 76px; }

    .topbar { display: block; }
    .mobile-bar { display: none; }
    .wa-float { display: grid; }

    .brand-name { font-size: 1.25rem; }
    .header-cta { display: inline-flex; }
    .nav-toggle, .nav-call { display: none; }

    /* القائمة تصير أفقية داخل الهيدر */
    .nav {
        position: static;
        flex-direction: row;
        align-items: center;
        gap: 1.75rem;
        padding: 0;
        overflow: visible;
        background: none;
        visibility: visible;
        opacity: 1;
        transform: none;
    }
    .nav a:not(.btn) {
        padding: .25rem 0;
        border-bottom: 2px solid transparent;
        font-size: .95rem;
        color: var(--text);
    }
    .nav a:not(.btn):hover,
    .nav a:not(.btn).active { border-bottom-color: var(--brass); color: var(--brass-dark); }
    .header-inner { gap: 2rem; }

    .hero-inner { grid-template-columns: 1.4fr .8fr; align-items: center; gap: 4rem; }
    .hero-actions .btn { flex: 0 0 auto; }

    .stats-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }
    .stat:nth-child(n) { border-top: 0; border-inline-start: 1px solid var(--line); }
    .stat:first-child { border-inline-start: 0; }
    .stat:last-child:nth-child(odd) { grid-column: auto; border-inline-start: 1px solid var(--line); }

    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(3, 1fr); }

    .features-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
    .feature, .feature:first-child { padding-block: 0; border-top: 0; }

    .about-grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
    .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; }

    .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 4rem; }
    .faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; margin-bottom: 0; }

    .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }

    .footer-grid { grid-template-columns: 1.6fr 1fr 1.2fr; gap: 3rem; }
}
