/* =========================================
   MEGA STONE - Premium Dark Theme
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg-main: #0f1115;
  --bg-card: #161920;
  --bg-card-hover: #1c1f28;
  --accent: #d4a373;
  --accent-hover: #e5b787;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --border-color: #272a35;
  --header-height: 80px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 300;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background-color: var(--accent);
  color: #000;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(212, 163, 115, 0.2);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  background-color: var(--border-color);
  color: #fff;
  box-shadow: none;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(15, 17, 21, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* =========================================
   Logo Styles (Medium Emblem)
   ========================================= */
.logo {
  position: relative;
  display: flex;
  align-items: flex-start;
  text-decoration: none;
  width: 150px; 
  height: var(--header-height);
}

.logo-svg {
  position: absolute;
  top: 5px; 
  left: 0;
  width: 150px; 
  height: auto;
  display: block;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5)); 
  z-index: 1001;
}

.logo:hover .logo-svg {
  transform: scale(1.05);
}

.footer .logo {
  width: auto;
  height: auto;
  position: static; 
}

.footer .logo-svg {
  position: static;
  width: 150px; 
  margin: 0 auto;
  filter: none;
}

/* =========================================
   Header Actions & Burger
   ========================================= */
.header__actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header__phone {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s;
}

.header__phone:hover {
  color: var(--accent);
}

.burger-btn {
  display: none;
  width: 30px;
  height: 20px;
  position: relative;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1005;
  margin-left: 10px;
}

.burger-btn span {
  position: absolute;
  width: 100%;
  height: 2px;
  background: #fff;
  left: 0;
  transition: all 0.3s ease;
}

.burger-btn span:nth-child(1) { top: 0; }
.burger-btn span:nth-child(2) { top: 9px; }
.burger-btn span:nth-child(3) { bottom: 0; }

.burger-btn.active span:nth-child(1) { transform: rotate(45deg); top: 9px; }
.burger-btn.active span:nth-child(2) { opacity: 0; }
.burger-btn.active span:nth-child(3) { transform: rotate(-45deg); bottom: 9px; }

/* =========================================
   Dropdown Menu Styles
   ========================================= */
.header__nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 10px 0;
}

.nav-link:hover,
.nav-item-dropdown:hover > .nav-link {
  color: var(--accent);
}

.dropdown-arrow {
  transition: transform 0.3s ease;
}

.nav-item-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-item-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -20px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  min-width: 260px;
  padding: 0.75rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  z-index: 1100;
}

.nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 1.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.dropdown-menu a:hover {
  background-color: var(--bg-accent);
  color: var(--accent-hover);
  padding-left: 1.8rem;
}

/* =========================================
   Hero Section Layout
   ========================================= */
.hero-cinematic {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-cinematic__bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero_new.jpeg'); 
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-cinematic__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,17,21,0.95) 0%, rgba(15,17,21,0.7) 40%, rgba(15,17,21,0.1) 100%);
}

.hero-cinematic__container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-cinematic__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 100%;
  gap: 2rem;
}

.hero-cinematic__text {
  flex: 1;
  max-width: 550px;
}

.hero-cinematic__gfx {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* =========================================
   Circular Infographic (Desktop 100%)
   ========================================= */
.circle-hero {
  position: relative;
  width: 100%;
  max-width: 420px; 
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.circle-hero__center {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  border: 2px solid rgba(212, 163, 115, 0.4);
  padding: 10px; 
  background: rgba(15, 17, 21, 0.5);
  backdrop-filter: blur(10px);
  /* Світіння навколо кола */
  box-shadow: 0 0 50px rgba(212, 163, 115, 0.35), inset 0 0 20px rgba(212, 163, 115, 0.2); 
}

.circle-hero__center img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.circle-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(22, 25, 32, 0.85);
  backdrop-filter: blur(12px);
  padding: 12px 20px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  z-index: 3;
  transition: transform 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
}

.circle-badge:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.circle-badge__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(212, 163, 115, 0.1);
  color: var(--accent);
}

.circle-badge__text {
  display: flex;
  flex-direction: column;
}

.circle-badge__text span {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2;
}

.circle-badge__text strong {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 600;
  line-height: 1.2;
  margin-top: 2px;
}

/* Розведення бейджів, щоб не перекривали велике коло */
.circle-badge--tl { top: -5%; left: -10%; }
.circle-badge--tr { top: 10%; right: -20%; }
.circle-badge--bl { bottom: 10%; left: -15%; }
.circle-badge--br { bottom: -5%; right: -10%; }

@media (max-width: 1200px) {
  .circle-badge--tr { right: -5%; }
  .circle-badge--bl { left: -5%; }
}

/* Hero Typography */
.hero__tag {
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1rem;
  display: block;
}

.hero__title {
  font-size: 4rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero__title strong {
  font-weight: 700;
}

.hero__desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

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

/* =========================================
   Content Blocks (Info & Catalog)
   ========================================= */
.info-section {
  padding: 6rem 0;
  border-bottom: 1px solid var(--border-color);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.info-card {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: transform 0.3s;
}

.info-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 163, 115, 0.3);
}

.info-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.info-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Products Catalog */
.catalog-header {
  padding: 6rem 0 3rem;
  text-align: center;
}

.catalog-header h2 {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

.catalog-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.product-item {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
  border-bottom: 1px solid var(--border-color);
}

.product-item:nth-child(even) {
  direction: rtl;
}

.product-item:nth-child(even) > * {
  direction: ltr;
}

.product-content h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.product-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.product-meta span {
  font-size: 0.85rem;
  color: var(--accent);
  background: rgba(212, 163, 115, 0.1);
  padding: 4px 12px;
  border-radius: 4px;
}

.product-desc {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.product-gallery {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.swiper {
  width: 100%;
  height: 450px;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-button-next, .swiper-button-prev {
  color: #fff !important;
  background: rgba(0,0,0,0.5);
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
}

.swiper-button-next:after, .swiper-button-prev:after {
  font-size: 16px !important;
}

/* =========================================
   FAQ Accordion
   ========================================= */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.5rem 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform 0.3s;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

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

.faq-answer p {
  padding-bottom: 1.5rem;
  color: var(--text-muted);
}

/* =========================================
   Modal & Contact Form
   ========================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-card);
  width: 100%;
  max-width: 400px;
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  position: relative;
  transform: translateY(20px);
  transition: all 0.3s ease;
  text-align: center;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.contact-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s;
}

.contact-btn:hover {
  background: var(--border-color);
  color: var(--accent);
}

/* =========================================
   Footer
   ========================================= */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__policy {
  text-align: left;
  flex: 1;
}

.footer__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer__partner {
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 5px;
  font-weight: 500;
}

.footer__copy {
  text-align: right;
  flex: 1;
}

/* =========================================
   MOBILE FIXES & SAFEGUARDS
   ========================================= */
html, body {
  overflow-x: hidden !important;
  width: 100%;
  position: relative;
}

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

@media (max-width: 992px) {
  /* Меню та бургер */
  .burger-btn { display: block; }
  .header__phone { display: none; }
  
  .header__nav {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--bg-main);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    gap: 1.5rem;
    transition: left 0.3s ease;
    overflow-y: auto;
  }
  .header__nav.active { left: 0; }
  .nav-link { font-size: 1.2rem; }
  
  /* Випадаюче меню на мобільних */
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    display: none;
    padding-left: 1rem;
    min-width: 100%;
    margin-top: 10px;
  }
  .nav-item-dropdown.active .dropdown-menu { display: block; }
  .nav-item-dropdown.active .dropdown-arrow { transform: rotate(180deg); }

  /* Hero адаптація */
  .hero-cinematic__bg::after {
    /* Глухий темний оверлей для ідеальної читабельності */
    background: rgba(10, 12, 16, 0.85); 
  }
  .hero-cinematic__inner {
    flex-direction: column;
    margin-top: 2rem;
  }
  .hero-cinematic__text {
    text-align: center;
  }
  .hero__actions {
    justify-content: center;
  }
  .hero__title {
    font-size: 2.8rem;
  }
  
  /* Коло на мобільних - 100% ширини */
  .circle-hero {
    margin-top: 2rem;
    max-width: 100%;
    height: auto;
    aspect-ratio: auto;
    flex-direction: column;
    gap: 1.5rem;
  }
  .circle-hero__center {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    max-width: 380px; /* Запобіжник для великих екранів планшетів */
  }
  .circle-badge {
    position: relative;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100%;
    max-width: 320px;
    justify-content: flex-start;
  }

  /* Каталог адаптація */
  .product-item {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .product-item:nth-child(even) {
    direction: ltr;
  }
}

@media (max-width: 768px) {
  .logo { width: 100px; }
  .logo-svg { width: 100px; top: 16px; }
  .footer .logo-svg { width: 100px; }
  .header__contact-btn {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
  
  .info-grid { grid-template-columns: 1fr !important; }
  .info-card { padding: 1.5rem !important; }
  .swiper { height: 300px; }
  
  .info-card[style*="display: flex"] {
    flex-direction: column;
    gap: 1rem !important;
  }
  .info-section { padding: 3rem 0 !important; }
  .section-title {
    font-size: 2rem !important;
    margin-bottom: 2rem !important;
  }
  
  /* Footer Mobile Центрування */
  .footer__inner {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 1.5rem;
  }
  .footer__policy, .footer__copy {
    text-align: center !important;
    flex: none;
  }
}

/* =========================================
   About Page Custom Premium Styling
   ========================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-image-wrapper::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(212, 163, 115, 0.3);
  border-radius: 16px;
  z-index: 1;
  pointer-events: none;
}

.about-showcase-img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
  display: block;
}

.about-text-content {
  display: flex;
  flex-direction: column;
}

.about-section-heading {
  font-size: 2.5rem;
  font-weight: 300;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
  line-height: 1.2;
}

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

.about-paragraphs p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.highlighted-quote {
  font-size: 1.25rem !important;
  color: var(--accent) !important;
  font-weight: 500;
  line-height: 1.5 !important;
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  margin-top: 1rem;
}

/* Stats Section */
.stats-section {
  background: linear-gradient(180deg, var(--bg-main) 0%, rgba(22, 25, 32, 0.5) 50%, var(--bg-main) 100%);
}

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

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 163, 115, 0.3);
}

.stat-card:hover::after {
  transform: scaleX(1);
}

.stat-num {
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
}

.stat-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.4;
  letter-spacing: 0.5px;
}

/* Offices Section */
.offices-section {
  background-color: var(--bg-main);
}

.offices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.office-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
  transition: all 0.3s ease;
}

.office-card:hover {
  border-color: rgba(212, 163, 115, 0.2);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.office-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.office-title {
  font-size: 1.35rem;
  font-weight: 500;
}

.office-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  border: 1px solid rgba(212, 163, 115, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 500;
}

.office-services-heading {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.office-services-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.office-services-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-main);
  font-size: 0.95rem;
}

.office-icon {
  color: var(--accent);
  opacity: 0.8;
  flex-shrink: 0;
}

/* Responsive fixes for about page elements */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .about-image-wrapper {
    max-width: 550px;
    margin: 0 auto;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .offices-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .about-section-heading {
    font-size: 2rem;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .offices-grid {
    grid-template-columns: 1fr;
  }
  .office-card {
    padding: 2rem;
  }
}