/* =============================================
   SVG ICON DEFINITIONS (hidden)
   ============================================= */
.svg-icons {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* =============================================
   ЭКСПЕРТ РИТУАЛ — Основные стили
   ============================================= */

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

:root {
  --navy: #1a1a1a;
  --navy-dark: #111111;
  --navy-light: #2a2a2a;
  --stone: #8c7b6b;
  --stone-light: #a89888;
  --stone-dark: #6d5f52;
  --gold: #d4a017;
  --gold-dark: #b8890f;
  --warm: #f8f6f1;
  --warm-dark: #ede9e1;
  --white: #ffffff;
  --text: #1a1a1a;
  --text-light: #555555;
  --text-muted: #6b6b6b;
  --border: #e0dcd7;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: .25s ease;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 60px;
}

body {
  font-family: var(--font-main);
  background: var(--warm);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--transition);
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Icon utility ---- */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  fill: currentColor;
}

.icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
}

.btn-primary:hover {
  background: var(--gold-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212,160,23,.3);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
}

.btn-white:hover {
  background: var(--warm);
  color: var(--gold);
}

.btn-sm {
  padding: 8px 16px;
  font-size: .85rem;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.05rem;
}

.btn-danger {
  background: #dc3545;
  color: var(--white);
}

.btn-danger:hover {
  background: #c82333;
}

.btn-success {
  background: #28a745;
  color: var(--white);
}

.btn-success:hover {
  background: #218838;
}

.btn-ghost {
  background: transparent;
  color: var(--text-light);
  padding: 8px 12px;
}

.btn-ghost:hover {
  background: var(--warm-dark);
  color: var(--navy);
}

.btn--primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn--primary:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}

.btn--gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.btn--gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212,160,23,.3);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}

.btn--outline:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border: none;
  padding: 10px 16px;
}

.btn--ghost:hover {
  background: rgba(0,0,0,.06);
}

.btn--sm {
  padding: 10px 20px;
  font-size: .85rem;
}

.btn--lg {
  padding: 18px 36px;
  font-size: 1.05rem;
}

.btn--full {
  width: 100%;
}

/* ---- Section Titles ---- */
.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.25;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 48px;
}

.text-center {
  text-align: center;
}

/* =============================================
   HEADER
   ============================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.95) 100%);
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  overflow: hidden;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo__mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo__name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
}

.logo__sub {
  font-size: .7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.nav {
  display: none;
  align-items: center;
  gap: 28px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__link {
  color: var(--text-light);
  font-size: .9rem;
  font-weight: 400;
  position: relative;
  padding: 4px 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav__link:hover,
.nav__link.active {
  color: var(--navy);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__phone {
  font-weight: 600;
  font-size: .95rem;
  color: var(--navy);
  white-space: nowrap;
}

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

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}

.burger span {
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  padding-top: 72px;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 40%, var(--navy-light) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  z-index: 0;
}

.hero--photo {
  background: #000;
}

.hero--photo .hero__bg {
  display: block;
}

.hero--photo::before {
  background:
    linear-gradient(to right, rgba(0,0,0,.7) 0%, rgba(0,0,0,.4) 50%, rgba(0,0,0,.2) 100%),
    radial-gradient(ellipse at 20% 80%, rgba(212,160,23,.08) 0%, transparent 50%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(212,160,23,.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(255,255,255,.04) 0%, transparent 40%);
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,160,23,.07) 0%, transparent 70%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding-top: 80px;
  padding-bottom: 80px;
  margin: 0;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212,160,23,.12);
  border: 1px solid rgba(212,160,23,.2);
  padding: 8px 16px;
  border-radius: 24px;
  font-size: .8rem;
  color: var(--gold);
  margin-bottom: 28px;
  font-weight: 500;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero__title span {
  color: var(--gold);
}

.hero__desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,.7);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__info {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.1);
}

.hero__info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero__info-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,.4);
}

.hero__info-value {
  font-size: .95rem;
  color: rgba(255,255,255,.9);
  font-weight: 500;
}

/* =============================================
   FEATURES BAR
   ============================================= */

/* =============================================
   ABOUT SECTION
   ============================================= */
.about-section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about__content .section-title {
  text-align: left;
}

.about__lead {
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.7;
  margin: 20px 0 16px;
}

.about__text {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.about__stats {
  display: flex;
  gap: 40px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.about__stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  display: block;
}

.about__stat-label {
  font-size: .8rem;
  color: var(--text-muted);
}

.about__image {
  position: relative;
}

.about__image-box {
  background: linear-gradient(145deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  border-radius: var(--radius-lg);
  padding: 48px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.about__image-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  z-index: 0;
}

.about--photo .about__image-box {
  background: #000;
}

.about--photo .about__image-photo {
  display: block;
}

.about__image-overlay {
  position: relative;
  z-index: 1;
}

.about__image-box::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,160,23,.15) 0%, transparent 70%);
}

.about--photo .about__image-box::before {
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 60%);
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  z-index: 1;
}

.about__image-box::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,160,23,.1) 0%, transparent 70%);
}

.about__image-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
}

.about__image-desc {
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  position: relative;
  z-index: 1;
}

.about__image-icon {
  color: var(--gold);
  opacity: .25;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.about__image-icon svg {
  width: 80px;
  height: 80px;
}

/* =============================================
   SERVICES SECTION — REDESIGNED
   ============================================= */
.services-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--warm) 0%, var(--warm-dark) 100%);
}

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

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 0;
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: flex;
  overflow: hidden;
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-dark) 100%);
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  border-color: rgba(212,160,23,.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212,160,23,.08);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card__icon {
  width: 72px;
  min-height: 72px;
  background: linear-gradient(135deg, rgba(0,0,0,.04) 0%, rgba(0,0,0,.08) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--navy);
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
}

.service-card__body {
  padding: 24px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.service-card__desc {
  color: var(--text-light);
  font-size: .85rem;
  line-height: 1.5;
  flex: 1;
}

.service-card__price {
  margin-top: 12px;
  font-weight: 700;
  color: var(--gold-dark);
  font-size: .95rem;
}

/* =============================================
   CATALOG PREVIEW (HOME)
   ============================================= */
.catalog-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--warm-dark) 0%, var(--warm) 40%, var(--white) 100%);
  position: relative;
  overflow: hidden;
}

.catalog-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
  justify-content: center;
}

.catalog-tab {
  padding: 10px 20px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-light);
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-main);
}

.catalog-tab:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.catalog-tab.active {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  border-color: var(--navy);
}

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

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.1);
  border-color: rgba(212,160,23,.2);
}

.product-card:hover .product-card__img {
  background: linear-gradient(135deg, var(--warm-dark) 0%, var(--warm) 100%);
}

.product-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--warm-dark);
  display: block;
}

.product-card__noimg {
  width: 100%;
  height: 200px;
  background: var(--warm-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: .85rem;
  text-align: center;
  padding: 16px;
}

.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,.7);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 2;
  letter-spacing: .3px;
}

.product-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__cat {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 8px;
}

.product-card__name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-card__desc {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.product-card__price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}

/* =============================================
   BRANCHES
   ============================================= */
.branches-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.branches-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 10% 90%, rgba(212,160,23,.06) 0%, transparent 40%),
    radial-gradient(ellipse at 90% 10%, rgba(255,255,255,.03) 0%, transparent 40%);
}

.branches-section .container {
  position: relative;
  z-index: 1;
}

.branches-section .section-title {
  color: var(--white);
}

.branches-section .section-subtitle {
  color: rgba(255,255,255,.6);
}

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

.branch-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
  backdrop-filter: blur(4px);
}

.branch-card:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(212,160,23,.3);
}

.branch-card__name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--gold);
}

.branch-card__row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  font-size: .9rem;
  color: rgba(255,255,255,.7);
  line-height: 1.5;
}

.branch-card__row-icon {
  flex-shrink: 0;
  width: 20px;
  display: flex;
  align-items: flex-start;
  padding-top: 2px;
  color: var(--gold);
  opacity: .7;
}

.branch-card__row-icon svg {
  width: 16px;
  height: 16px;
}

/* =============================================
   CONTACTS
   ============================================= */
.contacts-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--warm-dark) 0%, var(--warm) 50%, var(--white) 100%);
  position: relative;
  overflow: hidden;
}

.contacts-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,160,23,.06) 0%, transparent 70%);
  pointer-events: none;
}

.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contacts__info-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.contacts__info-desc {
  color: var(--text-light);
  margin-bottom: 32px;
  line-height: 1.6;
}

.contacts__item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.contacts__item-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}

.contacts__item-icon svg {
  width: 22px;
  height: 22px;
}

.contacts__item-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contacts__item-value {
  font-weight: 500;
  color: var(--text);
}

.contacts__item-value a {
  color: var(--navy);
}

.contacts__item-value a:hover {
  color: var(--gold);
}

.contacts__form-wrap {
  background: linear-gradient(145deg, var(--white) 0%, var(--warm) 100%);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,.04);
}

.contacts__form-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: .9rem;
  color: var(--text);
  background: var(--warm);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,160,23,.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b6b6b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.form-note {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* =============================================
   CTA BAR
   ============================================= */
.cta-bar {
  padding: 64px 0;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,255,255,.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(0,0,0,.05) 0%, transparent 50%);
}

.cta-bar .container {
  position: relative;
  z-index: 1;
}

.cta-bar__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.cta-bar__desc {
  color: rgba(255,255,255,.85);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.cta-bar .btn {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
  font-weight: 600;
}

.cta-bar .btn:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: linear-gradient(180deg, var(--navy-dark) 0%, #0a0a0a 100%);
  color: rgba(255,255,255,.7);
  padding: 60px 0 0;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer__brand-desc {
  font-size: .9rem;
  line-height: 1.6;
  margin-top: 16px;
  max-width: 280px;
}

.footer__col-title {
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
  font-size: .9rem;
}

.footer__col a,
.footer__col p {
  display: block;
  color: rgba(255,255,255,.6);
  font-size: .85rem;
  margin-bottom: 8px;
  transition: color var(--transition);
}

.footer__col a:hover {
  color: var(--gold);
}

.footer__bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

.footer__bottom a {
  color: rgba(255,255,255,.4);
}

.footer__bottom a:hover {
  color: var(--gold);
}

/* =============================================
   CATALOG PAGE
   ============================================= */
.catalog-page {
  padding-top: 110px;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--white) 0%, var(--warm) 200px);
}

.catalog-page__header {
  text-align: center;
  margin-bottom: 40px;
}

.catalog-page__header .section-title {
  margin-bottom: 8px;
}

.catalog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
  padding: 0 24px;
}

.catalog-search {
  display: flex;
  max-width: 400px;
  margin: 0 auto 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.catalog-search input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  font-family: var(--font-main);
  font-size: .9rem;
  outline: none;
  background: transparent;
}

.catalog-search button {
  padding: 12px 20px;
  background: var(--navy);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: .9rem;
  transition: background var(--transition);
}

.catalog-search button:hover {
  background: var(--navy-light);
}

.catalog-results {
  text-align: center;
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: 24px;
}

/* =============================================
   PRODUCT DETAIL PAGE
   ============================================= */
.product-page {
  padding-top: 110px;
  min-height: 100vh;
  padding-bottom: 60px;
  background: linear-gradient(180deg, var(--white) 0%, var(--warm) 200px);
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.product-detail__img-wrap {
  position: relative;
}

.product-detail__img {
  width: 100%;
  object-fit: contain;
  border-radius: var(--radius-lg);
  background: var(--warm-dark);
  display: block;
}

.product-detail__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(0,0,0,.7);
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  letter-spacing: .3px;
}

.product-detail__unavailable {
  background: #fff3cd;
  color: #856404;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: .9rem;
  margin-bottom: 20px;
  border: 1px solid #ffeeba;
}

.product-detail__cat {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 12px;
}

.product-detail__name {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.25;
}

.product-detail__price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
}

.product-detail__desc {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.product-detail__features {
  list-style: none;
  margin-bottom: 32px;
}

.product-detail__features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-detail__features li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

.product-detail__actions {
  display: flex;
  gap: 12px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: 24px;
}

.back-link:hover {
  color: var(--navy);
}

/* =============================================
   MODAL
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  padding: 24px;
}

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

.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  max-width: 420px;
  width: 100%;
  position: relative;
  transform: scale(.9);
  transition: transform var(--transition);
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

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

.modal-close:hover {
  color: var(--text);
}

.modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2e7d32;
}

.modal-icon svg {
  width: 28px;
  height: 28px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.modal-desc {
  color: var(--text-light);
  font-size: .9rem;
  line-height: 1.6;
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.anim {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}

.anim.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   LIGHTBOX (image fullscreen + zoom)
   ============================================= */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0,0,0,.92);
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }

.lightbox__close {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.lightbox__close:hover { background: rgba(255,255,255,.25); }

.lightbox__zoom-in,
.lightbox__zoom-out,
.lightbox__reset {
  position: absolute;
  z-index: 10;
  border: none;
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.lightbox__zoom-in:hover,
.lightbox__zoom-out:hover,
.lightbox__reset:hover { background: rgba(255,255,255,.25); }

.lightbox__zoom-in  { top: 16px; left: 20px; width: 44px; height: 44px; font-size: 1.4rem; font-weight: 700; }
.lightbox__zoom-out { top: 16px; left: 74px; width: 44px; height: 44px; font-size: 1.4rem; font-weight: 700; }
.lightbox__reset   { top: 16px; left: 128px; height: 44px; padding: 0 14px; font-size: .85rem; font-weight: 600; letter-spacing: .5px; }

.lightbox__track {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
  transition: transform .15s ease-out;
  will-change: transform;
  pointer-events: none;
}

@media (max-width: 480px) {
  .lightbox__zoom-in  { top: 12px; left: 12px; width: 38px; height: 38px; }
  .lightbox__zoom-out { top: 12px; left: 58px; width: 38px; height: 38px; }
  .lightbox__reset   { top: 12px; left: 104px; height: 38px; padding: 0 10px; font-size: .75rem; }
  .lightbox__close   { top: 12px; right: 12px; width: 38px; height: 38px; }
  .lightbox__img     { max-width: 96vw; max-height: 84vh; }
}

/* =============================================
   WHATSAPP FLOAT
   ============================================= */
.max-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(212,160,23,.4);
  z-index: 900;
  transition: all var(--transition);
  text-decoration: none;
}

.max-float:hover {
  transform: scale(1.08);
  color: var(--navy);
  box-shadow: 0 6px 24px rgba(212,160,23,.5);
}

.max-float svg {
  width: 28px;
  height: 28px;
  fill: var(--navy);
  stroke: var(--navy);
}

/* =============================================
   BACK TO TOP
   ============================================= */
.back-top {
  position: fixed;
  bottom: 24px;
  right: 92px;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 900;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

.back-top svg {
  width: 18px;
  height: 18px;
}

.back-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-top:hover {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  transform: translateY(-2px);
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* ---- Tablet landscape / small desktop (≤1024px) ---- */
@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }

  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .hero__content {
    max-width: 560px;
  }

  .about__image-box {
    min-height: 320px;
    padding: 36px;
  }
}

/* ---- Portrait tablet / large phone (≤768px) ---- */
@media (max-width: 768px) {
  html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
  }

  body.menu-open {
    overflow: hidden;
    touch-action: none;
    -webkit-overflow-scrolling: none;
  }

  .container {
    padding: 0 28px;
  }

  /* ---- Header ---- */
  .header {
    z-index: 1000;
  }

  .header__inner {
    height: 56px;
  }

  .logo {
    min-width: 0;
    gap: 10px;
  }

  .logo__mark {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  .logo__text {
    min-width: 0;
  }

  .logo__name {
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
  }

  .logo__sub {
    display: none;
  }

  .header__right {
    gap: 2px;
    flex-shrink: 0;
  }

  .header__nav {
    display: none;
  }

  .header__right .header__phone {
    display: none;
  }

  /* ---- Burger ---- */
  .burger {
    display: flex;
    z-index: 1201;
    padding: 10px;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    -webkit-tap-highlight-color: transparent;
  }

  .burger span {
    width: 22px;
    height: 2.5px;
    border-radius: 2px;
    transition: all .3s cubic-bezier(.4,0,.2,1);
  }

  .burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .burger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* ---- Mobile Nav Overlay ---- */
  .nav {
    display: flex;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--navy-dark);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    z-index: 1200;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s cubic-bezier(.4,0,.2,1);
    -webkit-tap-highlight-color: transparent;
  }

  .nav.active {
    max-height: 80vh;
    box-shadow: 0 12px 40px rgba(0,0,0,.4);
  }

  /* ---- Modal Card ---- */
  .nav__modal {
    padding: 8px 0;
    width: 100%;
  }

  .nav__link {
    display: block;
    font-size: 1.15rem;
    font-weight: 600;
    color: rgba(255,255,255,.8);
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,.05);
    transition: color .2s, background .2s, padding-left .2s;
    -webkit-tap-highlight-color: transparent;
    width: 100%;
    box-sizing: border-box;
  }

  .nav__link:last-child {
    border-bottom: none;
  }

  .nav__link:active,
  .nav__link:hover,
  .nav__link.active {
    color: var(--gold);
    background: rgba(212, 160, 23, .08);
    padding-left: 32px;
  }

  .nav__link::after {
    display: none;
  }

  /* ---- Hero ---- */
  .hero {
    padding-top: 56px;
    min-height: auto;
    padding-bottom: 36px;
  }

  .hero__content {
    padding-top: 44px;
    padding-bottom: 28px;
  }

  .hero__badge {
    font-size: .8rem;
    padding: 7px 14px;
  }

  .hero__title {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero__desc {
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero__info {
    flex-direction: column;
    gap: 10px;
  }

  .hero__info-item {
    padding: 12px 16px;
    font-size: .95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .hero__info-value {
    font-size: 1.05rem;
  }

  .hero__actions {
    flex-direction: column;
    gap: 10px;
  }

  .hero__actions .btn {
    padding: 16px 24px;
    font-size: 1rem;
    width: 100%;
    justify-content: center;
  }

  /* ---- About ---- */
  .about__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about__lead {
    font-size: 1.05rem;
  }

  .about__text {
    font-size: .95rem;
  }

  .about__image-box {
    min-height: 240px;
    padding: 24px;
  }

  .about__stats {
    gap: 12px;
  }

  .about__stat-num {
    font-size: 1.8rem;
  }

  .about__stat-label {
    font-size: .8rem;
  }

  /* ---- Services ---- */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .service-card {
    padding: 20px;
  }

  .service-card__title {
    font-size: 1.05rem;
  }

  .service-card__desc {
    font-size: .9rem;
  }

  .service-card__price {
    font-size: .9rem;
  }

  /* ---- Catalog preview ---- */
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .product-card__name {
    font-size: .9rem;
  }

  .product-card__desc {
    font-size: .8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-card__price {
    font-size: .9rem;
  }

  .catalog-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .catalog-tab {
    white-space: nowrap;
    padding: 8px 16px;
    font-size: .85rem;
  }

  /* ---- Branches ---- */
  .branches-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .branch-card {
    padding: 20px;
  }

  .branch-card__name {
    font-size: 1rem;
  }

  /* ---- Contacts ---- */
  .contacts__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contacts__form-wrap {
    padding: 24px 20px;
  }

  .contacts__item {
    padding: 14px 0;
  }

  .contacts__item-label {
    font-size: .8rem;
  }

  .contacts__item-value {
    font-size: .95rem;
  }

  /* ---- Sections ---- */
  .section-title {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: .95rem;
    margin-bottom: 28px;
  }

  /* ---- Product detail ---- */
  .product-detail {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-detail__name {
    font-size: 1.4rem;
  }

  .product-detail__price {
    font-size: 1.4rem;
  }

  .product-detail__actions {
    flex-direction: column;
  }

  .product-detail__actions .btn {
    width: 100%;
  }

  /* ---- Footer ---- */
  .footer__top {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer__col {
    gap: 8px;
  }

  .footer__col-title {
    font-size: .9rem;
  }

  .footer__col a {
    font-size: .9rem;
  }

  .footer__brand-desc {
    font-size: .9rem;
    margin-top: 12px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 20px 0;
  }

  /* ---- Modal ---- */
  .modal-box {
    width: 90%;
    max-width: 360px;
    padding: 32px 24px;
  }

  /* ---- Floating buttons ---- */
  .max-float {
    width: 52px;
    height: 52px;
    bottom: 20px;
    right: 16px;
  }

  .back-top {
    width: 44px;
    height: 44px;
    bottom: 20px;
    right: 76px;
  }

  .back-top svg {
    width: 20px;
    height: 20px;
  }
}

/* ---- Small phone (≤480px) ---- */
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .header__inner {
    height: 52px;
  }

  .logo__mark {
    width: 32px;
    height: 32px;
  }

  .logo__text {
    display: none;
  }

  .hero__title {
    font-size: 1.6rem;
  }

  .hero__badge {
    font-size: .75rem;
    padding: 6px 12px;
  }

  .hero__content {
    padding-top: 36px;
    padding-bottom: 24px;
  }

  .hero__desc {
    font-size: .9rem;
  }

  .hero__info-item {
    font-size: .85rem;
    padding: 10px 14px;
  }

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

  .product-card__name {
    font-size: .85rem;
  }

  .product-card__price {
    font-size: .85rem;
  }

  .about__lead {
    font-size: .95rem;
  }

  .about__image-title {
    font-size: 1.15rem;
  }

  .about__stat-num {
    font-size: 1.6rem;
  }

  .section-title {
    font-size: 1.35rem;
  }

  .section-subtitle {
    font-size: .9rem;
    margin-bottom: 24px;
  }

  .service-card {
    padding: 16px;
  }

  .branch-card {
    padding: 16px;
  }

  .contacts__form-wrap {
    padding: 16px;
  }

  .catalog-filter {
    gap: 6px;
    padding: 0 8px;
    margin-bottom: 20px;
  }

  .catalog-filter .catalog-tab {
    padding: 7px 12px;
    font-size: .8rem;
  }
}

/* ---- Extra small (≤360px) ---- */
@media (max-width: 360px) {
  .container {
    padding: 0 12px;
  }

  .logo__name {
    font-size: .85rem;
    max-width: 110px;
  }

  .hero__title {
    font-size: 1.3rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .about__image-box {
    min-height: 200px;
    padding: 20px;
  }

  .catalog-page {
    padding-top: 90px;
  }

  .product-page {
    padding-top: 90px;
  }
}

/* ---- Landscape phones (max-height:500px and width>480px) ---- */
@media (max-height: 500px) and (min-width: 481px) {
  .hero {
    min-height: auto;
    padding-bottom: 32px;
  }

  .hero__content {
    padding-top: 80px;
    padding-bottom: 24px;
  }

  .nav {
    gap: 16px;
  }

  .nav__link {
    font-size: 1rem;
  }
}

/* ---- Large desktop (≥1400px) ---- */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* ---- Touch devices: remove hover transforms ---- */
@media (hover: none) {
  .product-card:hover {
    transform: none;
  }

  .btn:hover {
    transform: none;
  }

  .service-card:hover {
    transform: none;
  }

  .branch-card:hover {
    transform: none;
  }
}

/* ---- Print ---- */
@media print {
  .header, .max-float, .back-top, .burger, .nav, .modal-overlay, .whatsapp-float {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 20px 0;
    background: #fff;
    color: #000;
  }

  body {
    background: #fff;
  }
}
