:root {
    --bg-light: #ffffff;
    --bg-alt: #f8f8f8;
    --text-dark: #121212;
    --text-muted: #666666;
    --border-color: #e2e2e2;
    --accent: #111111;
    --font: 'Montserrat', sans-serif;
}

/* Base Reset & Box Sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    font-family: var(--font);
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border-color);
}
.header.scrolled,
.header.solid {
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 12px rgba(0,0,0,0.04);
}
/* На головній над hero — світлий текст меню, поки хедер прозорий */
body.page-home .header:not(.scrolled) .nav a {
    color: rgba(255,255,255,0.9);
}
body.page-home .header:not(.scrolled) .nav a:hover,
body.page-home .header:not(.scrolled) .nav a.active {
    color: #fff;
}
body.page-home .header:not(.scrolled) .mobile-btn {
    color: #fff;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 92px;
    padding-top: 8px;
    padding-bottom: 8px;
}

/* Logo image 1:1 — один файл, пропорційне масштабування */
.logo-brand {
    display: block;
    flex-shrink: 1;
    min-width: 0;
    max-width: min(240px, calc(100vw - 80px));
    text-decoration: none;
    line-height: 0;
}
.logo-img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 240px;
}
.footer-logo {
    display: block;
    max-width: 200px;
    margin-bottom: 16px;
    text-decoration: none;
    line-height: 0;
}
.footer-logo .logo-img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 200px;
}

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

.nav a {
    margin-left: 25px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: 0.3s;
}

.nav a:hover, .nav a.active {
    color: var(--text-dark);
}

.mobile-btn {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 5px;
}

/* UI Elements & Typography */
.sub {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 8px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    border: 1px solid var(--text-dark);
    transition: 0.3s;
    cursor: pointer;
    text-align: center;
}

.btn-dark {
    background: var(--text-dark);
    color: #fff;
}

.btn-dark:hover {
    background: #333;
}

.btn-out {
    color: var(--text-dark);
    background: transparent;
}

.btn-out:hover {
    background: var(--text-dark);
    color: #fff;
}

/* Layout Sections */
.section {
    padding: 90px 0;
    border-bottom: 1px solid var(--border-color);
}

.sec-head {
    margin-bottom: 50px;
    text-align: center;
}

.sec-head h2 {
    font-size: 32px;
    font-weight: 800;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Cards & Content Blocks */
.cat-card {
    border: 1px solid var(--border-color);
    background: #fff;
    transition: 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cat-card:hover {
    transform: translateY(-5px);
    border-color: var(--text-dark);
}

.cat-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.cat-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.cat-body h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.cat-body p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Reviews */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.review-card {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    border-radius: 4px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.review-author-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

.review-date {
    font-size: 13px;
    color: var(--text-muted);
}

.review-stars {
    color: #f1c40f;
    margin-bottom: 14px;
    font-size: 14px;
    letter-spacing: 1px;
}

.review-text {
    font-size: 13px;
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.review-tags span {
    background: #f0f0f0;
    color: #555;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* Instagram Grid */
.insta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.insta-item {
    position: relative;
    height: 220px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.insta-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s;
}

.insta-item:hover img {
    transform: scale(1.08);
}

/* Footer */
.footer-main {
    background: #0a0a0a;
    color: #ffffff;
    padding: 70px 0 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
    align-items: start;
}

.footer-logo {
    display: block;
    max-width: 220px;
    margin-bottom: 16px;
    text-decoration: none;
    line-height: 0;
}
.footer-logo .logo-svg {
    display: block;
    width: 100%;
    height: auto;
    max-width: 220px;
}



.footer-desc {
    color: #999;
    font-size: 13px;
    line-height: 1.6;
    margin-top: 12px;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #fff;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-contacts p,
.footer-contacts a {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 10px;
    text-decoration: none;
    display: block;
}
.footer-contacts a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 30px;
    text-align: center;
    color: #666;
    font-size: 12px;
}

/* ==========================================
   АДАПТИВНІ СТИЛІ (MEDIA QUERIES)
   ========================================== */

/* Планшети (до 992px) */
@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .insta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

/* Смартфони (до 768px) */
@media (max-width: 768px) {
    /* 1. Адаптація шапки */
    .header-container {
        height: 70px;
    }

   .logo-main {
        font-size: 26px; /* Пропорційно зменшуємо на телефоні */
        padding-bottom: 5px;
        margin-bottom: 4px;
    }

    .logo-sub {
        font-size: 4.8px; /* Зменшуємо підтекст, але text-align-last збереже його розтягнутим */
    }

    /* 2. Мобільне меню */
    .mobile-btn {
        display: block;
    }

    .nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #ffffff;
        padding: 15px 20px;
        flex-direction: column;
        align-items: flex-start;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    }

    .nav.active {
        display: flex;
    }

    .nav a {
        margin: 12px 0;
        width: 100%;
        font-size: 13px;
    }

    /* 3. Перший екран (Hero banner) & Фікс для iOS */
    .hero-banner {
        padding: 100px 15px 40px !important;
        min-height: 100vh;
        background-attachment: scroll !important; /* Фікс зсуву фону на iPhone */
        background-position: center center !important;
    }

    .hero-content h1 {
        font-size: 22px !important;
        line-height: 1.3 !important;
        opacity: 1 !important; /* Робимо заголовок читабельним */
    }

    .hero-content p {
        font-size: 14px !important;
    }

    .hero-content div[style*="display: flex"] {
        flex-direction: column;
        gap: 10px !important;
    }

    .hero-content .btn {
        width: 100%;
        box-sizing: border-box;
    }

    /* 4. Спеціальні сітки */
    .section {
        padding: 45px 0;
    }

    .sec-head {
        margin-bottom: 30px;
    }

    .sec-head h2 {
        font-size: 22px;
    }

    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .insta-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .review-card {
        padding: 20px;
    }

    .footer-main {
        padding: 50px 0 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }
}
.floating-socials {
  position: fixed;
  right: 20px;       /* Відступ від правого краю */
  top: 50%;          /* Розміщення по центру висоти */
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;         /* Відстань між іконками */
  z-index: 9999;     /* Поверх усіх елементів */
}

.social-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 22px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Кольори брендів */
.social-icon.telegram {
  background-color: #0088cc;
}

.social-icon.instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

/* Ефект при наведенні курсора */
.social-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

/* Logo responsive */
@media (max-width: 992px) {
    .header-container { height: 84px; }
    .logo-brand, .logo-img { max-width: min(200px, calc(100vw - 160px)); }
}
@media (max-width: 768px) {
    .header-container { height: 64px; padding: 6px 0; }
    .logo-brand, .logo-img { max-width: min(145px, calc(100vw - 56px)); }
    .footer-logo, .footer-logo .logo-img { max-width: 150px; }
    .nav { top: 64px; }
}
@media (max-width: 400px) {
    .header-container { height: 56px; }
    .logo-brand, .logo-img { max-width: min(120px, calc(100vw - 52px)); }
    .nav { top: 56px; }
}
