:root {
    --wine: #641827;
    --wine-bright: #8f2233;
    --ink: #262629;
    --muted: #6e6b6a;
    --cream: #f7f5f0;
    --line: #e9e5df
}

.gallery-link {
    position: relative
}

.gallery-zoom {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: white;
    background: #38151ed9;
    backdrop-filter: blur(8px);
    transition: transform .2s
}

.gallery-link:hover .gallery-zoom {
    transform: scale(1.1)
}

.gallery-dialog {
    border: 0;
    padding: 24px;
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    background: transparent;
    color: #fff;
    overflow: auto
}

.gallery-dialog[open] {
    display: grid;
    place-items: center
}

.gallery-dialog::backdrop {
    background: rgba(17, 12, 16, .93);
    backdrop-filter: blur(12px)
}

.lightbox-panel {
    width: min(1120px, 100%);
    background: #201b20;
    border: 1px solid #ffffff20;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 100px #0006
}

.lightbox-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px
}

.lightbox-brand {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em
}

.lightbox-brand span {
    color: #baaeb7;
    font-weight: 400
}

.lightbox-control {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: 1px solid #ffffff35;
    border-radius: 50%;
    background: #282029e6;
    color: #fff;
    cursor: pointer
}

.lightbox-control[hidden] {
    display: none
}

.lightbox-control:hover {
    background: var(--wine)
}

.lightbox-stage {
    position: relative;
    display: grid;
    place-items: center;
    background: #120f12;
    min-height: 200px;
    height: min(65dvh, 740px)
}

.lightbox-stage img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    transition: opacity .2s
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%)
}

.lightbox-prev {
    left: 16px
}

.lightbox-next {
    right: 16px
}

.lightbox-status {
    position: absolute;
    max-width: 70%;
    text-align: center;
    font-size: 14px;
    color: #dbd0d7;
    pointer-events: none
}

.lightbox-caption {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 24px
}

.lightbox-caption h2 {
    font-size: 19px;
    font-weight: 700;
    overflow-wrap: anywhere
}

.lightbox-caption p {
    font-size: 13px;
    line-height: 1.7;
    color: #c7bac4;
    margin-top: 6px;
    overflow-wrap: anywhere
}

.lightbox-caption [data-gallery-counter] {
    white-space: nowrap;
    font-size: 12px;
    color: #c7bac4;
    padding-top: 6px
}

@media(max-width:600px) {
    .gallery-dialog {
        padding: 10px
    }

    .lightbox-toolbar {
        padding: 10px 14px
    }

    .lightbox-brand {
        font-size: 9px
    }

    .lightbox-stage {
        height: 52dvh
    }

    .lightbox-caption {
        padding: 18px
    }

    .lightbox-caption h2 {
        font-size: 16px
    }

    .lightbox-prev {
        left: 8px
    }

    .lightbox-next {
        right: 8px
    }
}

body {
    margin: 0;
    background: #fff;
    color: var(--ink);
    font-family: Inter, sans-serif;
    -webkit-font-smoothing: antialiased
}

a {
    text-decoration: none;
    color: inherit
}

button,
input,
textarea {
    font: inherit
}

button,
a,
input,
textarea {
    -webkit-tap-highlight-color: transparent
}

*:focus-visible {
    outline: 3px solid #ba8043;
    outline-offset: 5px
}

img {
    max-width: 100%
}

.site-container {
    width: min(1200px, calc(100% - 64px));
    margin-inline: auto
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 12px;
    z-index: 200;
    background: white;
    padding: 12px;
    transform: translateY(-160%)
}

.skip-link:focus {
    transform: translateY(0)
}

.site-topbar {
    background: var(--wine);
    color: #fff;
    font-size: 11px;
    letter-spacing: .02em
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 38px;
    gap: 20px
}

.topbar-inner>div {
    display: flex;
    gap: 24px
}

.topbar-inner i {
    margin-right: 6px
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px)
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-height: 100px
}

.site-brand {
    flex-shrink: 0
}

.site-brand img {
    width: 105px;
    height: 75px;
    object-fit: contain
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px
}

.site-nav-link {
    font-size: 12px;
    font-weight: 600;
    padding: 39px 0 35px;
    border-bottom: 3px solid transparent;
    white-space: nowrap
}

.desktop-nav {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #d6bcb0 transparent
}

.mobile-menu.open {
    max-height: min(70dvh, 650px);
    overflow-y: auto
}

.site-nav-link:hover,
.site-nav-link.is-active {
    color: var(--wine);
    border-color: var(--wine)
}

.parent-link {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #641827;
    border: 1px solid var(--line);
    color: white;
    border-radius: 8px;
    padding: 13px 15px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 6px 11px;
    font-size: 25px;
    color: var(--wine)
}

.mobile-nav-inner {
    display: grid;
    padding-block: 16px;
    gap: 4px
}

.mobile-nav-inner a {
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 6px
}

.mobile-nav-inner a[aria-current] {
    background: var(--cream);
    color: var(--wine);
    font-weight: 700
}

.eyebrow {
    display: block;
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--wine-bright);
    margin-bottom: 18px
}

.page-heading {
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    position: relative;
    overflow: hidden;
    padding: 28px 0 58px
}

.breadcrumbs {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 42px
}

.breadcrumbs a:hover {
    color: var(--wine)
}

.breadcrumbs span:last-child {
    color: var(--wine)
}

.heading-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px
}

.heading-row h1 {
    font-size: clamp(34px, 4vw, 56px);
    letter-spacing: -.055em;
    line-height: 1.15;
    font-weight: 800;
    margin: 0 0 18px
}

.heading-row p {
    max-width: 570px;
    line-height: 1.8;
    color: var(--muted);
    font-size: 15px;
    margin: 0
}

.heading-emblem {
    height: 138px;
    width: 138px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border: 1px solid #d9c7bc;
    border-radius: 50%;
    font-size: 52px;
    color: var(--wine);
    box-shadow: 0 0 0 22px #eee8df, 0 0 0 23px #e6ddd2;
    margin-right: 30px;
    transform: rotate(-10deg)
}

.heading-emblem img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    transform: rotate(10deg)
}

.section-space {
    padding-block: 72px
}

.section-kicker {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px
}

.section-kicker h2,
.story-copy h2 {
    font: 800 clamp(26px, 3vw, 38px)/1.25 Manrope, sans-serif;
    letter-spacing: -.035em;
    margin: 0 0 14px
}

.section-kicker p,
.story-copy p {
    color: var(--muted);
    line-height: 1.85;
    font-size: 14px
}

.section-kicker .count-label {
    white-space: nowrap;
    font-size: 12px;
    color: var(--muted)
}

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

.program-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
}

.content-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px #35191e0a
}

.card-body {
    padding: 30px
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px
}

.icon-tile {
    display: inline-grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: #f5ecee;
    color: var(--wine);
    font-size: 25px
}

.card-number {
    color: #bdb3ad;
    font: 500 13px Manrope, sans-serif
}

.content-card h2,
.content-card h3 {
    font: 800 21px/1.4 Manrope, sans-serif;
    margin: 0 0 12px;
    letter-spacing: -.03em
}

.content-card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.85;
    margin-bottom: 22px
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--wine)
}

.text-link:hover {
    gap: 22px
}

.card-meta {
    display: block;
    font-size: 11px;
    letter-spacing: .04em;
    color: var(--wine-bright);
    margin-bottom: 12px
}

.card-image {
    width: 100%;
    aspect-ratio: 1.6;
    object-fit: cover;
    background: var(--cream)
}

.site-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    min-height: 48px;
    background: var(--wine);
    color: #fff;
    border: 1px solid var(--wine);
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: background .2s
}

.site-button:hover {
    background: #84273b;
    color: white
}

.button-light {
    background: white;
    border-color: white;
    color: var(--wine)
}

.button-light:hover {
    background: #eee5df;
    color: var(--wine)
}

.site-empty {
    grid-column: 1/-1;
    text-align: center;
    border: 1px dashed #d8cdc4;
    border-radius: 16px;
    background: #fcfbf8;
    padding: 58px 24px
}

.site-empty h2 {
    font-size: 23px;
    font-weight: 700;
    margin: 24px 0 12px
}

.site-empty p {
    color: var(--muted);
    max-width: 450px;
    margin: 0 auto 24px;
    font-size: 14px;
    line-height: 1.8
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center
}

.story-image {
    position: relative
}

.story-image img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    border-radius: 14px
}

.image-caption {
    position: absolute;
    left: 24px;
    bottom: 24px;
    background: white;
    padding: 18px 24px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--wine);
    font-weight: 700
}

.story-copy p {
    white-space: pre-line
}

.story-copy .site-button {
    margin-top: 24px
}

.values-strip {
    margin-top: 64px;
    border-top: 1px solid var(--line);
    padding-top: 36px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px
}

.values-strip h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 16px 0 10px
}

.values-strip p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.8
}

.gallery-card {
    margin: 0
}

.gallery-card img {
    aspect-ratio: 1.2
}

.gallery-card figcaption {
    padding: 22px
}

.gallery-card h2 {
    font-size: 18px
}

.gallery-card p {
    margin-bottom: 0
}

.gallery-link {
    display: block;
    overflow: hidden
}

.gallery-link img {
    transition: transform .3s
}

.gallery-link:hover img {
    transform: scale(1.035)
}

.article-wrap {
    max-width: 800px;
    margin: auto
}

.article-wrap h1 {
    font: 800 clamp(30px, 4vw, 48px)/1.2 Manrope, sans-serif;
    letter-spacing: -.04em;
    margin: 24px 0
}

.article-date {
    font-size: 12px;
    color: var(--muted);
    margin: 20px 0 30px
}

.article-cover {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 36px
}

.article-copy {
    white-space: pre-line;
    overflow-wrap: anywhere;
    font-size: 16px;
    line-height: 1.95;
    color: #514d4b
}

.article-intro {
    font-size: 19px;
    line-height: 1.8;
    color: var(--muted);
    margin: 24px 0
}

.news-placeholder {
    aspect-ratio: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: var(--cream);
    color: var(--wine);
    font-size: 11px;
    letter-spacing: .2em
}

.news-placeholder i {
    font-size: 45px
}

.pagination-wrap {
    margin-top: 36px
}

.content-card h2,
.content-card p {
    overflow-wrap: anywhere
}

.contact-grid {
    display: grid;
    grid-template-columns: .85fr 1.3fr;
    gap: 64px
}

.contact-intro h2 {
    font: 800 32px/1.25 Manrope, sans-serif;
    letter-spacing: -.04em;
    margin-bottom: 18px
}

.contact-intro>p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.9
}

.contact-details {
    display: grid;
    gap: 25px;
    margin-top: 36px
}

.contact-detail {
    display: flex;
    gap: 18px;
    align-items: center
}

.contact-detail small {
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 5px
}

.contact-detail a,
.contact-detail strong {
    font-size: 14px;
    font-weight: 600
}

.contact-note {
    background: var(--cream);
    padding: 22px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.8;
    margin-top: 36px
}

.contact-form {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 12px 40px #3d252505
}

.contact-form h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px
}

.form-description {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 28px
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px
}

.form-field {
    display: grid;
    gap: 8px
}

.form-wide {
    grid-column: 1/-1
}

.form-field label {
    font-size: 12px;
    font-weight: 600
}

.form-field input,
.form-field textarea {
    width: 100%;
    background: #fcfbf9;
    border: 1px solid #e3ded8;
    border-radius: 7px;
    padding: 13px 14px;
    font-size: 14px;
    min-width: 0
}

.form-field textarea {
    resize: vertical;
    min-height: 140px
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--wine)
}

.form-field [aria-invalid=true] {
    border-color: #b32626
}

.field-error {
    font-size: 12px;
    color: #a51e32
}

.form-submit {
    margin-top: 24px
}

.success-message {
    border: 1px solid #b8d5c4;
    background: #eff9f2;
    color: #245c3b;
    padding: 18px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px
}

.site-footer {
    background: #641827;
    color: #f7eff0
}

.footer-invitation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 56px 0;
    border-bottom: 1px solid #ffffff24
}

.footer-invitation .eyebrow {
    color: #d6bcb0
}

.footer-invitation h2 {
    font: 700 clamp(25px, 3vw, 36px)/1.25 Manrope, sans-serif;
    letter-spacing: -.03em;
    margin-bottom: 12px
}

.footer-invitation p {
    font-size: 13px;
    color: #c9b6ba
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
    gap: 40px;
    padding: 52px 0
}

.footer-brand img {
    width: 120px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 22px
}

.footer-brand p {
    font-size: 12px;
    line-height: 1.9;
    color: #c9b6ba
}

.footer-grid h3 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 22px
}

.footer-grid nav a,
.footer-contact a,
.footer-contact p {
    display: block;
    font-size: 12px;
    color: #c9b6ba;
    margin-bottom: 14px;
    overflow-wrap: anywhere
}

.footer-grid a:hover {
    color: #fff
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid #ffffff24;
    padding: 22px 0;
    font-size: 10px;
    color: #bfa5ac
}

.back-to-top {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--wine);
    color: #fff;
    border: 1px solid #fff5;
    z-index: 40
}

#main-content {
    min-height: 50vh
}

#main-content>.relative.overflow-hidden {
    background: var(--cream);
    padding-block: 36px
}

#main-content>.relative.overflow-hidden img {
    border-radius: 14px
}

#main-content>.relative.overflow-hidden h1 {
    letter-spacing: -.045em
}

#main-content #haqqimizda {
    padding-top: 80px
}

@media(min-width:1101px) {
    .site-header>.mobile-menu {
        display: none
    }
}

@media(max-width:1100px) {
    .desktop-nav {
        display: none
    }

    .menu-toggle {
        display: block
    }

    .parent-link {
        margin-left: auto
    }

    .header-inner {
        min-height: 86px
    }

    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .story-grid,
    .contact-grid {
        gap: 36px
    }
}

@media(max-width:700px) {
    .site-container {
        width: calc(100% - 36px)
    }

    .topbar-inner>span,
    .topbar-inner>div>a:first-child {
        display: none
    }

    .topbar-inner {
        justify-content: center;
        min-height: 32px
    }

    .header-inner {
        min-height: 76px;
        gap: 12px
    }

    .site-brand img {
        height: 56px;
        width: 85px
    }

    .parent-link {
        font-size: 10px;
        padding: 10px
    }

    .heading-emblem {
        display: none
    }

    .page-heading {
        padding: 22px 0 38px
    }

    .breadcrumbs {
        margin-bottom: 30px
    }

    .heading-row h1 {
        font-size: 36px
    }

    .heading-row p {
        font-size: 13px
    }

    .section-space {
        padding-block: 42px
    }

    .section-kicker {
        align-items: start;
        flex-direction: column;
        gap: 8px
    }

    .card-grid,
    .program-grid,
    .story-grid,
    .contact-grid {
        grid-template-columns: 1fr
    }

    .card-body {
        padding: 25px
    }

    .story-image img {
        height: 320px
    }

    .values-strip {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 36px
    }

    .contact-form {
        padding: 24px
    }

    .form-grid {
        grid-template-columns: 1fr
    }

    .footer-invitation {
        align-items: start;
        flex-direction: column;
        padding: 40px 0
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
        padding: 36px 0
    }

    .footer-brand,
    .footer-contact {
        grid-column: 1/-1
    }

    .footer-brand img {
        height: 65px;
        margin-bottom: 12px
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px
    }

    .contact-grid {
        gap: 32px
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important
    }
}
