@import url('https://googleapis.com');

:root {
  --bg-primary: #111112;      /* Глубокий тёмный графитовый фон */
  --bg-secondary: #19191B;    /* Фон для выделенных секций и карточек */
  --bg-card: #222225;         /* Фон для плейсхолдера карты и блоков */
  --text-main: #F3F1ED;       /* Тёплый светлый текст */
  --text-muted: #9E9B95;      /* Приглушённый серый текст */
  --accent: #C59B76;          /* Благородный бронзово-золотой акцент */
  --accent-hover: #D4AD8A;
  --border: #2B2B2E;          /* Тёмная разделительная линия */
  --corner-color: rgba(197, 155, 118, 0.55); /* Цвет декоративных уголков */
}

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

body {
  font-family: 'Manrope', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
}

h1, h2, h3, .logo-slogan {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 1.15;
}

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

/* Декоративные уголки вокруг заголовков и элементов */
.corner-box {
  position: relative;
  display: inline-block;
  padding: 8px 14px;
}

.corner-box::before,
.corner-box::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--corner-color);
  border-style: solid;
  pointer-events: none;
  transition: border-color 0.2s;
}

.corner-box::before {
  top: 0;
  left: 0;
  border-width: 1px 0 0 1px;
}

.corner-box::after {
  bottom: 0;
  right: 0;
  border-width: 0 1px 1px 0;
}

.corner-box:hover::before,
.corner-box:hover::after {
  border-color: var(--accent);
}

/* Шапка и навигация */
header {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  background: rgba(17, 17, 18, 0.95);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.brand {
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.brand-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.05em;
  display: inline-block;
  padding: 4px 12px;
}

.logo-slogan {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  padding-left: 4px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

nav a:not(.btn) {
  text-decoration: none;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:not(.btn):hover,
nav a:not(.btn).active {
  color: var(--accent);
}

/* Кнопки */
.btn {
  display: inline-block;
  padding: 13px 26px;
  background-color: var(--accent);
  color: #111112;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: all 0.2s;
}

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

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

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--accent);
  color: var(--accent);
}

/* Секции главной страницы */
.hero {
  padding: 90px 0;
  text-align: center;
}

.hero h1 {
  font-size: 54px;
  margin-bottom: 20px;
  padding: 14px 26px;
}

.hero-subtitle {
  max-width: 620px;
  margin: 0 auto 36px;
  color: var(--text-muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.location-section {
  padding: 70px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

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

.location-title {
  font-size: 38px;
  margin-bottom: 20px;
  padding: 10px 18px;
}

.location-text {
  margin-bottom: 12px;
  font-size: 16px;
}

.location-hours {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 15px;
}

.map-placeholder {
  background: var(--bg-card);
  border: 1px solid var(--border);
  height: 340px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

/* Заголовки внутренних страниц */
.page-header {
  padding: 60px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: 46px;
  margin-bottom: 14px;
  padding: 12px 24px;
}

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

/* Сетка карточек курсов (строго 2 столбца) */
.courses-section {
  padding: 70px 0;
}

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

.course-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.course-card > div:first-child {
  display: flex;
  flex-direction: column;
}

.course-badge {
  display: block;
  text-align: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 600;
}

.course-card h3 {
  font-size: 30px;
  margin-bottom: 16px;
  padding: 6px 16px;
  align-self: center;
  text-align: center;
}

.course-desc {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 20px;
  text-align: left;
}

.course-program {
  list-style: none;
  margin-bottom: 28px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  text-align: left;
}

.course-program li {
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 10px;
  padding-left: 16px;
  position: relative;
}

.course-program li::before {
  content: '•';
  color: var(--accent);
  position: absolute;
  left: 0;
}

.course-footer {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.course-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--accent);
}

.course-duration {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}
/* Страница контактов */
.contacts-section {
  padding: 70px 0;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.contact-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 36px 32px;
}

.contact-card h2 {
  font-size: 32px;
  margin-bottom: 24px;
  padding: 6px 14px;
}

.contact-info-list {
  list-style: none;
  margin-bottom: 32px;
}

.contact-info-list li {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.contact-info-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-label {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-value {
  font-size: 18px;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

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

.social-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.social-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(197, 155, 118, 0.06);
}

.social-btn-primary {
  grid-column: span 2;
  background: var(--accent);
  color: #111112;
  border-color: var(--accent);
  font-weight: 600;
}

.social-btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #111112;
}

.map-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  height: 100%;
  min-height: 440px;
  display: flex;
  flex-direction: column;
}

.map-frame {
  flex: 1;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  padding: 20px;
  text-align: center;
}

/* Встроенный виджет Яндекс.Карт */
.yandex-map-widget {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: none;
  display: block;
  filter: invert(90%) hue-rotate(180deg) contrast(95%);
}

/* Галерея работ */
.gallery-section {
  padding: 60px 0 80px;
}

.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 11px 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(197, 155, 118, 0.08);
}

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

.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(17, 17, 18, 0.92), transparent);
  color: var(--text-main);
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
}

/* Полноэкранный просмотр фото (Лайтбокс) */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 10, 11, 0.94);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  border: 1px solid var(--accent);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-secondary);
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  display: block;
  margin: 0 auto;
}

.lightbox-text {
  padding: 14px 20px;
  font-size: 15px;
  color: var(--text-main);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 30px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-main);
  font-size: 26px;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.lightbox-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Подвал */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* Адаптивность для мобильных экранов */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 38px;
  }
  .location-grid,
  .cards-grid,
  .contacts-grid,
  .social-buttons {
    display: flex;
    flex-direction: column;
  }
  .contact-card,
  .map-container {
    width: 100%;
    min-width: 0;
  }
  .map-container {
    min-height: 360px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
