/* --- Welcome Box Styling --- */
.welcome-box {
    background: rgba(251, 249, 246, 0.95);
    border: 1.5px solid #e8e4de;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(163, 180, 154, 0.07);
    padding: 1.5rem 1.2rem 1.2rem 1.2rem;
    margin: 0 auto 1.5rem auto;
    max-width: 600px;
    text-align: center;
    transition: box-shadow 0.2s;
    position: relative;
}
.welcome-box:hover {
    box-shadow: 0 8px 32px rgba(163, 180, 154, 0.13);
}
.welcome-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--accent-2, #c89b83);
    margin-bottom: 0.7rem;
    letter-spacing: 0.01em;
}
.welcome-text {
    font-size: 1.35rem;
    color: var(--text);
    line-height: 1.7;
}
/* ==========================================================================
   Base Settings & Variables
   ========================================================================== */
:root {
    --bg: #fce4c3;
    --card: #fbf9f6;
    --text: #222222;
    --muted: #6b6b64;
    --accent: #a3b49a;
    --accent-2: #c89b83;
    --max-width: 1100px;
    --radius: 12px;
    --gap: 1rem;
    --container-padding: 1rem;
}

html {
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    font-size: 16px;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    /* Повертаємо базові стилі, які випадково затерлися */
    margin: 0;
    color: var(--text);
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;

    /* Об'єднуємо налаштування безшовного SVG-фону */
    background-image: url('../assets/BG.svg');
    background-position: top left;
    background-repeat: repeat-y; /* Залишаємо цей варіант, він чистіший і коротший */
    background-size: 100% auto;
}
h1 {
    font-size: clamp(1.4rem, 4vw, 2.4rem);
    margin: 0 0 .5rem;
}

h2 {
    font-size: clamp(1.1rem, 3.2vw, 1.6rem);
}

h3 {
    font-size: 1rem;
    margin: 0 0 .5rem;
}

p {
    margin: 0 0 1rem;
}

.container {
    max-width: var(--max-width);
    padding: 0 var(--container-padding);
    margin: 0 auto;
}

/* ==========================================================================
   Header & Core Navigation
   ========================================================================== */
:root {
    --header-transition-time: 0.2s;
}

.site-header {
    position: sticky;
    top: 0;
    background: linear-gradient(to bottom, rgb(255, 235, 138), #c89b83);
    z-index: 100;
    min-height: 70px;
    transition: transform var(--header-transition-time) cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

.site-header.hide {
    transform: translate3d(0, -200%, 0);
    pointer-events: none;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0.75rem 0;
}

.nav {
    display: flex;
    align-items: center;
    width: 100%;
}

.logo-img {
    display: block;
    position: absolute;
    left: 50%;
    top: -30%;
    transform: translateX(-50%);
    z-index: 105;
    width: clamp(130px, 14vw, 200px);
    height: auto;
    transition: width 0.3s ease;
}

/* ==========================================================================
   Mobile Navigation (Up to 699px)
   ========================================================================== */
.nav-toggle {
    position: fixed;
    left: 10px;
    top: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    border: 2px solid var(--accent-2);
    padding: 0.55rem;
    border-radius: 12px;
    cursor: pointer;
    width: 46px;
    height: 46px;
    z-index: 102;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    transition: left 0.3s ease, top 0.3s ease, width 0.3s ease, height 0.3s ease, padding 0.3s ease;
}

.nav-toggle span {
    display: block;
    height: 3px;
    background-color: var(--text);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
    background-color: #000000;
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-11px);
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
    background-color: #000000;
}

.lang {
    position: fixed;
    right: 10px;
    top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid var(--accent-2);
    border-radius: 12px;
    width: 46px;
    height: 46px;
    z-index: 102;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    transition: right 0.3s ease, top 0.3s ease, width 0.3s ease, height 0.3s ease, padding 0.3s ease;
    flex-shrink: 0;
}

.lang-link {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1;
}

.lang-link:not(.active) {
    display: flex;
    background: transparent;
    color: var(--text);
}

.nav-list {
    position: fixed;
    left: 0;
    top: 0;
    width: 50%;
    min-width: 250px;
    height: 100vh;
    background: #FBF0D9;
    padding: 6.5rem 1rem 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    z-index: 90;
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
    will-change: transform, opacity;
}

.nav-group {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.nav-list a {
    color: #000000;
    font-size: 1.2rem;
    width: 100%;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.18s ease 0.05s, transform 0.18s ease 0.05s;
    text-decoration: none;
    font-weight: 600;
}

.nav-list.show {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.nav-list.show a {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================================
   Tablet Mode (700px to 991px)
   ========================================================================== */
@media (min-width: 700px) {
    .site-header {
        min-height: 120px;
    }

    .logo-img {
        width: clamp(170px, 22vw, 220px);
    }

    .header-inner {
        padding: 2.2rem 0;
    }

    .nav-toggle {
        left: 20px;
        top: 30px;
        width: 60px;
        height: 60px;
        padding: 1rem;
    }

    .nav-toggle span {
        height: 4px;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: translateY(10px) rotate(45deg) scaleX(1.2);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg) scaleX(1.2);
    }

    .lang {
        position: fixed;
        right: 20px;
        top: 30px;
        width: auto;
        height: 60px;
        padding: 4px;
        gap: 4px;
        z-index: 102;
        transform: scale(0.7);
    }

    .lang-link {
        display: flex;
        font-size: 1.2rem;
        padding: 0 1.1rem;
        height: 100%;
        border-radius: 8px;
    }

    .lang-link.active {
        background: var(--accent);
        color: #fff;
    }
}

/* ==========================================================================
   Desktop Mode (From 992px)
   ========================================================================== */
@media (min-width: 992px) {
    .nav-toggle {
        display: none !important;
    }

    .header-inner {
        padding-bottom: 0px;
    }

    .lang {
        position: fixed !important;
        right: 20px !important;
        top: 30px !important;
        z-index: 110;
        transform: scale(0.7) !important;
        transform-origin: right top;
    }

    .logo-img {
        transform: translateX(-50%) scale(1.15);
        top: -15%;
    }

    .nav-list {
        position: static;
        width: 100%;
        height: auto;
        background: transparent;
        backdrop-filter: none;
        box-shadow: none;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        padding-top: 45px;
    }

    .nav-group {
        display: flex;
        flex-direction: row;
        width: 45%;
        gap: clamp(0.5rem, 3.5vw, 4.5rem); 
    }

    .nav-left {
        justify-content: flex-end;
        padding-right: clamp(100px, 13vw, 150px);
        padding-left: 0;
    }

    .nav-right {
        justify-content: flex-start;
        padding-left: clamp(100px, 13vw, 150px);
        padding-right: 0;
    }

    .nav-list a {
        opacity: 1;
        transform: none;
        font-size: clamp(0.95rem, 1.2vw, 1.22rem);
        color: var(--text);
        letter-spacing: 0.07em;
        text-transform: uppercase;
        white-space: nowrap;
        padding: clamp(0.6rem, 1vw, 1rem) clamp(1.2rem, 2vw, 2.2rem);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.85);
        box-shadow: 0 4px 18px rgba(163, 180, 154, 0.10);
        border: 2.5px solid transparent;
        margin: 0 clamp(0.2rem, 0.6vw, 0.5em);
        transition: color 0.22s cubic-bezier(.4,0,.2,1), background 0.22s cubic-bezier(.4,0,.2,1), border-color 0.22s cubic-bezier(.4,0,.2,1), box-shadow 0.22s cubic-bezier(.4,0,.2,1);
        position: relative;
        outline: none;
        min-width: clamp(100px, 11vw, 130px);
        min-height: clamp(46px, 5vw, 56px);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
    }

    .nav-list a:hover,
    .nav-list a:focus-visible {
        color: #fff;
        background: var(--accent-2);
        border-color: var(--accent-2);
        box-shadow: 0 4px 18px rgba(200,155,131,0.13), 0 2px 12px rgba(163,180,154,0.07);
        text-decoration: none;
    }

    .nav-list a:active {
        background: var(--accent-2);
        color: #fff;
        border-color: var(--accent-2);
        box-shadow: 0 2px 8px rgba(200,155,131,0.18);
    }
}

/* ==========================================================================
   Carousel Styles & Hero Section
   ========================================================================== */
.hero {
    position: relative;
    padding: 0;
    width: 100%;
    background: #e8e4de;
    overflow: hidden;
    
    /* 1. Висота за замовчуванням для ТЕЛЕФОНІВ (Мобільні пристрої) */
    height: 40vh; 
    min-height: 300px;
}

/* 2. Висота для ПЛАНШЕТІВ (Екрани від 700px до 991px) */
@media (min-width: 700px) {
    .hero {
        height: 50vh;
        min-height: 440px;
    }
}

/* 3. Висота для КОМП'ЮТЕРІВ (Екрани від 992px і вище) */
@media (min-width: 992px) {
    .hero {
        height: 55vh;
        min-height: 400px;
        max-height: 700px;
    }
}

/* Стилізація фонових картинок */
.carousel-bg-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Базовий масштаб, з якого починається рух */
    transform: scale(1);
    /* Плавне повернення назад, коли слайд стає неактивним */
    transition: transform 0.5s ease-out; 
}

/* Ефект плавного збільшення на 15% тільки для АКТИВНОГО слайда Bootstrap */
.carousel-item.active .carousel-bg-slide {
    animation: kenBurnsZoom 5.5s linear forwards;
}

/* Сама анімація збільшення картини в часі */
@keyframes kenBurnsZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.15); /* Збільшення рівно на 15% перед перемиканням */
    }
}

/* Блок з напівпрозорим фоном поверх картинок */
.hero-overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(34,34,34,0.45) 0%, rgba(34,34,34,0.3) 60%, rgba(34,34,34,0.45) 100%);
}

.hero-content {
    color: #fff;
    text-align: center;
    padding: 2rem var(--container-padding);
    max-width: 700px;
    margin: 0 auto;
}

.hero-content h1 {
    color: #fff;
    font-size: clamp(1.6rem, 4.5vw, 3rem);
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

.hero-content .lead {
    color: #f8f9fa;
    font-size: clamp(0.95rem, 2.2vw, 1.25rem);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    max-width: 60ch;
    margin: 0 auto 1.5rem;
}

/* Ексклюзивна кнопка для Hero секції */
.btn-hero {
    display: inline-block;
    background: var(--accent-2);
    color: #fff;
    padding: 0.85rem 1.75rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: background 0.25s ease, transform 0.25s ease;
}

.btn-hero:hover {
    background: #b5866e;
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}

/* ==========================================================================
   Content Sections & Grids
   ========================================================================== */
.sr-only {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.btn {
    display: inline-block;
    background: var(--accent-2);
    color: #fff;
    padding: .65rem 1rem;
    border-radius: 10px;
    text-decoration: none;
}

.section {
    padding: 3rem 0;
}

.muted {
    color: var(--muted);
}

/* ==========================================================================
   Legal Pages
   ========================================================================== */
.legal-page {
    padding-top: clamp(3rem, 6vw, 5rem);
}

.legal-card {
    background: rgba(251, 249, 246, 0.96);
    border: 1px solid #e8e4de;
    border-radius: 16px;
    box-shadow: 0 10px 32px rgba(34, 34, 34, 0.07);
    max-width: 860px;
    margin: 0 auto;
    padding: clamp(1.25rem, 4vw, 2.5rem);
}

.legal-card h1 {
    margin-bottom: 0.25rem;
}

.legal-card h2 {
    color: var(--text);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    margin: 2rem 0 0.65rem;
}

.legal-card p {
    color: #373737;
    line-height: 1.75;
}

.legal-updated {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.legal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-top: 2rem;
}

/* ==========================================================================
   Services Expandable Cards
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.service-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.service-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    cursor: pointer;
    position: relative;
    z-index: 1;
    width: 100%;
    transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.service-preview {
    flex: 1 1 100%;
    min-width: 0;
}

.service-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #e8e4de;
    overflow: hidden;
}

.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img-wrapper img {
    transform: scale(1.03);
}

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
}

.service-footer {
    min-height: 88px;
}

.service-footer h3 {
    flex: 1;
    margin: 0;
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: none;
    line-height: 1.25;
    min-height: calc(1.25em * 2);
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: normal;
}

.service-footer h3.single-word {
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    line-height: 1.2;
    white-space: normal;
    overflow: hidden;
}

.btn-arrow {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    border-radius: 50%;
    background: #e0e0e0;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #222;
    line-height: 0;
    pointer-events: none;
    position: relative;
    transition: background 0.3s ease, color 0.3s ease;
}

.btn-arrow svg {
    display: none;
}

.btn-arrow::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 11px;
    height: 11px;
    border-right: 2.4px solid currentColor;
    border-bottom: 2.4px solid currentColor;
    transform: translate(-50%, -65%) rotate(45deg);
    transform-origin: center;
    transition: transform 0.3s ease;
    will-change: transform;
}

.service-card.expanded {
    z-index: 5;
}

.service-card.expanded .service-preview {
    flex: none;
}

.service-card.expanded .btn-arrow {
    background: var(--accent-2, #c89b83);
    color: #fff;
}

.service-card.expanded .btn-arrow::before {
    transform: translate(-50%, -35%) rotate(225deg);
}

.service-details {
    display: grid;
    grid-template-rows: 0fr;
    flex: none;
    width: 100%;
    opacity: 1;
    overflow: hidden;
    background: #fff;
    transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card.expanded .service-details {
    grid-template-rows: 1fr;
    flex: none;
}

.details-content {
    overflow: hidden;
    width: 100%;
    padding: 0 1.25rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: padding 0.35s ease, opacity 0.2s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card.expanded .details-content {
    padding: 1.25rem;
    opacity: 1;
    transform: translateY(0);
}

.details-content .description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 1.5rem;
}

.details-content .prices {
    list-style: none;
    padding: 0;
    margin: 0;
}

.details-content .prices li {
    font-size: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.details-content .prices li strong {
    transform: translateY(0.75rem);
}

.details-content .prices li > span {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: var(--accent-2);
    font-weight: 700;
    line-height: 1;
}

.old-price {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 0.2rem;
    text-decoration: line-through;
    opacity: 0.75;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 699px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        flex-direction: column;
        width: 100%;
        transform: none;
    }

    .service-card.expanded {
        width: 100%;
        transform: none;
    }

    .service-card.expanded:nth-child(even),
    .service-card.expanded:nth-child(3n) {
        transform: none;
    }

    .service-preview,
    .service-card.expanded .service-preview {
        flex: none;
        width: 100%;
    }

    .service-details {
        grid-template-columns: 1fr;
        grid-template-rows: 0fr;
        flex: none;
        width: 100%;
        opacity: 1;
        transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .service-card.expanded .service-details {
        grid-template-rows: 1fr;
        flex: none;
    }

    .details-content {
        width: 100%;
        padding: 0 1.25rem;
        transform: translateY(-10px);
    }

    .service-card.expanded .details-content {
        padding: 1.25rem;
        transform: translateY(0);
    }
}

.pricing-grid,
.team-grid {
    display: grid;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.pricing-grid {
    grid-template-columns: 1fr 1fr;
}

.pricing-grid li {
    background: var(--card);
    padding: 1.25rem;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(34, 34, 34, 0.04);
}

.pricing-grid h3 {
    margin: 0 0 0.25rem;
}

.meta {
    font-weight: 600;
    color: var(--accent-2);
}

.team-grid {
    grid-template-columns: 1fr;
}

.card {
    background: var(--card);
    padding: 1.25rem;
    border-radius: 12px;
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.portrait {
    flex: 0 0 140px;
    margin: 0;
}

.portrait img {
    display: block;
    width: 140px;
    height: 140px;
    border-radius: 8px;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 6px 18px rgba(34, 34, 34, 0.08);
}

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

.master .portrait {
    flex: none;
    width: 100%;
}

.master .portrait img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
}

.profile-portrait {
    flex: none;
    margin: 0;
}

.profile-portrait img {
    width: min(240px, 70vw);
    height: min(240px, 70vw);
}

.master-profile {
    padding-top: 4rem;
}

.master-profile-card {
    display: grid;
    gap: 1.5rem;
    align-items: center;
    background: rgba(251, 249, 246, 0.96);
    border: 1px solid #e8e4de;
    border-radius: 16px;
    box-shadow: 0 10px 32px rgba(34, 34, 34, 0.07);
    padding: clamp(1rem, 4vw, 2rem);
}

.master-profile-card .profile-portrait img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
}

.profile-content {
    max-width: 620px;
}

.eyebrow {
    color: var(--accent-2);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.profile-content .bio {
    font-size: 1.05rem;
    line-height: 1.7;
}

.profile-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 1.5rem;
}

.profile-highlights li {
    background: rgba(163, 180, 154, 0.16);
    border: 1px solid rgba(163, 180, 154, 0.35);
    border-radius: 999px;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.45rem 0.8rem;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.text-link {
    color: var(--accent-2);
    font-weight: 700;
    text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
    color: #b5866e;
    text-decoration: underline;
}

.card-body {
    flex: 1;
}

.card-body p:last-child {
    margin-bottom: 0;
}

.master-link {
    display: inline-block;
    background: var(--accent-2);
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
    margin-top: 0.35rem;
    padding: 0.6rem 0.9rem;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.master-link:hover,
.master-link:focus-visible {
    background: #b5866e;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.specialty {
    color: var(--accent);
    font-weight: 600;
    margin: .25rem 0;
}

@media(min-width: 700px) {
    .pricing-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .team-grid {
        grid-template-columns: 1fr 1fr;
    }

    .master-profile-card {
        grid-template-columns: minmax(260px, 42%) 1fr;
    }
}

.contact address {
    font-style: normal;
}

.site-footer {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(34, 34, 34, 0.04);
    background: transparent;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--muted);
}

a:focus {
    outline: 3px solid rgba(163, 180, 154, 0.25);
    outline-offset: 2px;
}

@media(min-width: 700px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}
/* ==========================================================================
   Gallery Section & Carousel Custom Styling
   ========================================================================== */
#studioGalleryCarousel {
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
}

#gallery-slides {
    aspect-ratio: 16 / 9;
    background-color: #f4f4f4;
}

/* ==========================================================================
   Contact Section & Buttons Custom Styling
   ========================================================================== */
.contact-info-block {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.studio-address {
    font-style: normal;
    margin-bottom: 1.5rem;
}

.studio-address h4, 
.contact-info-block h4 {
    color: var(--text);
    margin-bottom: 1rem;
}

.address-icon {
    color: #e67e22;
    flex-shrink: 0;
    margin-top: 3px;
}

.expert-name {
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    color: var(--muted);
    font-weight: 500;
}

/* Кнопки месенджерів */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #25D366;
    color: #ffffff;
    border-radius: 30px;
    font-weight: 500;
    transition: opacity 0.2s ease-in-out;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus-visible {
    color: #ffffff;
    opacity: 0.9;
}

.btn-instagram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
    border-radius: 30px;
    font-weight: 500;
    transition: opacity 0.2s ease-in-out;
}

.btn-instagram:hover,
.btn-instagram:focus-visible {
    color: #ffffff;
    opacity: 0.9;
}

.contact-divider {
    margin: 0.5rem 0;
    opacity: 0.1;
    border-top: 1px solid var(--text);
}

.map-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    height: 300px;
}

.map-wrapper iframe {
    border: 0;
}

/* ==========================================================================
   Site Footer (Clean & Contrast)
   ========================================================================== */
.site-footer {
    background-color: #1a1a1a;
    color: #a0a0a0;
    padding: 3rem 0 2rem;
    font-size: 0.95rem;
}

.footer-title {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.footer-copyright {
    margin-bottom: 0.25rem;
    color: #e0e0e0; /* Світло-сірий для гарної читабельності */
}

.footer-address {
    font-size: 0.85rem;
    color: #ffffff; /* Абсолютно білий та чіткий колір для адреси */
    font-weight: 500;
    margin-bottom: 0;
}

.footer-links a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: #ffffff;
}

.footer-separator {
    color: #555555;
}

/* Фікс ховерів для кнопок соцмереж у контактах (щоб текст не зникав) */
.btn-whatsapp:hover,
.btn-whatsapp:focus-visible {
    background-color: #1ebe57 !important; /* Трохи темніший зелений */
    color: #ffffff !important;            /* Текст залишається білим */
    opacity: 1 !important;
}

.btn-instagram:hover,
.btn-instagram:focus-visible {
    /* Робимо градієнт трішки темнішим/насиченішим при наведенні */
    background: linear-gradient(45deg, #e08523 0%, #d6582c 25%, #cc1733 50%, #bc1356 75%, #ac0878 100%) !important;
    color: #ffffff !important;            /* Текст залишається білим */
    opacity: 1 !important;
}
