/* Poseify-ის დამატებები (style.css უცვლელია) */

/*
 * შრიფტები (fonts/FiraGO-LICENSE.txt, OFL):
 * - "FiraGO" — FiraGO 1.001-ის ქვესიმრავლე (ლათინური, პუნქტუაცია, ვალუტა, მხედრული) — ძირითადი ტექსტი ორივე ენაზე
 * - "FiraGO Mtavruli" — მხოლოდ ქართული ასოები, მხედრულის კოდებზე FiraGO-ს მთავრულის (.case) ფორმით —
 *   ტექსტი თავად არ იცვლება (SEO, კოპირება, ძებნა); unicode-range-ის გამო ლათინური "FiraGO"-ზე გადადის
 */
@font-face {
    font-family: "FiraGO";
    src: url(../fonts/firago-regular.woff2) format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "FiraGO";
    src: url(../fonts/firago-semibold.woff2) format("woff2");
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "FiraGO";
    src: url(../fonts/firago-bold.woff2) format("woff2");
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "FiraGO Mtavruli";
    src: url(../fonts/firago-mtavruli-regular.woff2) format("woff2");
    font-weight: 400;
    font-display: swap;
    unicode-range: U+10D0-10FF, U+1C90-1CBF;
}

@font-face {
    font-family: "FiraGO Mtavruli";
    src: url(../fonts/firago-mtavruli-semibold.woff2) format("woff2");
    font-weight: 600;
    font-display: swap;
    unicode-range: U+10D0-10FF, U+1C90-1CBF;
}

@font-face {
    font-family: "FiraGO Mtavruli";
    src: url(../fonts/firago-mtavruli-bold.woff2) format("woff2");
    font-weight: 700;
    font-display: swap;
    unicode-range: U+10D0-10FF, U+1C90-1CBF;
}

/*
 * ფერები — ერთ ადგილას. კონტრასტი WCAG AA-ს (4.5:1) აკმაყოფილებს:
 * --bs-primary       — ვარდისფერი ფონი (ღილაკი, ნიშანი): თეთრი ტექსტი მასზე 4.6:1 (#E41779-ზე 4.47 იყო)
 * --site-accent-text — ვარდისფერი ტექსტი მუქ ფონზე: #1A1A1A-ზე 4.8:1 (#E41779 — 3.9)
 * --site-text-muted  — მეორეხარისხოვანი ტექსტი (მინიშნებები, text-muted): ძირითადზე (#A0A0A0) მკრთალი, #1A1A1A-ზე 5.2:1
 */
:root {
    --bs-primary: #E01677;
    --site-accent-text: #F0408F;
    --site-text-muted: #8C8C8C;
}

body {
    font-family: "FiraGO", sans-serif;
}

/* bootstrap.min.css-ში ფერები პირდაპირაა ჩაწერილი — აქ ცვლადებზე გადაყვანა */
a,
.btn-link,
.link-primary,
.btn-outline-primary,
.btn-outline-primary:disabled,
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--site-accent-text);
}

.text-primary {
    color: var(--site-accent-text) !important;
}

.text-muted {
    color: var(--site-text-muted) !important;
}

.btn-primary,
.btn-primary:disabled,
.btn-outline-primary:hover,
.btn-outline-primary:active,
.btn-check:checked + .btn-outline-primary,
.form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-outline-primary {
    border-color: var(--bs-primary);
}

.bg-primary {
    background-color: var(--bs-primary) !important;
}

.border-primary {
    border-color: var(--bs-primary) !important;
}

/* სათაურები, მენიუ, ღილაკები, ციფრები: ka — მთავრული, en — UPPERCASE */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.navbar .navbar-nav .nav-link,
.navbar .dropdown-item,
.navbar-cta,
.footer-menu,
.btn,
.title .title-left,
.title .title-center,
.title .title-right,
.process-number,
.service-summary-value,
.pricing-price,
.stats-value {
    font-family: "FiraGO Mtavruli", "FiraGO", sans-serif;
    text-transform: uppercase;
}

/* სტატიის/რედაქტორის ტექსტში სათაურები ჩვეულებრივად — გრძელ ტექსტში დიდი ასოები კითხვას ართულებს */
.rich-text :is(h1, h2, h3, h4, h5, h6) {
    font-family: "FiraGO", sans-serif;
    text-transform: none;
}

/*
 * მენიუს dropdown: საიტის ბარათების ენით (მუქი, ვარდისფერი ზედა აქცენტი), აშკარა hover/active,
 * პირველი ელემენტი (მშობელი გვერდი) ქვეგვერდებისგან გამყოფით
 */
.navbar .nav-item .dropdown-menu { /* style.css-ის `border: none`-ზე ძლიერი */
    min-width: 260px;
    padding: .5rem;
    background: var(--bs-secondary);
    border: 1px solid rgba(255, 255, 255, .08);
    border-top: 3px solid var(--bs-primary);
    border-radius: 12px;
    box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, .45);
}

.navbar .dropdown-item {
    position: relative;
    padding: .75rem 1rem;
    border-radius: 8px;
    color: var(--bs-white);
    font-size: 15px;
    line-height: 1.3;
    white-space: normal;
    transition: color .2s, background-color .2s, padding-left .2s;
}

.navbar .dropdown-item:first-child {
    margin-bottom: .375rem;
}

.navbar .dropdown-item:first-child::after {
    content: "";
    position: absolute;
    right: 1rem;
    bottom: -.25rem;
    left: 1rem;
    height: 1px;
    background: rgba(255, 255, 255, .1);
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus-visible {
    padding-left: 1.25rem;
    background: rgba(228, 23, 121, .12); /* --bs-primary, 12% */
    color: var(--site-accent-text);
}

.navbar .dropdown-item.active,
.navbar .dropdown-item:active {
    background: transparent;
    color: var(--site-accent-text);
    box-shadow: inset 3px 0 0 var(--bs-primary);
}

/* ჩაკეცილი (მობილური) მენიუ: სია მენიუს შიგნით, მარცხენა ვარდისფერი ხაზით */
@media (max-width: 991.98px) {
    .navbar .nav-item .dropdown-menu {
        min-width: 0;
        margin: 0 0 .5rem .25rem !important;
        padding: .25rem 0 .25rem .75rem;
        background: transparent;
        border: 0;
        border-left: 2px solid var(--bs-primary);
        border-radius: 0;
        box-shadow: none;
    }

    .navbar .dropdown-item {
        padding: .5rem .75rem;
    }

    .navbar .dropdown-item:first-child::after {
        display: none;
    }

    /* სიას უკვე აქვს მარცხენა ხაზი — active-ს მხოლოდ ფერი */
    .navbar .dropdown-item.active,
    .navbar .dropdown-item:active {
        box-shadow: none;
    }
}

/* მობილურზე გახსნილი მენიუ გვერდის თავში გამჭვირვალე იყო (main.js მუქ ფონს მხოლოდ scroll-ზე ამატებს) */
@media (max-width: 991.98px) {
    .navbar:has(.navbar-collapse.show),
    .navbar:has(.navbar-collapse.collapsing) {
        background: var(--bs-dark);
    }
}

/* მენიუს ბმულები ორივე ენაზე 15px (style.css — 17px): header ka/en-ზე ერთნაირი სიმაღლისაა, მთავრულიც ეტევა */
.navbar .navbar-nav .nav-link {
    font-size: 15px;
}

/* 6 პუნქტი + CTA + ენები ერთ ხაზზე: პუნქტი არ იყოფა, დაშორება ეკრანის სიგანეს მიჰყვება */
@media (min-width: 992px) {
    .navbar .navbar-nav .nav-link {
        margin-right: clamp(10px, 1.6vw, 25px);
        white-space: nowrap;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    /* px-lg-5 (48px) ამ სიგანეზე ენების ღილაკებს ეკრანიდან აგდებდა */
    .navbar {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .navbar .navbar-nav .nav-link,
    html[lang="ka"] .navbar .navbar-nav .nav-link {
        margin-right: 6px;
        font-size: 13px;
    }

    .navbar .navbar-brand h2 {
        font-size: 1.5rem;
    }
}

/*
 * ბლოკებს შორის დაშორება: Poseify-ის ორმაგი py-5 (გარე + შიდა = 96px თითო მხარეს, ბლოკებს შორის 192px) →
 * desktop 64px (ბლოკებს შორის 128px), მობილური 48px (96px). bootstrap-ის py-5 !important-ითაა, ამიტომ აქაც.
 */
.container-fluid.py-5 > .container.py-5 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

@media (min-width: 768px) {
    .container-fluid.py-5 > .container.py-5 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
}

/* style.css-ის #header-carousel წესები — ბლოკის სლაიდერს უნიკალური id აქვს, ამიტომ კლასით */
@media (max-width: 768px) {
    .header-carousel .carousel-item {
        position: relative;
        min-height: 550px;
    }

    .header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* მობილურზე სლაიდერის/გვერდის სათაური ეკრანზე ეტევა (განსაკუთრებით ქართული მთავრული) */
@media (max-width: 991.98px) {
    .header-carousel .display-1 {
        font-size: calc(1.6rem + 3vw);
    }

    .header-carousel .title {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .page-header .display-4 {
        font-size: calc(1.5rem + 2vw);
    }
}

/* სტატიკური ჰერო (hero_carousel, mode = static): ფოტო ფონად, ტექსტი ნაკადში — სიმაღლე შიგთავსს მიჰყვება */
.hero-static {
    position: relative;
    display: flex;
    align-items: center;
    min-height: min(100vh, 760px);
    padding: 140px 0 80px;
    overflow: hidden;
}

/* !important — ქვემოთ img[width][height] { height: auto } უფრო სპეციფიკურია */
.hero-static .hero-static-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

.hero-static::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .7);
}

.hero-static-content {
    position: relative;
    z-index: 1;
    color: var(--bs-white);
}

@media (max-width: 991.98px) {
    .hero-static {
        min-height: 0;
        padding: 120px 0 64px;
    }
}

/*
 * სლაიდერი (hero_carousel, mode = carousel): სლაიდები .hero-static-ის დიზაინით.
 * ყველა სლაიდი ერთი სიმაღლისაა (მობილურზეც), რომ გადართვისას გვერდი არ „ხტოდეს“
 */
.hero-carousel .hero-static {
    min-height: min(100vh, 760px);
}

@media (max-width: 991.98px) {
    .hero-carousel .hero-static {
        min-height: min(100vh, 640px);
    }
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    z-index: 2;
    width: 8%;
}

.title h1,
.title h2,
.carousel-caption .display-1,
.hero-static .display-1 {
    overflow-wrap: anywhere;
}

/* გვერდზე ერთი H1 (hero / page_header) — სექციების სათაურები h2.h1-ია, style.css-ის h1-ის ხაზით */
.title .title-left h2,
.title .title-center h2,
.title .title-right h2 {
    border-bottom: 1px solid var(--bs-white);
}

/*
 * Scroll reveal (main.js) — WOW.js შიგთავსს visibility:hidden-ით მალავდა ეკრანზე გამოჩენამდე.
 * ახლა ბლოკი ყოველთვის ჩანს (ტექსტი იკითხება, crawler-ი და preview ხედავს), მხოლოდ მსუბუქად ამოდის.
 */
.reveal {
    opacity: .6;
    transform: translateY(16px);
    transition: opacity .6s ease-out, transform .6s ease-out;
}

.reveal.is-revealed {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .animated {
        animation: none !important;
    }

    .btn,
    .navbar,
    .navbar .navbar-nav .nav-link {
        transition: none;
    }
}

/* სერვისები — ბადის განლაგება (services ბლოკი, layout = grid) */
.service-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 2rem;
    background: var(--bs-secondary);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    transition: border-color .3s;
}

.service-card:hover {
    border-color: var(--bs-primary);
}

.service-card-img {
    flex: 0 0 88px;
    width: 88px;
    height: 88px;
    object-fit: cover;
}

.service-card-body {
    min-width: 0;
}

.service-card-link {
    font-weight: 600;
}

/* სერვისის სათაური-ბმული (blocks/services): სათაურის ფერი, hover/focus — ვარდისფერი */
.service-title-link {
    color: inherit;
    text-decoration: none;
    transition: color .3s;
}

.service-title-link:hover,
.service-title-link:focus-visible {
    color: var(--site-accent-text);
}

@media (max-width: 575.98px) {
    .service-card {
        flex-direction: column;
        padding: 1.5rem;
    }
}

/* პროცესი (process ბლოკი): ეტაპები რიგით — ფართო ეკრანზე ერთ ხაზად, ვიწროზე სვეტად */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 2rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.process-step {
    position: relative;
    padding-top: 1.25rem;
    border-top: 2px solid rgba(255, 255, 255, .12);
}

.process-step::before {
    content: "";
    position: absolute;
    top: -2px;
    left: 0;
    width: 48px;
    height: 2px;
    background: var(--bs-primary);
}

.process-number {
    display: block;
    margin-bottom: .5rem;
    color: var(--site-accent-text);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

/* სერვისის გვერდი (front/collections/service) */
.service-summary {
    position: sticky;
    top: 100px;
    padding: 2rem;
    background: var(--bs-secondary);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
}

.service-summary-label {
    margin-bottom: .25rem;
    color: var(--site-text-muted);
    font-size: .875rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.service-summary-value {
    margin-bottom: 1.25rem;
    color: var(--bs-white);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.service-deliverables {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ხშირი კითხვები (partials/faq) */
.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.faq-item summary {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0;
    color: var(--bs-white);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    flex: 0 0 auto;
    color: var(--site-accent-text);
    font-size: 1.5rem;
    line-height: 1;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item summary:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 4px;
}

.faq-item p {
    padding-bottom: 1.25rem;
}

/* ფასების პაკეტები (pricing ბლოკი) */
.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2.5rem 2rem 2rem;
    background: var(--bs-secondary);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
}

.bg-secondary .pricing-card {
    background: var(--bs-dark);
}

.pricing-card.is-featured {
    border: 2px solid var(--bs-primary);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 2rem;
    padding: 4px 14px;
    border-radius: 50px;
    background: var(--bs-primary);
    color: var(--bs-white);
    font-size: .8rem;
    font-weight: 600;
}

.pricing-price {
    color: var(--site-accent-text);
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.1;
}

.pricing-note {
    color: var(--site-text-muted);
    font-size: .9rem;
}

.pricing-features {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
}

/* ბლოგი: სტატიის ბარათი (blog_list) და სტატიის გვერდი (collections/post) */
.post-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bs-secondary);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    transition: border-color .3s;
}

.bg-secondary .post-card {
    background: var(--bs-dark);
}

.post-card:hover {
    border-color: var(--bs-primary);
}

.post-card-img img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.post-card-body {
    padding: 1.5rem;
}

.post-card-title {
    color: var(--bs-white);
}

.post-card-title:hover {
    color: var(--site-accent-text);
}

.post-meta {
    color: var(--site-text-muted);
    font-size: .875rem;
}

.post-body {
    font-size: 1.125rem;
    line-height: 1.8;
}

.post-body h2,
.post-body h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.post-cta {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--bs-secondary);
    border-left: 3px solid var(--bs-primary);
    border-radius: 8px;
}

/*
 * ნდობის ზოლი (stats ბლოკი): ერთი ბარათი, როგორც ფასების/სერვისების ბარათები.
 * გამყოფი ხაზები — grid-ის 1px gap-ში ჩანს ბარათის ფონი (ორივე მიმართულებით, ზედმეტი border-ების გარეშე)
 */
.stats-panel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    overflow: hidden;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .08);
    border-top: 3px solid var(--bs-primary);
    border-radius: 12px;
}

.stats-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.75rem 1rem;
    background: var(--bs-secondary);
    text-align: center;
}

.stats.bg-secondary .stats-item {
    background: var(--bs-dark);
}

/* მობილურზე კენტი რაოდენობისას ბოლო ელემენტი მთელ რიგზე — ცარიელი უჯრა არ ჩანს */
.stats-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

@media (min-width: 992px) {
    .stats-panel {
        grid-template-columns: repeat(var(--stats-cols, 4), 1fr);
    }

    .stats-item:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .stats-item {
        padding: 2.25rem 1.5rem;
    }
}

.stats-value {
    font-size: calc(1.8rem + 1.2vw);
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.stats-label {
    margin-top: .6rem;
    max-width: 16rem;
    color: var(--bs-white);
    font-size: 1.05rem;
    line-height: 1.4;
    opacity: .75;
}

@media (min-width: 1200px) {
    .stats-value {
        font-size: 3rem;
    }
}

/*
 * მენიუს CTA: ფიქსირებული სიმაღლე, ორივე ენაზე ერთნაირი ზომა
 * (შრიფტის ზომაზე მიბმისას en/ka-ზე სხვადასხვა სიმაღლის გამოდიოდა), ცენტრი — მენიუს ტექსტის ხაზზე
 */
.navbar-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 1.25rem;
    font-size: 15px;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
}

/* ენის გადამრთველი: ერთი „აბი“ (segmented control) CTA-ს სიმაღლით; აქტიური — ვარდისფერი, დანარჩენი მშვიდი */
.lang-switch {
    display: inline-flex;
    height: 36px;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50px;
}

.lang-switch-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    padding: 0 .65rem;
    border-radius: 50px;
    color: rgba(255, 255, 255, .7);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    transition: color .2s, background-color .2s;
}

.lang-switch-item:hover {
    background: rgba(255, 255, 255, .08);
    color: var(--bs-white);
}

.lang-switch-item.is-active {
    background: var(--bs-primary);
    color: var(--bs-white);
}

.lang-switch-item:focus-visible {
    outline: 2px solid var(--bs-white);
    outline-offset: 1px;
}

/* 992–1199px: მენიუს ბმულებივით 13px (ზემოთ, navbar-ის წესებთან) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar-cta {
        padding: 0 1rem;
        font-size: 13px;
    }
}

/* მთავრული (ka) და UPPERCASE (en) ფართოა — სლაიდერის/ჰეროს სათაური დიდ ეკრანზეც მცირდება, რომ navbar-ს არ შეეხოს */
@media (min-width: 992px) {
    .header-carousel .display-1 {
        font-size: calc(1.5rem + 2.6vw);
    }
}

.site-logo {
    max-height: 56px;
    width: auto;
}

/* picture() — <picture> განლაგებაში არ მონაწილეობს, სტილი <img>-ზეა */
picture {
    display: contents;
}

/* width/height ატრიბუტები მხოლოდ პროპორციისთვისაა (CLS) — სიმაღლე სიგანეს მიჰყვება */
img[width][height] {
    height: auto;
}

/*
 * თემის ფონები (style.css-ის carousel-1.jpg / footer-bg.png-ის ნაცვლად). სურათის შეცვლისას — ახალი ფაილის სახელი:
 * ვერსიის გარეშე URL ბრაუზერში დიდხანს ინახება (public/.htaccess).
 */
.page-header {
    background-image: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../img/page-header.jpg);
    background-image: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), image-set(url(../img/page-header.webp) type("image/webp"), url(../img/page-header.jpg) type("image/jpeg"));
}

@media (max-width: 1024px) {
    .page-header {
        background-image: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../img/page-header-medium.jpg);
        background-image: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), image-set(url(../img/page-header-medium.webp) type("image/webp"), url(../img/page-header-medium.jpg) type("image/jpeg"));
    }
}

.footer {
    background-image: url(../img/footer-studio.png);
}

/* page_header ბლოკის საკუთარი ფონი */
.page-header[data-custom-bg] {
    background-size: cover;
    background-position: top center;
}

/* ტექსტური (WYSIWYG) შიგთავსი */
.rich-text a {
    color: var(--site-accent-text);
}

.rich-text ul,
.rich-text ol {
    padding-left: 1.25rem;
}

.rich-text blockquote {
    border-left: 3px solid var(--bs-primary);
    padding-left: 1rem;
    font-style: italic;
}

.rich-text > :last-child {
    margin-bottom: 0;
}

/* „ჩვენ შესახებ“ ბლოკი (blocks/about): ორივე სვეტს ერთნაირი padding, სია და ღილაკები კიდეებს არ ეკვრის */
.about-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

@media (min-width: 768px) {
    .about-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

.about-text {
    color: var(--bs-light);
    font-size: 1.15rem;
    line-height: 1.7;
}

.about-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.about-list li {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .9rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    color: var(--bs-white);
}

.about-list-icon {
    display: inline-flex;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(228, 23, 121, .15); /* --bs-primary, 15% */
    color: var(--site-accent-text);
    font-size: .8rem;
}

.about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 575.98px) {
    .about-actions .btn {
        width: 100%;
    }
}

/* სურათი: სვეტის მთელ სიგანეზე, მომრგვალებული, ბარათების მსგავსი თხელი ჩარჩოთი (გადაწეული დეკორი სურათს ადგილიდან ამოვარდნილად აჩენდა) */
.about-media picture {
    display: block;
}

.about-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, .35);
}

@media (min-width: 992px) {
    .about-image {
        aspect-ratio: 4 / 5;
    }
}

/* ფორმის honeypot ველი — ეკრანზე არ ჩანს (display:none-ს ზოგი ბოტი ცნობს) */
.form-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* თანხმობის ტექსტი ფორმის ქვეშ */
.form-consent {
    color: var(--site-text-muted);
    line-height: 1.5;
}

.form-consent a {
    color: var(--site-accent-text);
    text-decoration: underline;
}

.form-floating .invalid-feedback {
    text-align: left;
}

/* ველები bg-secondary-ზეა (form-field) — იმავე ფერის სექციაში (მაგ. განაცხადის ფორმა) არ ჩანდა */
.bg-secondary .form-control.bg-secondary {
    background-color: var(--bs-dark) !important;
}

/* ფორმის მინიშნებები და არჩევანი ღილაკებად (partials/form-choice) */
.form-hint {
    color: var(--site-text-muted);
    font-size: .875rem;
}

.form-choice {
    text-align: left;
}

.form-choice-legend {
    float: none;
    width: auto;
    margin-bottom: .5rem;
    font-size: 1rem;
}

.form-choice .btn {
    font-weight: 400;
}

/* footer-ის კონტაქტები */
.footer-contacts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-contacts a {
    color: var(--bs-light);
}

.footer-contacts a:hover {
    color: var(--site-accent-text);
}

/* მობილურის ქვედა ზოლი (layout): დარეკვა + CTA; back-to-top მხოლოდ დიდ ეკრანზე */
@media (max-width: 991.98px) {
    .mobile-cta {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 98;
        display: flex;
        gap: 8px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
        background: rgba(13, 13, 13, .95);
        border-top: 1px solid rgba(255, 255, 255, .1);
    }

    .mobile-cta .btn {
        flex: 1 1 0;
        min-width: 0;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 6px 12px;
        font-size: .9rem;
        line-height: 1.2;
        text-align: center;
    }

    /* „დარეკვა“ მოკლეა — CTA-ს მეტი ადგილი რჩება */
    .mobile-cta .btn-outline-primary {
        flex: 0 0 auto;
    }

    body:has(.mobile-cta) {
        padding-bottom: 72px;
    }

    .back-to-top {
        display: none !important;
    }

    /* footer-ის ბმულები — შეხების არე მინ. 44px */
    .footer-menu a,
    .footer-contacts a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
}

/* footer-ის მენიუ */
.footer-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 28px;
    text-transform: uppercase;
}

.footer-menu a {
    color: var(--bs-light);
}

.footer-menu a:hover {
    color: var(--site-accent-text);
}

/* პორტფოლიოს ბარათი — team-item-ის სტილით, სურათი თანაბარი პროპორციით */
.portfolio-card .team-body img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .5s;
}

.portfolio-card:hover .team-body img {
    transform: scale(1.05);
}

/* გუნდის ბარათზე ბმული მთლიან სახელზე */
.team-item .team-name {
    color: var(--bs-white);
}

/* ადმინისთვის მონახაზის წინასწარი ხედი */
.preview-bar {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 100;
    padding: 8px 16px;
    border-radius: 50px;
    background: var(--bs-primary);
    color: var(--bs-white);
    font-size: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .4);
}

/* საიტის შეკვეთის ფორმა (blocks/order_form): დიზაინის ბარათები და preview მოდალი */
.order-form .form-select {
    color: var(--bs-white);
}

.order-designs {
    text-align: left;
}

.design-card {
    position: relative;
    height: 100%;
}

.design-card-select {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    text-align: left;
    background: var(--bs-dark);
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color .2s;
}

.design-card-select:hover,
.design-card-select:focus-visible {
    border-color: rgba(228, 23, 121, .5); /* --bs-primary, 50% */
}

.btn-check:checked + .design-card-select {
    border-color: var(--bs-primary);
}

.design-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bs-secondary);
    color: var(--site-text-muted);
    font-size: 2.5rem;
}

/* absolute — სურათი ბარათის 4:3 არეს მთლიანად ავსებს (თემის img { height: auto } არ ჭრის) */
.design-card-image picture,
.design-card-image img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: top;
}

.design-card-title {
    display: block;
    padding: .75rem 1rem;
    color: var(--bs-white);
}

.design-card-check {
    position: absolute;
    top: .75rem;
    right: .75rem;
    display: none;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bs-primary);
    color: var(--bs-white);
}

.btn-check:checked + .design-card-select .design-card-check {
    display: flex;
}

.design-card-image {
    position: relative;
}

/* „სანახავად დააკლიკეთ“: hover-ზე — მთელ სურათზე; სენსორულ ეკრანზე — ყოველთვის, ქვედა ზოლად */
.design-card-hint {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .6);
    color: var(--bs-white);
    font-size: 1rem;
    opacity: 0;
    transition: opacity .2s;
}

.design-card-select:hover .design-card-hint,
.design-card-select:focus-visible .design-card-hint {
    opacity: 1;
}

@media (hover: none) {
    .design-card-hint {
        inset: auto 0 0 0;
        padding: .4rem;
        font-size: .875rem;
        opacity: 1;
    }
}

.order-extra-check {
    display: none;
}

.btn-check:checked + label .order-extra-check {
    display: inline-block;
}

.design-preview .modal-body {
    background: var(--bs-secondary);
    overflow: auto;
}

.design-preview-frame {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
    transition: width .3s;
}