/* === CSS ЗМІННІ === */
:root {
    --bg-light: #e6f3ff;
    --bg-lighter: #f7fbff;
    --accent: #ffb88c;
    --accent-strong: #ff9550;
    --text-main: #163047; 
    --text-muted: #5f7b96;
    --white: #ffffff;
    --border-soft: #d5e6f7;
    --shadow-soft: 0 18px 35px rgba(14, 40, 72, 0.14);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-pill: 999px;
    --transition-fast: 0.2s ease;
}

/* === БАЗОВІ СТИЛІ === */
body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, #fdf7f1 0, #e6f3ff 40%, #f7fbff 100%);
    color: var(--text-main);
    min-height: 100vh;
    scroll-behavior: smooth;
}

.section-padding {
    padding: 6rem 1rem;
}

/* Семантичні утиліти */
.bg-text-main {
    background-color: var(--text-main);
}

.bg-bg-light {
    background-color: var(--bg-light);
}

.bg-bg-lighter {
    background-color: var(--bg-lighter);
}

.text-text-main {
    color: var(--text-main);
}

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

.text-accent-strong {
    color: var(--accent-strong);
}

.border-border-soft {
    border-color: var(--border-soft);
}

/* === КАРТКИ === */
.custom-card {
    background: var(--white);
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.custom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(14, 40, 72, 0.2);
}

.custom-card-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(14, 40, 72, 0.1);
}

/* === КНОПКИ === */
.btn-accent {
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 12px 25px rgba(255, 149, 80, 0.4);
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(255, 149, 80, 0.46);
    filter: brightness(1.03);
}

.btn-outline {
    border: 1px solid var(--border-soft);
    outline: none;
    cursor: pointer;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.btn-outline:hover {
    background: var(--bg-lighter);
    border-color: var(--accent-strong);
    color: var(--accent-strong);
}

/* === ІКОНИ СЕРВІСІВ === */
.service-icon {
    background-color: var(--bg-light);
    color: var(--accent-strong);
    padding: 1.5rem;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    display: inline-flex;
    box-shadow: 0 5px 15px rgba(230, 243, 255, 0.8);
}

/* === МОДАЛЬНЕ ВІКНО === */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-backdrop.is-open {
    display: flex;
}

.modal-content {
    background-color: var(--white);
    border-radius: 2rem;
    max-width: 90%;
    width: 500px;
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    animation: slideIn 0.3s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* === HERO БАНЕР === */
#hero-banner {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-top: 80px;
    background-color: var(--text-main);
}

.hero-img-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-img-container.active {
    opacity: 1;
}

#hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(22,48,71,0.6);
    z-index: 1;
    border-radius: 0 0 40px 40px;
}

#hero-content {
    z-index: 2;
}

/* === ХЕДЕР === */
.header-fixed {
    backdrop-filter: blur(10px);
    background-color: rgba(255,255,255,0.95);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.logo-mark {
    width: 44px;
    height: 44px;
    border-radius: 18px;
    background: conic-gradient(from 210deg, #ffb88c, #ffd3ae, #77bdff, #e6f3ff, #ffb88c);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.logo-mark span {
    font-weight: 800;
    color: #ffffff;
    font-size: 20px;
    letter-spacing: 0.06em;
}

/* === СОЦІАЛЬНІ ІКОНИ === */
.social-icon {
    color: var(--text-main);
    transition: color var(--transition-fast);
    padding: 4px;
}

.social-icon:hover {
    color: var(--accent-strong);
}

.footer-icon:hover {
    opacity: 0.8;
}

.review-card {
    min-width: 33.333%; /* 3 картки в ряду */
}


@media (max-width: 1024px) {
  #reviews-list article {
    flex: 0 0 calc((100% - 24px) / 2);
    max-width: calc((100% - 24px) / 2);
  }
}

@media (max-width: 768px) {
  #reviews-list article {
    min-width: 100% !important;
    max-width: 100% !important;
  }
}


/* Мобільний: 1 картка на всю ширину */
@media (max-width: 640px) {
  #reviews-list {
    gap: 16px;
    flex-wrap: nowrap; /* щоб зробити горизонтальний слайдер */
    overflow-x: auto;
    min-width: 100% !important;
    max-width: 100% !important;
  }

  #reviews-list article {
    flex: 0 0 100%;
    max-width: 100%;
  }

  #reviews-scroll {
    padding-left: 16px;
    padding-right: 16px;
    overflow-x: auto;
  }
}

#reviews-list article {
  flex: 0 0 calc((100% - 48px) / 3); /* 2 gap * 24px = 48px */
  max-width: calc((100% - 48px) / 3);
}

#reviews-scroll::-webkit-scrollbar {
    display: none;             /* Chrome, Safari, Opera */
}

/* === МЕНЮ === */
.nav-link {
    color: var(--text-main);
    font-weight: 500;
    transition: color var(--transition-fast);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
}

.nav-link:hover {
    color: var(--accent-strong);
    background-color: var(--bg-lighter);
}
