/*
Theme Name: GipsMaster
Theme URI: https://gipsmaster.com.ua
Author: GipsMaster Team
Author URI: https://gipsmaster.com.ua
Description: Кастомна тема для сайту гіпсокартонних робіт. Сучасний дизайн з bento-сітками, анімаціями та повною адмін-панеллю.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gipsmaster
Tags: custom-menu, featured-images, theme-options, translation-ready

© 2026 GipsMaster. All rights reserved.
*/

/* ==========================================
   CSS ЗМІННІ - Світла тема (за замовчуванням)
   ========================================== */
:root {
  /* Кольори - світла тема */
  --background: #ffffff;
  --foreground: #0a0a0a;
  --muted: #6b7280;
  --muted-foreground: #6b7280;
  --card: #ffffff;
  --card-foreground: #0a0a0a;
  --popover: #ffffff;
  --popover-foreground: #0a0a0a;
  --primary: #f59e0b;
  --primary-foreground: #000000;
  --secondary: #f3f4f6;
  --secondary-foreground: #0a0a0a;
  --accent: #f59e0b;
  --accent-foreground: #000000;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --border: #e5e7eb;
  --input: #e5e7eb;
  --ring: #f59e0b;

  /* Типографіка */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Manrope', var(--font-sans);

  /* Розміри */
  --radius: 0.75rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;

  /* Контейнер */
  --container-max: 1280px;
  --container-padding: 1.5rem;
}

@media (min-width: 1024px) {
  :root {
    --container-padding: 2.5rem;
  }
}

/* ==========================================
   ТЕМНА ТЕМА
   ========================================== */
html.dark-theme {
  /* Кольори - темна тема */
  --background: #0a0a0a;
  --foreground: #ffffff;
  --muted: #a0a0a0;
  --muted-foreground: #888888;
  --card: #141414;
  --card-foreground: #ffffff;
  --popover: #1a1a1a;
  --popover-foreground: #ffffff;
  --primary: #f59e0b;
  --primary-foreground: #000000;
  --secondary: #1f1f1f;
  --secondary-foreground: #ffffff;
  --accent: #f59e0b;
  --accent-foreground: #000000;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --border: #262626;
  --input: #262626;
  --ring: #f59e0b;
}

/* ==========================================
   СВІТЛА ТЕМА - ДОДАТКОВІ СТИЛІ
   ========================================== */

/* Header - світла тема */
.site-header {
  position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px) saturate(200%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

.site-header--scrolled {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px) saturate(200%);
    -webkit-backdrop-filter: blur(12px) saturate(200%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, .3), 0 0 0 1px rgba(255, 255, 255, .05);
}


/* Hero секція - світла тема */
.hero__main {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--border);
}

.hero__image {
  background-color: #f1f5f9;
}

.hero__image::after {
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(0,0,0,0.1) 100%);
}

.hero__image img {
  filter: brightness(1);
}

.hero__metric {
  background-color: var(--secondary);
  border: 1px solid var(--border);
}

/* Service cards - світла тема */
.service-card {
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  border: 1px solid var(--border);
}

.service-card:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* Project cards - світла тема */
.project-card {
  background: #ffffff;
  border: 1px solid var(--border);
}

.project-card:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.project-card__image {
  background: #f1f5f9;
}

.project-card__image img {
  filter: brightness(1);
}

/* Process section - світла тема */
.process-section {
  background-color: #f9fafb;
  border: 1px solid var(--border);
}

.process-step {
  border-top-color: var(--border);
}

/* Price table - світла тема */
.price-table {
  background-color: #ffffff;
  border: 1px solid var(--border);
}

.price-table__header {
  background-color: var(--secondary);
  border-bottom-color: var(--border);
}

.price-table__item {
  border-bottom-color: var(--border);
}

/* FAQ - світла тема */
.faq-item {
  background-color: #ffffff;
  border: 1px solid var(--border);
}

/* Contact items - світла тема */
.contact-item {
  background-color: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.contact-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Contact form - світла тема */
.contacts__form {
  background-color: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.form-input,
.form-textarea {
  background-color: #ffffff;
}

/* Mobile menu - світла тема */
.mobile-menu {
  background-color: #ffffff;
  border-top-color: var(--border);
}

/* Footer - світла тема */
.site-footer {
  background-color: var(--secondary);
  border-top-color: var(--border);
}

.site-footer__bottom {
  border-top-color: var(--border);
}

/* Modal - світла тема */
.modal {
  background-color: #ffffff;
}

/* Toast - світла тема */
.toast {
  background-color: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Card - світла тема */
.card {
  background-color: #ffffff;
  border: 1px solid var(--border);
}

/* Кнопка перемикача теми */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  color: var(--foreground);
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  background-color: var(--secondary);
  border-color: var(--primary);
  color: var(--primary);
}

.theme-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* За замовчуванням (світла тема) - показуємо moon-icon */
.theme-toggle .moon-icon {
  display: block;
}

.theme-toggle .sun-icon {
  display: none;
}

/* Темна тема - показуємо sun-icon */
html.dark-theme .theme-toggle .moon-icon {
  display: none;
}

html.dark-theme .theme-toggle .sun-icon {
  display: block;
}

/* ==========================================
   БАЗОВІ СТИЛІ
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary);
}

/* Додаткові утиліти для темної теми */
.text-gradient {
  background: linear-gradient(135deg, var(--foreground) 0%, var(--muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================
   ТИПОГРАФІКА
   ========================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 1rem 0;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
  margin: 0 0 1rem 0;
}

/* ==========================================
   КОНТЕЙНЕР
   ========================================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* ==========================================
   КНОПКИ
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
  background-color: #fbbf24;
  color: var(--primary-foreground);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

.btn-secondary:hover {
  background-color: #2a2a2a;
}

.btn-outline {
  background-color: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: var(--foreground);
}

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

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* ==========================================
   КАРТКИ
   ========================================== */
.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

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

/* ==========================================
   ХЕДЕР - Liquid Glass Effect
   ========================================== */
.site-header {
  position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .6);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

.site-header--scrolled {
    background: rgba(255, 255, 255, .6);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, .3), 0 0 0 1px rgba(255, 255, 255, .05);
}

/* Compact header on scroll */
.site-header--compact .site-header__inner {
  height: 4rem;
}

.site-header--compact .site-logo__subtitle {
  display: none;
}

/* Padding top для контенту щоб не заховався під фіксованим хедером */
.site-wrapper {
  padding-top: 5rem;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

/* Desktop actions (phone + callback + theme toggle) */
.desktop-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (max-width: 1023px) {
  .desktop-actions {
    display: none !important;
  }
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-logo__icon {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--primary);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-foreground);
}

.site-logo__text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
}

.site-logo__subtitle {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Навігація */
.site-nav {
  display: none;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 1024px) {
  .site-nav {
    display: flex;
  }
}

.site-nav__link {
  font-size: 0.9375rem;
  color: var(--foreground);
  opacity: 0.8;
  transition: all 0.2s ease;
}

.site-nav li {
  list-style: none;
}

.site-nav__link:hover,
.site-nav__link--active {
  opacity: 1;
  color: var(--primary);
  font-weight: 500;
}

/* Мобільне меню */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
}

@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background-color: var(--card);
}

.mobile-menu--active {
  display: block;
}

.mobile-menu__list {
  list-style: none;
  margin: 0;
  padding: 1rem;
}

.mobile-menu__item {
  padding: 0.75rem 0;
}

.mobile-menu__link {
  font-size: 1rem;
  color: var(--foreground);
}

/* ==========================================
   ФУТЕР
   ========================================== */
.site-footer {
  margin-top: 6rem;
  border-top: 1px solid var(--border);
  background-color: var(--secondary);
}

.site-footer__inner {
  padding: 2.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 480px) {
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (min-width: 768px) {
  .site-footer__inner {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    padding: 3.5rem 0;
  }
}

.site-footer__brand {
  max-width: 24rem;
}

.site-footer__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.site-footer__logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--primary);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-foreground);
}

.site-footer__logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.site-footer__description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.site-footer__heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__item {
  margin-bottom: 0.5rem;
}

.site-footer__link {
  font-size: 0.875rem;
  color: var(--foreground);
}

.site-footer__bottom {
  border-top: 1px solid var(--border);
}

.site-footer__bottom-inner {
  padding: 1.25rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* ==========================================
   МОДАЛЬНЕ ВІКНО
   ========================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-overlay--active {
  display: flex;
}

.modal {
  background-color: var(--card);
  border-radius: var(--radius-xl);
  padding: 2rem;
  width: 100%;
  max-width: 28rem;
  max-height: 90vh;
  overflow-y: auto;
}

.modal__header {
  margin-bottom: 1.5rem;
}

.modal__title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.modal__description {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted-foreground);
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
}

.form-input,
.form-textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-textarea {
  resize: vertical;
  min-height: 8rem;
}

/* ==========================================
   СЕКЦІЇ
   ========================================== */
.section {
  padding: 4rem 0;
}

@media (min-width: 1024px) {
  .section {
    padding: 6rem 0;
  }
}

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

/* ==========================================
   HERO (BENTO) - Темна тема
   ========================================== */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
  }
}

.hero__main {
  background: linear-gradient(135deg, var(--card) 0%, var(--secondary) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 32rem;
}

@media (min-width: 1024px) {
  .hero__main {
    grid-column: span 7;
    padding: 3.5rem;
    min-height: 38rem;
  }
}

.hero__image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background-color: var(--secondary);
  position: relative;
}

.hero__image img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0.95) contrast(1.05);
}

.hero__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 100%);
  pointer-events: none;
}

@media (min-width: 1024px) {
  .hero__image {
    grid-column: span 5;
  }

  .hero__image img {
    max-height: 50rem;
    object-fit: cover;
    object-position: center;
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
}

.hero__metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 1024px) {
  .hero__metrics {
    grid-column: span 12;
    grid-template-columns: repeat(4, 1fr);
  }
}

.hero__metric {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.hero__metric-value {
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--primary);
}

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

.hero__metric-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}

/* ==========================================
   GRID СИСТЕМИ
   ========================================== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

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

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

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

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

/* ==========================================
   КАРТКА ПОСЛУГИ
   ========================================== */
.service-card {
  background: linear-gradient(135deg, var(--card) 0%, var(--secondary) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  text-decoration: none;
  color: inherit;
}

.service-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 40px rgba(245, 158, 11, 0.15);
  transform: translateY(-4px);
}

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

.service-card__number {
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.service-card__title {
  font-size: 1.5rem;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.service-card__description {
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.service-card__features {
  list-style: none;
  margin: 1.5rem 0 0 0;
  padding: 0;
}

.service-card__feature {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.service-card__feature-icon {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

/* ==========================================
   КАРТКА ПРОЄКТУ
   ========================================== */
.project-card {
  background: linear-gradient(135deg, var(--card) 0%, var(--secondary) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.project-card--featured {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .project-card--featured {
    grid-column: span 2;
    grid-row: span 2;
  }
}

.project-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.project-card--featured .project-card__image {
  aspect-ratio: 16 / 12;
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(0.95);
}

.project-card__image img {
  filter: brightness(1);
}

.project-card:hover .project-card__image img {
  transform: scale(1.08);
}

.project-card__content {
  padding: 1.5rem;
}

.project-card__category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.project-card__title {
  font-size: 1.25rem;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.project-card__meta {
  font-size: 0.875rem;
  color: var(--muted);
}

/* ==========================================
   ФІЛЬТР ПРОЄКТІВ
   ========================================== */
.projects-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background-color: var(--card);
  color: var(--foreground);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--primary);
}

.filter-btn--active {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

/* ==========================================
   ТАБЛИЦЯ ЦІН
   ========================================== */
.price-table {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.price-table__header {
  padding: 1.5rem 2rem;
  background-color: var(--secondary);
  border-bottom: 1px solid var(--border);
}

.price-table__title {
  font-size: 1.5rem;
  margin: 0;
}

.price-table__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.price-table__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
}

.price-table__item:last-child {
  border-bottom: none;
}

.price-table__name {
  flex: 1;
}

.price-table__unit {
  width: 5rem;
  text-align: right;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.price-table__price {
  width: 7rem;
  text-align: right;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--primary);
}

/* ==========================================
   FAQ АККОРДЕОН
   ========================================== */
.faq-accordion {
  max-width: 56rem;
}

.faq-item {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 0.75rem;
}

.faq-item__question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item__question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-item--active .faq-item__question::after {
  content: '−';
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item--active .faq-item__answer {
  max-height: 500px;
}

.faq-item__answer-inner {
  padding: 0 1.5rem 1.25rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* ==========================================
   КОНТАКТИ
   ========================================== */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .contacts-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
  }
}

.contacts__info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .contacts__info {
    grid-column: span 5;
  }
}

/* Контактна картка з тінню */
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-item:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Кругла іконка */
.contact-item__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-foreground);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.contact-item__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.contact-item__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

.contact-item__value {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  transition: color 0.2s ease;
}

.contact-item__value:hover {
  color: var(--primary);
}

.contact-item__value[href] {
  cursor: pointer;
}

/* Форма контактів */
.contacts__form {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

@media (min-width: 1024px) {
  .contacts__form {
    grid-column: span 7;
    padding: 2.5rem;
  }
}

.contacts__form-title {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Поля форми з покращеним focus */
.form-input,
.form-textarea {
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--input);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s ease;
  background-color: var(--background);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.form-input--error {
  border-color: var(--destructive);
  background-color: rgba(239, 68, 68, 0.02);
}

.form-error-message {
  font-size: 0.75rem;
  color: var(--destructive);
  margin-top: 0.25rem;
}

/* Кнопка форми з іконкою */
.btn-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-with-icon svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease;
}

.btn-with-icon:hover svg {
  transform: translateX(4px);
}

/* ==========================================
   CTA СЕКЦІЯ
   ========================================== */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #fbbf24 100%);
  color: var(--primary-foreground);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: 0 10px 40px rgba(245, 158, 11, 0.3);
}

@media (min-width: 1024px) {
  .cta-section {
    padding: 4rem;
  }
}

.cta-section__content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .cta-section__content {
    flex-direction: row;
    justify-content: space-between;
  }
}

.cta-section__text {
  max-width: 40rem;
}

.cta-section__title {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--primary-foreground);
}

@media (min-width: 1024px) {
  .cta-section__title {
    font-size: 2.25rem;
  }
}

.cta-section__description {
  color: var(--primary-foreground);
  opacity: 0.9;
}

.cta-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Кнопки для CTA */
.cta-section .btn-outline {
  border-color: var(--primary-foreground);
  color: var(--primary-foreground);
  opacity: 0.9;
}

.cta-section .btn-outline:hover {
  border-color: var(--primary-foreground);
  background-color: rgba(0, 0, 0, 0.1);
  opacity: 1;
}

/* Альтернативна CTA секція (для сторінок послуг, FAQ, про нас) */
.cta-section--alt {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--foreground);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.cta-section--alt .cta-section__title {
  color: var(--foreground);
}

.cta-section--alt .cta-section__description {
  color: var(--muted-foreground);
}

.cta-section--alt .btn-outline {
  border-color: var(--border);
  color: var(--foreground);
}

.cta-section--alt .btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ==========================================
   ПРОЦЕС (4 КРОКИ)
   ========================================== */
.process-section {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
}

@media (min-width: 1024px) {
  .process-section {
    padding: 3.5rem;
  }
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

.process-step {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.process-step__number {
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.process-step__title {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.process-step__description {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
}

/* ==========================================
   SINGLE SERVICE (окрема послуга)
   ========================================== */

/* Breadcrumb */
.breadcrumb-section {
  background-color: var(--background);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.breadcrumb__item--current {
  color: var(--foreground);
}

.breadcrumb__separator {
  color: var(--muted-foreground);
  opacity: 0.6;
}

/* ==========================================
   СТОРІНКА ОКРЕМОЇ ПОСЛУГИ
   ========================================== */

/* Основна сітка */
.service-single-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .service-single-layout {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin: 0 auto;
  }

  /* Якщо є зображення - дві колонки */
  .service-single-layout--with-image {
    grid-template-columns: 1fr 420px;
    max-width: 100%;
    margin: 0;
  }
}

/* Ліва колонка - контент */
.service-single__main {
  max-width: 100%;
}

.service-single-layout--with-image .service-single__main {
  max-width: 560px;
}

.service-single__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.service-single__excerpt {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.8;
}

/* Блок характеристик (Service Specs) */
.service-specs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

@media (min-width: 640px) {
  .service-specs {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-specs__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.service-specs__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.1);
  color: var(--primary);
  flex-shrink: 0;
}

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

.service-specs__label {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.service-specs__value {
  font-size: 1rem;
  color: var(--foreground);
  font-weight: 600;
  line-height: 1.3;
}

/* Повний контент */
.service-single__content {
  margin-top: 2.5rem;
  color: var(--muted-foreground);
  line-height: 1.8;
}

.service-single__content h1,
.service-single__content h2,
.service-single__content h3 {
  color: var(--foreground);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.service-single__content p {
  margin-bottom: 1.25rem;
}

.service-single__content ul,
.service-single__content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.service-single__content li {
  margin-bottom: 0.75rem;
}

/* Зображення з обтіканням текстом */
.service-single__content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.service-single__content .alignleft {
  float: left;
  margin: 0.5rem 1.5rem 1rem 0;
  max-width: 40%;
}

.service-single__content .alignright {
  float: right;
  margin: 0.5rem 0 1rem 1.5rem;
  max-width: 40%;
}

.service-single__content .aligncenter {
  display: block;
  margin: 1.5rem auto;
  clear: both;
}

.service-single__content figure {
  margin: 1.5rem 0;
}

.service-single__content figcaption {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-align: center;
  margin-top: 0.5rem;
}

/* Clearfix для обтікання */
.service-single__content::after {
  content: '';
  display: table;
  clear: both;
}

@media (max-width: 768px) {
  .service-single__content .alignleft,
  .service-single__content .alignright {
    float: none;
    display: block;
    margin: 1.5rem auto;
    max-width: 100%;
  }
}

/* Права колонка - зображення */
.service-single__image-col {
  position: relative;
}

@media (min-width: 1024px) {
  .service-single__image-sticky {
    position: sticky;
    top: 2rem;
  }
}

.service-single__image-sticky img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.service-single__image-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--card) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

/* ==========================================
   СЕКЦІЯ ПЕРЕВАГ (КАРТКИ)
   ========================================== */
.service-features-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--card) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.service-features-section__title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  color: var(--foreground);
  text-align: center;
}

.service-features-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .service-features-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .service-features-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-feature-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
}

.service-feature-card:hover {
  border-color: var(--primary);
  background: rgba(245, 158, 11, 0.05);
  transform: translateY(-2px);
}

.service-feature-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  color: var(--primary);
  flex-shrink: 0;
}

.service-feature-card__title {
  font-size: 0.9375rem;
  color: var(--foreground);
  font-weight: 500;
  margin: 0;
  line-height: 1.4;
}

.service-features__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--primary-foreground);
  flex-shrink: 0;
}

.service-features__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.service-features__text {
  font-size: 1rem;
  color: var(--foreground);
  font-weight: 500;
}

/* ==========================================
   404 СТОРІНКА
   ========================================== */
.error-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.error-404__code {
  font-size: 6rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.error-404__title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.error-404__description {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

/* ==========================================
   УТИЛІТИ
   ========================================== */
.text-muted {
  color: var(--muted-foreground);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hidden {
  display: none;
}

/* ==========================================
   АНІМАЦІЇ
   ========================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.3s ease;
}

/* Toast сповіщення */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  background-color: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  animation: slideIn 0.3s ease;
}

.toast--success {
  border-color: var(--accent);
}

.toast--error {
  border-color: var(--destructive);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
