@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('./fonts/montserrat-300.ttf') format('truetype');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/montserrat-400.ttf') format('truetype');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/montserrat-500.ttf') format('truetype');
}

@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/playfair-display-400-italic.ttf') format('truetype');
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/playfair-display-400.ttf') format('truetype');
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/playfair-display-600.ttf') format('truetype');
}

:root {
  /* Премиальная палитра: Тихая роскошь */
  --bg-color: #fcfbf9;       /* Светло-кремовый, почти белый */
  --surface: #ffffff;        /* Чисто белый для карточек */
  --text-main: #2c2a29;      /* Графитовый, мягче чистого черного */
  --text-muted: #8c857d;     /* Теплый серый/Тауп */
  --accent: #b49b78;         /* Приглушенное золото / Шампань */
  --accent-hover: #9c8463;   /* Чуть темнее для ховера */
  --border: #ece8e1;         /* Мягкие линии */
  
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Montserrat', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.6;
}

h1, h2, h3, .logo-text {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--text-main);
}

/* Навигация (вместо старого сайдбара) */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background: rgba(252, 251, 249, 0.95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo-text {
  font-size: 1.5rem;
  text-decoration: none;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  max-width: 78%;
}

.nav-links a,
.nav-more summary {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.3s;
  position: relative;
  white-space: nowrap;
}

.nav-links a::after,
.nav-more summary::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-more summary:hover::after {
  width: 100%;
}

.nav-more {
  position: relative;
}

.nav-more summary {
  list-style: none;
  cursor: pointer;
}

.nav-more summary::-webkit-details-marker {
  display: none;
}

.nav-more-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 240px;
  display: grid;
  gap: 0.35rem;
  padding: 0.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(44, 42, 41, 0.08);
}

.nav-more:not([open]) .nav-more-menu {
  display: none;
}

.nav-more-menu a {
  font-size: 0.68rem;
  padding: 0.3rem 0;
}

.main-content {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

/* Главный экран (Hero) */
.hero {
  text-align: center;
  padding: 6rem 0 5rem;
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero .lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid var(--accent);
}

.btn.primary {
  background: var(--accent);
  color: #fff;
}

.btn.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn.ghost {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border);
}

.btn.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Статистика в Hero */
.hero-highlight {
  display: flex;
  justify-content: center;
  gap: 5vw;
  margin-top: 5rem;
  padding-top: 4rem;
  border-top: 1px solid var(--border);
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Информационные карточки */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 5rem 0;
}

.info-card {
  background: var(--surface);
  padding: 2.5rem 2rem;
  border: 1px solid var(--border);
  text-align: center;
  transition: border-color 0.4s ease;
}

.info-card:hover {
  border-color: var(--accent);
}

.info-card .icon-wrapper {
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.info-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.info-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.info-link {
  display: inline-block;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: color 0.3s;
}

.info-link:hover {
  color: var(--accent);
}

/* Секции контента */
.content {
  max-width: 800px;
  margin: 5rem auto;
}

.map-embed {
  display: flex;
  justify-content: center;
}

.map-embed-inner {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  width: 560px;
}

.map-embed-inner-connect {
  width: min(100%, 920px);
}

.map-embed-label {
  color: #eee;
  font-size: 12px;
  position: absolute;
  left: 0;
  z-index: 1;
}

.map-embed-label-top {
  top: 0;
}

.map-embed-label-second {
  top: 14px;
}

.map-embed-frame {
  display: block;
  width: 100%;
  height: 400px;
  border: 0;
}

.map-embed-connect {
  margin-top: 2.5rem;
}

.content h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.content h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: 1.5rem auto 0;
}

.section-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3rem;
}

.section-heading h2 {
  margin-bottom: 1rem;
}

.section-heading h2::after {
  display: none; /* Убираем черту, если есть бейдж */
}

.badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.kittens-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 0; /* Острые углы для журнального стиля */
  display: block;
  margin: 2rem auto;
}

.news-list {
  display: grid;
  gap: 2rem;
}

.news-card {
  padding: 0;
  border: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2rem;
  background: transparent;
}

.news-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.news-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  font-weight: 300;
}

/* Контакты */
#connect-text {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-icon {
  font-size: 1.2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  text-decoration: none;
  color: var(--text-main);
  background: var(--surface);
}

.contact-icon:hover {
  border-color: var(--accent);
  color: var(--surface);
  background: var(--accent);
  transform: translateY(-3px);
}

.location {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
}

.gtm-noscript-frame {
  display: none;
  visibility: hidden;
}

.yandex-noscript-pixel {
  position: absolute;
  left: -9999px;
}

footer {
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  padding: 2rem 5%;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* Мобильная навигация */
.mobile-nav {
  display: none;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hero-highlight {
    flex-direction: column;
    gap: 3rem;
  }

  .mobile-nav {
    display: flex;
    justify-content: space-between;
    gap: 0.15rem;
    padding: 0.85rem 0.35rem;
    background-color: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--border);
    position: fixed;
    bottom: 0;
    width: 100%;
    left: 0;
    z-index: 1000;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .mobile-nav a {
    flex: 1;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
    line-height: 1.1;
  }

  .mobile-nav a svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  body {
    padding-bottom: 70px;
  }

  .map-embed-inner-connect {
    width: 100%;
  }

  .map-embed-frame {
    height: 320px;
  }
}
