:root {
    --ink: #17211d;
    --muted: #5d6d66;
    --line: #dfe7e2;
    --paper: #fbfcfa;
    --mist: #eef4f0;
    --green: #2f6f55;
    --green-dark: #204d3d;
    --gold: #b98b45;
    --white: #ffffff;
    --shadow: 0 24px 70px rgba(28, 45, 39, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.55;
}

a {
    color: inherit;
}

.site-header,
.admin-header {
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(18px, 5vw, 64px);
    color: var(--white);
    background: rgba(16, 25, 22, 0.42);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    text-decoration: none;
}

.brand-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.16);
}

.nav {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
}

.nav a {
    text-decoration: none;
}

.nav-call {
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
}

.hero {
    position: relative;
    min-height: 92vh;
    display: grid;
    align-items: center;
    padding: 120px clamp(20px, 6vw, 80px) 84px;
    color: var(--white);
    background: url("../img/hero-cemetery-care.png") center / cover no-repeat;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: background-image 0.45s ease;
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 130px;
    background: linear-gradient(to bottom, rgba(251, 252, 250, 0), var(--paper));
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(13, 24, 20, 0.86), rgba(13, 24, 20, 0.48) 45%, rgba(13, 24, 20, 0.18));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(40px, 6vw, 74px);
    line-height: 1.02;
    letter-spacing: 0;
}

h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.12;
    letter-spacing: 0;
}

h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

.hero-copy {
    max-width: 620px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.hero-slider {
    position: relative;
    min-height: 238px;
}

.hero-slide {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.45s ease, transform 0.45s ease;
    pointer-events: none;
}

.hero-slide.is-active {
    position: relative;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.hero-dots {
    display: flex;
    gap: 9px;
    margin-top: 24px;
}

.hero-dots button {
    width: 38px;
    height: 5px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    cursor: pointer;
}

.hero-dots button.is-active {
    background: var(--gold);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 18px;
    border: 0;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.button.primary {
    color: var(--white);
    background: var(--green);
}

.button.primary:hover {
    background: var(--green-dark);
}

.button.secondary {
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.button.danger {
    color: var(--white);
    background: #a33b32;
}

.button.danger:hover {
    background: #842d27;
}

.notice {
    margin: -24px auto 40px;
    width: min(1040px, calc(100% - 32px));
    padding: 16px 18px;
    border-left: 4px solid var(--green);
    background: var(--white);
    box-shadow: var(--shadow);
}

.section {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: 78px 0;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 28px;
}

.service-grid,
.package-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.service-grid article,
.package-card {
    min-height: 230px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.service-grid span {
    display: inline-block;
    margin-bottom: 28px;
    color: var(--gold);
    font-weight: 700;
}

.service-grid p,
.request-copy p,
.package-card li {
    color: var(--muted);
}

.price {
    margin: 8px 0 18px;
    color: var(--green);
    font-size: 28px;
    font-weight: 700;
}

.package-card ul {
    margin: 0;
    padding-left: 18px;
}

.package-card li + li {
    margin-top: 9px;
}

.request-band {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(24px, 5vw, 72px);
    align-items: start;
    width: 100%;
    max-width: none;
    padding: 86px clamp(20px, 6vw, 80px);
    background: var(--mist);
}

.request-copy {
    max-width: 520px;
}

.request-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 26px;
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}

label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px 13px;
    color: var(--ink);
    background: var(--white);
    font: inherit;
}

textarea {
    resize: vertical;
}

.full {
    grid-column: 1 / -1;
}

.footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px;
    padding: 24px clamp(18px, 5vw, 64px);
    color: var(--white);
    background: var(--ink);
}

.footer a {
    text-decoration: none;
}

.admin-page {
    background: var(--mist);
}

.admin-page .admin-header {
    position: sticky;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.88);
}

.admin-page .brand-mark {
    border-color: var(--line);
    background: var(--mist);
}

.admin-page .brand-logo {
    background: var(--white);
    border: 1px solid var(--line);
}

.admin-main {
    width: min(1480px, calc(100% - 32px));
    margin: 40px auto;
}

.admin-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.admin-title h1 {
    font-size: clamp(30px, 4vw, 46px);
}

.admin-site-link {
    color: var(--ink);
    border-color: var(--line);
    background: var(--white);
}

.admin-notice {
    width: 100%;
    margin: 0 0 18px;
}

.admin-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.admin-content {
    min-width: 0;
}

.admin-menu {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 0;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 14px 40px rgba(28, 45, 39, 0.1);
}

.admin-menu-title {
    padding: 16px;
    color: var(--white);
    background: var(--ink);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

.admin-menu a {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 12px 14px;
    border-top: 1px solid var(--line);
    border-left: 4px solid transparent;
    border-radius: 0;
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
}

.admin-menu a:hover,
.admin-menu a.is-active {
    border-left-color: var(--green);
    background: var(--mist);
}

.menu-icon {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    color: var(--white);
    background: var(--green);
    font-size: 13px;
}

.menu-text {
    min-width: 0;
}

.admin-menu strong {
    color: var(--green);
    font-size: 12px;
}

.admin-error {
    border-left-color: #a33b32;
}

.admin-settings {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 24px;
    margin-bottom: 18px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.admin-settings h2 {
    font-size: 26px;
}

.admin-settings p {
    color: var(--muted);
}

.logo-panel {
    display: grid;
    gap: 14px;
}

.logo-preview {
    display: grid;
    place-items: center;
    min-height: 112px;
    padding: 16px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    background: var(--mist);
}

.logo-preview img {
    max-width: min(320px, 100%);
    max-height: 96px;
    object-fit: contain;
}

.logo-form {
    display: grid;
    gap: 12px;
}

.cemetery-panel {
    display: grid;
    gap: 18px;
}

.slide-panel {
    display: grid;
    gap: 18px;
}

.slide-list {
    display: grid;
    gap: 12px;
}

.slide-item {
    display: grid;
    grid-template-columns: 150px 1fr auto;
    gap: 14px;
    align-items: start;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.slide-thumb {
    width: 150px;
    height: 92px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--line);
}

.slide-item span {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-bottom: 8px;
    border-radius: 50%;
    color: var(--white);
    background: var(--green);
    font-size: 12px;
    font-weight: 700;
}

.slide-item h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.slide-item p {
    margin: 0;
    color: var(--muted);
}

.cemetery-list {
    display: grid;
    gap: 14px;
}

.cemetery-list p {
    margin: 0;
}

.cemetery-group {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.cemetery-group h3 {
    margin: 0;
    font-size: 16px;
}

.cemetery-item {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-top: 1px solid var(--line);
}

.small-button {
    min-height: 34px;
    padding: 7px 10px;
}

.bulk-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 12px;
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.bulk-select {
    min-width: 220px;
}

.bulk-button {
    min-height: 44px;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1640px;
}

th,
td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 13px;
}

.select-column {
    width: 72px;
}

.select-all-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.request-checkbox,
#select-all-requests {
    width: 18px;
    height: 18px;
    accent-color: var(--green);
}

tr.is-selected {
    background: #f4faf6;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--ink);
    background: var(--mist);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.status-yeni {
    background: #e8f1ff;
}

.status-onay-beklemede {
    background: #fff3d8;
}

.status-onaylandi,
.status-planlandi {
    background: #e4f5eb;
}

.status-tamamlandi {
    color: var(--white);
    background: var(--green);
}

.status-iptal {
    background: #f6dddd;
}

.admin-actions-cell {
    min-width: 280px;
}

.admin-row-form,
.delete-form {
    display: grid;
    gap: 10px;
}

.delete-form {
    margin-top: 10px;
}

.admin-row-form label {
    font-size: 12px;
}

.admin-row-form select,
.admin-row-form textarea {
    padding: 9px 10px;
    font-size: 14px;
}

.admin-button {
    width: 100%;
    min-height: 40px;
    padding: 9px 12px;
}

@media (max-width: 820px) {
    .site-header {
        position: absolute;
        align-items: flex-start;
    }

    .nav {
        display: none;
    }

    .hero {
        min-height: 86vh;
        padding-top: 110px;
    }

    .hero-overlay {
        background: linear-gradient(90deg, rgba(13, 24, 20, 0.9), rgba(13, 24, 20, 0.55));
    }

    .service-grid,
    .package-grid,
    .request-band,
    .request-form {
        grid-template-columns: 1fr;
    }

    .full {
        grid-column: auto;
    }

    h1 {
        font-size: 40px;
    }

    .hero-slider {
        min-height: 320px;
    }

    .admin-title {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-menu {
        position: static;
    }

    .admin-settings {
        grid-template-columns: 1fr;
    }

    .bulk-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .slide-item {
        grid-template-columns: 1fr;
    }

    .slide-thumb {
        width: 100%;
        height: 160px;
    }
}
