:root {
    --deep: #4f5d4d;
    --deep-2: #657360;
    --deep-3: #364333;
    --lime: #c8aa6e;
    --lime-soft: #efe3ca;
    --paper: #f7f8f5;
    --white: #ffffff;
    --ink: #263025;
    --muted: #6f786c;
    --line: rgba(79, 93, 77, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: Inter, Arial, Helvetica, sans-serif;
    font-size: 15.5px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.page-shell {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
    border-radius: 0;
    background: var(--white);
    box-shadow: none;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 48px;
    padding: 0 clamp(22px, 6vw, 100px);
    color: rgba(255, 255, 255, 0.88);
    background: linear-gradient(112deg, var(--deep) 0 78%, var(--white) 78% 100%);
    font-size: 12px;
    font-weight: 800;
}
.topbar-info, .topbar-social { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar-info span:first-child, .topbar-info span:nth-child(2), .topbar-info span:nth-child(3) { color: rgba(255, 255, 255, 0.86); }
.topbar-social a {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 9px;
    color: var(--deep);
    background: var(--lime-soft);
}
.topbar-social svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px clamp(22px, 6vw, 100px);
    background: var(--white);
}
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--deep); font-weight: 900; }
.logo img { width: auto; max-width: 178px; max-height: 46px; object-fit: contain; }
.logo-mark {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--white);
    background: var(--deep);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 24px;
}
.logo-text { font-size: 18px; }
.nav { display: flex; align-items: center; gap: 22px; color: #5d675f; font-size: 13px; font-weight: 800; }
.nav a.is-active { color: var(--deep); text-decoration: underline; text-underline-offset: 5px; }
.menu-button { display: none; }

.button, .pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 900;
    cursor: pointer;
}
.primary, .pill { color: var(--deep-3); background: var(--lime); box-shadow: 0 14px 28px rgba(79, 93, 77, 0.16); }
.light { color: var(--deep); background: var(--white); }
.text-link {
    color: var(--deep);
    background: transparent;
    text-decoration: underline;
    text-underline-offset: 5px;
    box-shadow: none;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
    align-items: center;
    gap: clamp(34px, 7vw, 94px);
    min-height: 560px;
    padding: clamp(56px, 7vw, 96px) clamp(22px, 6vw, 100px);
    background:
        linear-gradient(rgba(255,255,255,0.92), rgba(255,255,255,0.92)),
        url("../img/oli-fundo.jpeg") center / cover,
        var(--paper);
}
.hero-copy { max-width: 620px; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--deep-2);
    font-size: 14px;
    font-weight: 900;
}
.eyebrow i {
    display: inline-block;
    width: 25px;
    height: 16px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--deep) 0 48%, var(--white) 48% 62%, var(--deep-2) 62%);
}
.hero h1, .section h2, .services-dark h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(34px, 4.8vw, 60px);
    line-height: 1.1;
    letter-spacing: 0;
}
.hero p, .section p {
    max-width: 720px;
    color: var(--muted);
    font-size: 16.5px;
    line-height: 1.72;
}
.actions { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 32px; }
.hero-slider {
    display: block;
    overflow: hidden;
}
.hero-slides { position: relative; }
.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
    align-items: center;
    gap: clamp(34px, 7vw, 94px);
}
.hero-slide.is-active { display: grid; }
.hero-slide-media {
    display: block;
    min-height: 420px;
}
.hero-slide-media img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 64px 18px 64px 18px;
    filter: grayscale(1);
    box-shadow: 0 22px 54px rgba(38, 48, 37, 0.16);
}
.slider-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    color: var(--deep);
    background: white;
    box-shadow: 0 14px 30px rgba(38, 48, 37, 0.16);
    transform: translateY(-50%);
    cursor: pointer;
}
.slider-prev { left: 22px; }
.slider-next { right: 22px; }
.slider-dots {
    position: absolute;
    left: 50%;
    bottom: 24px;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}
.slider-dots button {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(79, 93, 77, 0.35);
    cursor: pointer;
}
.slider-dots button.is-active {
    width: 28px;
    background: var(--button);
}

.hero-collage {
    position: relative;
    min-height: 420px;
}
.photo, .wide-photo, .service-image {
    background-color: #d9dedb;
    background-size: cover;
    background-position: center;
    filter: grayscale(1);
    box-shadow: 0 18px 42px rgba(38, 48, 37, 0.13);
}
.story-card,
.service-image,
.service-thumb,
.case-image,
.client-image {
    background-image: var(--desktop-image);
}
.photo-a {
    position: absolute;
    inset: 86px auto auto 6px;
    width: 210px;
    height: 210px;
    border-radius: 18px 48px 18px 48px;
    background-image: url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=640&q=80");
}
.photo-b {
    position: absolute;
    inset: 0 40px auto auto;
    width: 285px;
    height: 250px;
    border-radius: 60px 18px 60px 18px;
    background-image: url("https://images.unsplash.com/photo-1551836022-d5d88e9218df?auto=format&fit=crop&w=640&q=80");
}
.photo-c {
    position: absolute;
    right: 12px;
    bottom: 0;
    width: 300px;
    height: 190px;
    border-radius: 18px 56px 18px 56px;
    background-image: url("https://images.unsplash.com/photo-1556761175-4b46a572b786?auto=format&fit=crop&w=640&q=80");
}
.badge {
    position: absolute;
    left: 0;
    bottom: 70px;
    display: grid;
    place-items: center;
    width: 94px;
    height: 94px;
    border: 8px solid var(--white);
    border-radius: 50%;
    color: var(--deep-3);
    background: var(--lime);
    font-size: 13px;
    font-weight: 1000;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
}
.spark {
    position: absolute;
    width: 58px;
    height: 58px;
    background: var(--lime);
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.spark-one { right: 2px; bottom: 56px; }
.spark-two { right: 72px; bottom: 92px; width: 32px; height: 32px; }

.service-strip {
    display: flex;
    align-items: center;
    gap: 44px;
    min-height: 72px;
    overflow: hidden;
    color: var(--white);
    background: var(--deep);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 900;
    white-space: nowrap;
}
.service-strip b { color: var(--white); font-size: 44px; line-height: 1; }

.section { padding: clamp(62px, 7vw, 96px) clamp(22px, 6vw, 100px); }
.page-hero {
    padding: clamp(72px, 9vw, 132px) clamp(22px, 6vw, 100px);
    text-align: center;
    background:
        linear-gradient(rgba(255,255,255,0.90), rgba(255,255,255,0.92)),
        url("../img/oli-fundo.jpeg") center / cover,
        var(--paper);
}
.page-hero.compact { padding-bottom: clamp(48px, 6vw, 84px); }
.page-hero h1 {
    max-width: 900px;
    margin: 0 auto;
    color: var(--ink);
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.1;
}
.page-hero p {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}
.editorial-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(28px, 6vw, 76px);
    align-items: start;
}
.editorial-grid > div:first-child,
.section-head > div {
    max-width: 760px;
}
.editorial-grid h2 {
    font-size: clamp(30px, 4vw, 48px);
}
.text-stack {
    display: grid;
    gap: 18px;
}
.text-stack p { margin: 0; }
.visual-story {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    grid-template-rows: repeat(2, 220px);
    gap: 22px;
    padding: 0 clamp(22px, 6vw, 100px) clamp(62px, 7vw, 96px);
}
.story-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 220px;
    overflow: hidden;
    border-radius: 22px;
    padding: 30px;
    color: white;
    background-size: cover;
    background-position: center;
    box-shadow: 0 18px 48px rgba(79, 93, 77, 0.14);
}
.story-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(38,48,37,0.08), rgba(38,48,37,0.72));
}
.story-card > * {
    position: relative;
    z-index: 1;
}
.story-card span {
    margin-bottom: 8px;
    color: var(--lime-soft);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.story-card h2, .story-card h3 {
    max-width: 620px;
    margin: 0;
    color: white;
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.12;
}
.story-card h3 {
    font-size: 24px;
}
.story-main {
    grid-row: 1 / 3;
    background-image: url("https://images.unsplash.com/photo-1556761175-5973dc0f32e7?auto=format&fit=crop&w=1200&q=82");
}
.story-side {
    background-image: url("https://images.unsplash.com/photo-1551836022-4c4c79ecde51?auto=format&fit=crop&w=900&q=82");
}
.story-alt {
    background-image: url("https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=900&q=82");
}
.soft-section {
    background:
        linear-gradient(rgba(247,248,245,0.94), rgba(247,248,245,0.94)),
        url("../img/oli-fundo.jpeg") center / cover;
}
.about-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1fr);
    gap: clamp(34px, 6vw, 74px);
    align-items: center;
}
.about-media { position: relative; display: grid; gap: 18px; }
.wide-photo {
    height: 230px;
    border-radius: 20px;
}
.photo-d { background-image: url("https://images.unsplash.com/photo-1573497491208-6b1acb260507?auto=format&fit=crop&w=900&q=80"); }
.photo-e { background-image: url("https://images.unsplash.com/photo-1556761175-5973dc0f32e7?auto=format&fit=crop&w=900&q=80"); }
.badge-float { left: auto; right: -26px; bottom: 168px; }
.about-copy h2 { font-size: clamp(30px, 4vw, 48px); }
.progress-list { display: grid; gap: 22px; margin: 28px 0; }
.progress-list div { position: relative; padding-bottom: 14px; color: var(--ink); font-size: 15px; font-weight: 900; }
.progress-list strong { float: right; }
.progress-list em {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: #edf1ee;
}
.progress-list em::before {
    content: "";
    display: block;
    width: var(--value);
    height: 100%;
    border-radius: inherit;
    background: var(--deep);
}
.progress-list em::after {
    content: "";
    position: absolute;
    left: calc(var(--value) - 10px);
    top: -7px;
    width: 20px;
    height: 20px;
    border: 5px solid var(--lime);
    border-radius: 50%;
    background: white;
}

.numbers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    padding: 0 clamp(22px, 6vw, 100px) clamp(72px, 8vw, 108px);
}
.mini-grid, .values-grid, .case-grid, .client-types {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.mini-grid article, .value-card, .case-card, .client-types article {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 14px 36px rgba(79, 93, 77, 0.10);
    transition: transform 180ms ease, box-shadow 180ms ease;
}
.mini-grid article:hover, .value-card:hover, .case-card:hover, .client-types article:hover, .service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 46px rgba(79, 93, 77, 0.14);
}
.mini-grid strong {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--deep-3);
    background: var(--lime);
}
.mini-grid h3, .value-card h3, .client-types h2 {
    margin: 18px 0 10px;
    color: var(--deep);
    font-size: 21px;
}
.mini-grid p, .value-card p, .client-types p, .case-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}
.timeline {
    display: grid;
    gap: 18px;
}
.timeline .section-head { margin-bottom: 12px; }
.timeline article, .service-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 0.95fr) minmax(260px, 0.75fr);
    gap: 26px;
    align-items: start;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}
.timeline article strong {
    color: var(--lime);
    font-size: 30px;
    line-height: 1;
}
.timeline h3, .service-row h2, .case-card h2 {
    margin: 0;
    color: var(--deep);
    font-size: clamp(22px, 2.6vw, 32px);
}
.timeline p, .service-row p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}
.service-list {
    display: grid;
    padding-top: 34px;
}
.service-row {
    grid-template-columns: 210px minmax(0, 1fr) minmax(240px, 0.72fr);
    padding: 24px;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: white;
    box-shadow: 0 12px 34px rgba(79, 93, 77, 0.08);
}
.service-thumb, .case-image, .client-image {
    min-height: 150px;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    filter: grayscale(1);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
}
.thumb-0 { background-image: url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=700&q=80"); }
.thumb-1 { background-image: url("https://images.unsplash.com/photo-1551836022-4c4c79ecde51?auto=format&fit=crop&w=700&q=80"); }
.thumb-2 { background-image: url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=700&q=80"); }
.thumb-3 { background-image: url("https://images.unsplash.com/photo-1573497491208-6b1acb260507?auto=format&fit=crop&w=700&q=80"); }
.service-row ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.service-row li {
    padding: 12px 14px;
    border-radius: 999px;
    color: var(--deep);
    background: var(--paper);
    font-weight: 800;
}
.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: white;
    background: var(--deep);
    text-align: center;
}
.cta-band h2 {
    max-width: 760px;
    margin: 0 auto;
    color: white;
}
.cta-band .button {
    margin: 0 auto;
}
.case-card span {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--deep-2);
    font-weight: 900;
}
.case-image, .client-image {
    min-height: 180px;
    margin: -12px -12px 22px;
}
.case-image-0 { background-image: url("https://images.unsplash.com/photo-1580281658626-ee379f3cce93?auto=format&fit=crop&w=800&q=80"); }
.case-image-1 { background-image: url("https://images.unsplash.com/photo-1505751172876-fa1923c5c528?auto=format&fit=crop&w=800&q=80"); }
.case-image-2 { background-image: url("https://images.unsplash.com/photo-1576091160550-2173dba999ef?auto=format&fit=crop&w=800&q=80"); }
.client-image-0 { background-image: url("https://images.unsplash.com/photo-1537368910025-700350fe46c7?auto=format&fit=crop&w=800&q=80"); }
.client-image-1 { background-image: url("https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?auto=format&fit=crop&w=800&q=80"); }
.client-image-2 { background-image: url("https://images.unsplash.com/photo-1519494140681-8b17d830a3e9?auto=format&fit=crop&w=800&q=80"); }
.case-card h2 {
    color: var(--ink);
}
.operations {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    gap: 32px;
    align-items: start;
}
.numbers article {
    position: relative;
    padding-right: 24px;
    border-right: 1px solid rgba(18, 63, 43, 0.35);
}
.numbers article:last-child { border-right: 0; }
.numbers strong { display: block; color: var(--ink); font-size: clamp(34px, 4vw, 48px); line-height: 1; }
.numbers span { display: block; margin-top: 8px; color: var(--muted); font-size: 16px; }

.services-dark {
    padding: clamp(66px, 7vw, 98px) clamp(22px, 6vw, 100px);
    color: white;
    background:
        repeating-linear-gradient(135deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 12px) top / 100% 48px no-repeat,
        repeating-linear-gradient(135deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 12px) bottom / 100% 48px no-repeat,
        var(--deep);
}
.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
}
.section-head.inverted h2 { max-width: 620px; color: white; font-size: clamp(30px, 4vw, 48px); }
.section-head.inverted .eyebrow { color: white; }
.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.service-card {
    display: grid;
    gap: 18px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 18px 44px rgba(38, 48, 37, 0.14);
}
.service-card.featured { color: var(--deep-3); background: var(--white); border-color: rgba(255,255,255,0.45); }
.service-card h3 { margin: 0; font-size: 22px; }
.service-card p { margin: 0; color: rgba(255, 255, 255, 0.74); line-height: 1.6; }
.service-card.featured p { color: rgba(18, 63, 43, 0.76); }
.service-card a { color: var(--lime-soft); font-weight: 900; }
.service-card.featured a { color: var(--deep); }
.service-image {
    height: 168px;
    border-radius: 14px;
}
.image-0 { background-image: url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=700&q=80"); }
.image-1 { background-image: url("https://images.unsplash.com/photo-1551836022-4c4c79ecde51?auto=format&fit=crop&w=700&q=80"); }
.image-2 { background-image: url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=700&q=80"); }

.proof { background: var(--white); }
.section h2 { font-size: clamp(30px, 4vw, 48px); }
.testimonials {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
blockquote {
    margin: 0;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 16px;
    color: #26372e;
    background: #fbfcfa;
    font-size: 17px;
    line-height: 1.6;
    box-shadow: 0 14px 36px rgba(79, 93, 77, 0.08);
}
cite { display: block; margin-top: 18px; color: var(--deep-2); font-size: 14px; font-style: normal; font-weight: 900; }

.contact {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 42px;
    align-items: start;
    background: #f7f9f6;
}
.form, .stack {
    display: grid;
    gap: 14px;
}
.form {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: white;
    box-shadow: 0 16px 42px rgba(79, 93, 77, 0.10);
}
label { display: grid; gap: 7px; color: var(--deep); font-size: 14px; font-weight: 900; }
input, select, textarea {
    width: 100%;
    border: 1px solid rgba(18, 63, 43, 0.2);
    border-radius: 12px;
    padding: 13px 14px;
    color: var(--ink);
    background: white;
    font: inherit;
}
textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 120px; gap: 12px; }
.success { color: var(--deep-2); font-weight: 900; }
.error { color: #b42318; font-weight: 800; }
.hint { color: var(--muted); font-size: 13px; }

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 28px clamp(22px, 6vw, 100px);
    color: white;
    background: #0f3324;
}
.footer nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.admin-body { background: #eef5f0; }
.admin-body .page-shell { width: auto; margin: 0; border-radius: 0; box-shadow: none; }
.login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        linear-gradient(rgba(255,255,255,0.88), rgba(255,255,255,0.92)),
        url("../img/oli-fundo.jpeg") center / cover,
        var(--paper);
}
.login-card { width: min(430px, 100%); padding: 34px; border-radius: 24px; }
.login-logo { display: grid; place-items: center; min-height: 72px; color: var(--deep); font-family: Georgia, 'Times New Roman', serif; font-size: 42px; font-weight: 700; }
.login-logo img { max-width: 230px; max-height: 82px; object-fit: contain; }
.login-logo span { color: var(--deep-2); font-family: Inter, Arial, Helvetica, sans-serif; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.login-card h1 { margin: 0; color: var(--deep); font-size: 24px; text-align: center; }
.portal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px clamp(18px, 4vw, 44px);
    color: white;
    background: var(--deep);
}
.portal-header nav { display: flex; align-items: center; gap: 16px; }
.portal-header button, .danger {
    border: 0;
    border-radius: 8px;
    padding: 9px 12px;
    color: white;
    background: #9f2a2a;
    cursor: pointer;
}
.portal { padding: clamp(18px, 4vw, 44px); display: grid; gap: 20px; }
.cms-tabs {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255,255,255,0.94);
    box-shadow: 0 10px 30px rgba(79, 93, 77, 0.08);
}
.cms-tabs button {
    display: inline-flex;
    padding: 10px 14px;
    border: 0;
    border-radius: 999px;
    color: var(--deep);
    background: var(--paper);
    font-weight: 900;
    font-size: 13px;
    cursor: pointer;
}
.cms-tabs button.is-active {
    color: white;
    background: var(--deep);
}
.cms-tab-panel {
    display: none;
}
.cms-tab-panel.is-active {
    display: block;
}
.cms-page-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}
.cms-side-tabs {
    position: sticky;
    top: 88px;
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fbfcfa;
    box-shadow: 0 16px 38px rgba(79, 93, 77, 0.08);
}
.cms-side-tabs button {
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 11px 12px;
    color: var(--deep);
    background: transparent;
    text-align: left;
    font-weight: 900;
    cursor: pointer;
}
.cms-side-tabs button.is-active {
    color: white;
    background: var(--deep);
}
.cms-inner-panel { display: none; }
.cms-inner-panel.is-active { display: block; }
.captcha-code {
    display: inline-flex;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--deep-3);
    background: var(--lime-soft);
    letter-spacing: 0.08em;
}
.cms-field-form {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fbfcfa;
    margin-bottom: 22px;
}
.cms-crud-group {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}
.cms-crud-group h3 {
    margin: 0 0 14px;
    color: var(--deep);
    font-size: 20px;
}
.cms-add-form {
    padding: 16px;
    border-radius: 14px;
    background: var(--paper);
    margin-bottom: 14px;
}
.cms-add-form .button.primary,
.cms-field-form .button.primary,
.user-form .button.primary {
    width: fit-content;
    min-height: 38px;
    padding: 9px 18px;
    font-size: 13px;
    box-shadow: 0 8px 18px rgba(79, 93, 77, 0.12);
}
.cms-edit-row {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    align-items: end;
    padding: 18px 92px 18px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: white;
    margin-bottom: 12px;
    box-shadow: 0 12px 30px rgba(79, 93, 77, 0.06);
}
.cms-delete-row {
    position: relative;
    margin: -54px 14px 30px 0;
    text-align: right;
}
.cms-edit-row label {
    font-size: 12px;
}
.cms-edit-row input {
    min-height: 42px;
    padding: 10px 12px;
}
.cms-edit-row small,
.cms-add-form small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
    word-break: normal;
}
.image-upload-field small {
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--deep);
    background: var(--lime-soft);
}
.micro-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    place-items: center;
    min-width: 36px;
    height: 30px;
    border: 0;
    border-radius: 10px;
    padding: 0 12px;
    color: white;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}
.micro-icon.save {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--deep);
}
.micro-icon.delete { background: #a82b2b; }
.password-line {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}
.mini-action {
    border: 0;
    border-radius: 999px;
    padding: 0 14px;
    color: var(--deep);
    background: var(--lime-soft);
    font-weight: 900;
    cursor: pointer;
}
.admin-list {
    display: grid;
    gap: 12px;
}
.admin-list-item {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fbfcfa;
}
.admin-list-form {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    padding: 18px 92px 18px 18px;
}
.admin-list-delete {
    position: absolute;
    right: 14px;
    bottom: 14px;
}
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.metrics article, .panel {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: white;
    box-shadow: 0 18px 60px rgba(18, 63, 43, 0.08);
}
.metrics article { padding: 22px; }
.metrics span { color: var(--muted); font-weight: 800; }
.metrics strong { display: block; margin-top: 8px; color: var(--deep); font-size: 30px; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.panel { padding: 22px; }
.panel h2 { margin: 0 0 16px; color: var(--deep); font-size: 22px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 14px; }
th { color: var(--deep); background: #f3f8f5; }

@media (max-width: 920px) {
    .page-shell { width: 100%; margin: 0; border-radius: 0; }
    .topbar { background: var(--deep); align-items: flex-start; padding-top: 12px; padding-bottom: 12px; }
    .topbar-social { display: none; }
    .menu-button {
        display: inline-flex;
        border: 1px solid var(--line);
        border-radius: 999px;
        padding: 10px 14px;
        background: white;
        color: var(--deep);
        font-weight: 900;
    }
    .nav {
        position: absolute;
        top: 92px;
        right: 18px;
        left: 18px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: white;
        box-shadow: 0 24px 70px rgba(18, 63, 43, 0.16);
    }
    .nav.is-open { display: flex; }
    .hero, .about-layout, .contact, .admin-grid { grid-template-columns: 1fr; }
    .hero { min-height: auto; }
    .hero-slide { grid-template-columns: 1fr; }
    .hero-slide-media { min-height: 280px; }
    .hero-slide-media img { height: 300px; border-radius: 28px 12px 28px 12px; }
    .story-card,
    .service-image,
    .service-thumb,
    .case-image,
    .client-image { background-image: var(--mobile-image, var(--desktop-image)); }
    .slider-arrow { top: auto; bottom: 18px; transform: none; }
    .slider-prev { left: 22px; }
    .slider-next { right: 22px; }
    .cms-page-layout { grid-template-columns: 1fr; }
    .cms-side-tabs { position: static; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
    .cms-edit-row,
    .admin-list-form {
        grid-template-columns: 1fr;
        padding-right: 18px;
        padding-bottom: 62px;
    }
    .micro-icon.save { top: auto; right: 58px; bottom: 16px; }
    .cms-delete-row { margin: -58px 18px 28px 0; }
    .admin-list-delete { bottom: 16px; }
    .hero-collage { min-height: 360px; }
    .numbers, .service-cards, .testimonials, .metrics, .mini-grid, .values-grid, .case-grid, .client-types, .editorial-grid, .operations, .visual-story { grid-template-columns: 1fr; }
    .visual-story { grid-template-rows: auto; }
    .story-main { grid-row: auto; }
    .timeline article, .service-row { grid-template-columns: 1fr; }
    .cta-band { align-items: start; flex-direction: column; }
    .numbers article { border-right: 0; border-bottom: 1px solid rgba(18, 63, 43, 0.2); padding-bottom: 18px; }
    .section-head { align-items: start; flex-direction: column; }
    .form-row { grid-template-columns: 1fr; }
    .footer { flex-direction: column; }
}

@media (max-width: 560px) {
    .topbar-info { gap: 8px; }
    .site-header { padding: 18px; }
    .logo-text { font-size: 16px; }
    .hero h1 { font-size: 38px; }
    .photo-a { width: 170px; height: 170px; }
    .photo-b { width: 210px; height: 210px; right: 0; }
    .photo-c { width: 240px; height: 160px; }
    .badge { width: 78px; height: 78px; font-size: 11px; }
}
