:root {
  --bg-dark: #1a1a1a;
  --bg-darker: #0f0f0f;
  --text-light: #e5e5e5;
  --accent: #a89968;
  --accent-light: #c4b5a0;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --shadow-dark: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-light: 0 8px 32px rgba(0, 0, 0, 0.2);
  --section-gap: 8rem;  /* ← ЕДИНЫЙ ОТСТУП ДЛЯ ВСЕХ */
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
  color: var(--text-light);
  line-height: 1.6;
  min-height: 100vh;
}

/* HEADER */

header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(15, 15, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  box-shadow: var(--shadow-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

/* ГЛОБАЛЬНЫЕ СЕКЦИИ */

section {
  padding: var(--section-gap) 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* HERO */

.hero {
  margin-top: 80px;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-logo {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 1rem;
}

.hero-logo a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.hero-logo a:hover {
  color: var(--accent);
}

.hero-subtitle a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.hero-subtitle a:hover {
  color: var(--accent);
}

/* ABOUT */

.about-section {
  padding-top: var(--section-gap);  /* ← ОДИНАКОВОЕ РАССТОЯНИЕ */
}

.about-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.about-photo img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

.about-content h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.about-role {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.about-text {
  font-size: 1rem;
  line-height: 1.8;
}

/* ПОРТФОЛИО */

.portfolio-section {
  padding-top: var(--section-gap);  /* ← ОДИНАКОВОЕ РАССТОЯНИЕ */
  padding-bottom: 5rem;
}

.portfolio-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.portfolio-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.portfolio-tab {
  padding: 0.75rem 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-light);
  cursor: pointer;
  border-radius: 25px;
  font-size: 0.95rem;
  min-width: 200px;
  transition: all 0.3s ease;
}

.portfolio-tab:hover {
  background: rgba(168, 153, 104, 0.2);
  border-color: var(--accent);
}

.portfolio-tab.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.portfolio-description {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-light);
  margin-top: 3rem;
  margin-bottom: 2rem;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s ease;
}

.portfolio-description.visible {
  opacity: 1;
  max-height: 100px;
  margin-top: 3rem;
}

.portfolio-grid {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.portfolio-grid.visible {
  display: grid;
}

.portfolio-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  cursor: pointer;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item img:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

/* ЛАЙТБОКС */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 18px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(15, 15, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 999px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(18px);
}

.lightbox-close {
  top: 24px;
  right: 24px;
  font-size: 1.6rem;
}

.lightbox-prev {
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
}

/* ЦЕНЫ */

.prices-section {
  padding-top: var(--section-gap);  /* ← ОДИНАКОВОЕ РАССТОЯНИЕ */
  padding-bottom: 2.5rem;
}

.prices-section h2 {
  text-align: center;
  margin-bottom: 1.8rem;
  font-size: 2.5rem;
}

.prices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.price-card {
  padding: 1.5rem;
  border-radius: 20px;
}

.price-card h3 {
  margin-bottom: 0.8rem;
}

.price-value {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0.4rem 0 0.8rem;
  color: var(--accent);
}

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
}

/* КОНТАКТЫ */

.contact-section {
  padding-top: var(--section-gap);  /* ← ОДИНАКОВОЕ РАССТОЯНИЕ */
  padding-bottom: 3rem;
  text-align: center;
}

.contact-title {
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
}

.contact-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
}

.contact-column h3 {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.contact-column p a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-column p a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* FOOTER */

.footer {
  text-align: center;
  padding: 1.2rem 0 1.5rem;
  font-size: 0.9rem;
  opacity: 0.7;
  border-top: 1px solid var(--glass-border);
  margin-top: 1rem;
}

/* АДАПТИВ */

@media (max-width: 768px) {
  :root {
    --section-gap: 5rem;  /* Меньше на мобильных */
  }

  header {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    gap: 1rem;
    font-size: 0.85rem;
  }

  section {
    padding: var(--section-gap) 1.5rem;
  }

  .hero-logo {
    font-size: 2.5rem;
  }

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

  .contact-columns {
    gap: 1.5rem;
  }
}