/* =====================
   RESET & BASE
   ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:    #fdf8f3;
  --beige:    #f5ece0;
  --beige2:   #ede0d0;
  --sand:     #d9cab8;
  --brown:    #a08060;
  --dark:     #3a2e24;
  --muted:    #7a6a58;
  --white:    #ffffff;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Jost', sans-serif;
  --ease: cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--dark);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* =====================
   HEADER
   ===================== */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}

#header.scrolled {
  background: rgba(253,248,243,.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--sand);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left, .nav-right {
  display: flex;
  gap: 36px;
}

.nav-left a, .nav-right a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .25s;
}

.nav-left a:hover, .nav-right a:hover { color: var(--dark); }

.logo {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--dark);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

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

.burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--dark);
  transition: transform .3s, opacity .3s;
}

.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(253,248,243,.98);
  backdrop-filter: blur(12px);
  padding: 16px 32px 28px;
  border-top: 1px solid var(--beige2);
}

.mobile-menu.open { display: flex; }

.mob-link {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 0;
  border-bottom: 1px solid var(--beige);
  transition: color .25s;
}

.mob-link:last-child { border-bottom: none; }
.mob-link:hover { color: var(--dark); }

/* =====================
   HERO
   ===================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cream) 0%, var(--beige) 60%, var(--beige2) 100%);
  text-align: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 100px 24px 60px;
}

.hero-sub {
  font-size: 12px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--brown);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(56px, 9vw, 120px);
  font-weight: 300;
  line-height: 1.05;
  color: var(--dark);
}

.hero-title em {
  font-style: italic;
  color: var(--brown);
}

.hero-desc {
  font-size: 16px;
  color: var(--muted);
  max-width: 420px;
  line-height: 1.7;
}

.btn-outline {
  display: inline-block;
  margin-top: 12px;
  padding: 14px 40px;
  border: 1px solid var(--brown);
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--brown);
  transition: background .3s, color .3s;
}

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

.hero-deco { position: absolute; inset: 0; pointer-events: none; }

.deco-circle {
  position: absolute;
  border-radius: 50%;
  opacity: .35;
}

.c1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--sand) 0%, transparent 70%);
  top: -200px; right: -150px;
}

.c2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--beige2) 0%, transparent 70%);
  bottom: -100px; left: -100px;
}

.c3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--sand) 0%, transparent 70%);
  top: 40%; left: 15%;
}

/* =====================
   LANG SWITCHER
   ===================== */
.lang-switcher {
  display: flex;
  gap: 4px;
  margin-left: 20px;
}

.lang-btn {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: .1em;
  padding: 4px 9px;
  border: 1px solid var(--sand);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}

.lang-btn:hover { color: var(--dark); border-color: var(--brown); }

.lang-btn.active {
  background: var(--dark);
  color: var(--cream);
  border-color: var(--dark);
}

.lang-switcher-mobile {
  display: flex;
  gap: 8px;
  padding: 14px 0 4px;
}

.lang-switcher-mobile .lang-btn { font-size: 12px; padding: 6px 14px; }

/* =====================
   BADGES
   ===================== */
.badges {
  background: var(--dark);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.badge {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px;
  border-right: 1px solid rgba(255,255,255,.08);
  text-align: center;
}

.badge:last-child { border-right: none; }

.badge-num {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 300;
  color: var(--sand);
  line-height: 1;
}

.badge-text {
  font-size: 12px;
  letter-spacing: .06em;
  color: rgba(255,255,255,.5);
  margin-top: 8px;
  line-height: 1.5;
}

/* =====================
   SECTION COMMONS
   ===================== */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 300;
  color: var(--dark);
  line-height: 1.1;
}

/* =====================
   SERVICES
   ===================== */
.services {
  padding: 100px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--sand);
  border: 1px solid var(--sand);
  max-width: 800px;
  margin: 0 auto;
}

.service-card {
  background: var(--cream);
  padding: 48px 36px;
  transition: background .3s;
}

.service-card:hover { background: var(--beige); }

.service-icon {
  font-size: 18px;
  color: var(--brown);
  margin-bottom: 20px;
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.services-note {
  margin-top: 40px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  padding: 20px;
  border: 1px solid var(--beige2);
  line-height: 1.8;
}

/* =====================
   PRICES
   ===================== */
.prices {
  background: var(--beige);
  padding: 100px 32px;
}

.prices .section-header { margin-bottom: 64px; }

.price-single {
  max-width: 480px;
  margin: 0 auto;
}

.price-category {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--sand);
  text-align: center;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid var(--beige2);
  font-size: 16px;
}

.price-row span:first-child { white-space: nowrap; color: var(--dark); }

.dots {
  flex: 1;
  border-bottom: 1px dotted var(--sand);
  margin-bottom: 4px;
}

.price-val {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--brown);
  white-space: nowrap;
}

/* =====================
   PORTFOLIO
   ===================== */
.portfolio {
  padding: 100px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 280px 280px;
  gap: 12px;
}

.port-item {
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  transition: transform .4s var(--ease);
  background: var(--beige2);
}

.port-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease);
}

.port-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(58,46,36,.25) 100%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}

.port-item:hover { transform: scale(1.02); }
.port-item:hover img { transform: scale(1.05); }
.port-item:hover::after { opacity: 1; }

.port-tall { grid-row: span 2; }
.port-wide { grid-column: span 2; }

.portfolio-hint {
  text-align: center;
  margin-top: 32px;
  font-size: 14px;
  color: var(--muted);
}

.portfolio-hint a {
  color: var(--brown);
  border-bottom: 1px solid var(--sand);
  transition: border-color .2s;
}

.portfolio-hint a:hover { border-color: var(--brown); }

/* =====================
   STERILIZATION
   ===================== */
.sterilization {
  background: var(--dark);
  padding: 100px 32px;
}

.steril-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.steril-inner .section-label { color: var(--sand); }
.steril-inner .section-title { color: var(--cream); }

.steril-desc {
  font-size: 15px;
  color: rgba(255,255,255,.6);
  margin: 24px 0 28px;
  line-height: 1.8;
}

.steril-desc strong { color: var(--sand); font-weight: 400; }

.steril-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.steril-list li {
  font-size: 14px;
  color: rgba(255,255,255,.55);
  padding-left: 20px;
  position: relative;
}

.steril-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--brown);
}

.steril-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 4px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.steril-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.step-num {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 300;
  color: var(--brown);
  line-height: 1;
  flex-shrink: 0;
  width: 48px;
}

.step-info strong {
  display: block;
  font-size: 15px;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 4px;
}

.step-info p {
  font-size: 13px;
  color: rgba(255,255,255,.45);
}

/* =====================
   BRANDS
   ===================== */
.brands {
  padding: 60px 32px;
  background: var(--beige);
}

.brands-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 48px;
  margin-top: 24px;
}

.brands-row span {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 300;
  letter-spacing: .12em;
  color: var(--muted);
  transition: color .25s;
}

.brands-row span:hover { color: var(--dark); }


/* =====================
   CONTACTS
   ===================== */
.contacts {
  background: var(--beige);
  padding: 100px 32px;
}

.contacts .section-header { margin-bottom: 64px; }

.contacts-grid {
  max-width: 400px;
  margin: 0 auto;
}

.contact-card {
  background: var(--cream);
  padding: 48px 40px;
  border: 1px solid var(--beige2);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.social-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  color: var(--muted);
  border: 1px solid var(--beige2);
  transition: color .25s, border-color .25s, background .25s;
}

.social-item:hover {
  color: var(--brown);
  border-color: var(--brown);
  background: var(--beige);
}

.social-item svg { flex-shrink: 0; }

/* =====================
   FOOTER
   ===================== */
.footer {
  background: var(--dark);
  padding: 60px 32px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 300;
  letter-spacing: .25em;
  color: var(--sand);
}

.footer-tagline {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin: 16px 0;
}

.footer-links a {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  transition: color .25s;
}

.footer-links a:hover { color: var(--sand); }

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,.2);
  margin-top: 8px;
}

/* =====================
   ANIMATIONS
   ===================== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children */
.services-grid .fade-up:nth-child(1) { transition-delay: .0s; }
.services-grid .fade-up:nth-child(2) { transition-delay: .08s; }
.services-grid .fade-up:nth-child(3) { transition-delay: .16s; }
.services-grid .fade-up:nth-child(4) { transition-delay: .24s; }
.services-grid .fade-up:nth-child(5) { transition-delay: .32s; }
.services-grid .fade-up:nth-child(6) { transition-delay: .40s; }

.badges .fade-up:nth-child(1) { transition-delay: .0s; }
.badges .fade-up:nth-child(2) { transition-delay: .1s; }
.badges .fade-up:nth-child(3) { transition-delay: .2s; }
.badges .fade-up:nth-child(4) { transition-delay: .3s; }

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 1024px) {
  .steril-inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .nav-left, .nav-right { display: none; }
  .burger { display: flex; }
  .logo { position: static; transform: none; font-size: 24px; }
  .header-inner { justify-content: space-between; }

  .services-grid { grid-template-columns: 1fr; max-width: 100%; }

  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px 200px;
  }
  .port-tall { grid-row: span 1; }
  .port-wide { grid-column: span 2; }

  .contacts-grid { grid-template-columns: 1fr; }
  .contact-social { grid-column: span 1; }

  .badges { flex-direction: column; }
  .badge { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); padding: 28px; }
  .badge:last-child { border-bottom: none; }
}
