:root {
  --bg: #ffffff;
  --bg-cream: #f5f2ea;
  --bg-dim: #1c2a38; /* Deep Blue */
  --text: #333333;
  --text-light: #f5f2ea;
  --accent: #d4af37; /* Gold */
  --border: #e2e8f0;
  --container: 1100px;
  --font-serif: "Playfair Display", serif;
  --font-sans: "Inter", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}
.section {
  padding: 120px 0;
  border-bottom: 1px solid var(--border);
}
.bg-cream {
  background-color: var(--bg-cream);
}
.bg-dim {
  background-color: var(--bg-dim);
  color: var(--text-light);
}
.center {
  text-align: center;
}
.narrow {
  max-width: 800px;
  margin: 0 auto;
}
.max-800 {
  max-width: 800px;
  margin: 0 auto;
}

/* Typography */
h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--bg-dim);
  line-height: 1.1;
}
.bg-dim h2,
.bg-dim h3 {
  color: #fff;
}
h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  letter-spacing: -2px;
}
h1 em {
  color: var(--accent);
  font-style: italic;
}
h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 2rem;
}
.label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  display: block;
  margin-bottom: 1rem;
}
.badge {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

/* Header */
.header {
  height: 90px;
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border);
  transition: 0.3s;
}
.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--bg-dim);
  display: flex;
  justify-content: center;
  align-items: center;
}
.logo-footer {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--bg-cream);
}
.logo-footer span {
  color: var(--accent);
}
.logo span {
  color: var(--accent);
}

.nav__list {
  list-style: none;
  display: flex;
  gap: 35px;
}
.nav__link {
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  transition: 0.3s;
}
.nav__link:hover {
  color: var(--accent);
}

.header__side {
  display: flex;
  align-items: center;
  gap: 20px;
}
.btn-gold {
  padding: 8px 24px;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.burger {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
}
.burger span {
  width: 30px;
  height: 1px;
  background: var(--bg-dim);
}

/* Menu Panel */
.menu-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-dim);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}
.menu-panel.active {
  display: flex;
}
.menu-panel__close {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 3rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}
.menu-panel__nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: center;
}
.menu-panel__nav a {
  font-size: 2rem;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-serif);
}

/* Hero */
.hero-editorial {
  min-height: 100vh;
  padding: 180px 0 100px;
  display: flex;
  align-items: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
}
.hero-essay {
  max-width: 600px;
  border-left: 2px solid var(--accent);
  padding-left: 30px;
  margin: 2rem 0 3rem;
}
.btn-main {
  padding: 20px 45px;
  background: var(--bg-dim);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: 0.3s;
}
.btn-main:hover {
  background: var(--accent);
  transform: translateY(-5px);
}

.image-slice {
  position: relative;
  overflow: hidden;
}
.hero-btns {
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-slice img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 20px 20px 0 var(--bg-cream);
}
.slice-deco {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  border: 1px solid var(--accent);
  z-index: -1;
}

/* Case Laboratory */
.lab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}
.lab-card {
  padding: 40px;
  border: 1px solid var(--border);
  transition: 0.4s;
}
.lab-card:hover {
  border-color: var(--accent);
  transform: translateY(-10px);
  background: var(--bg-cream);
}
.lab-card__num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0.5;
}

/* Process */
.process-vertical {
  max-width: 700px;
  margin-top: 60px;
}
.process-step {
  display: flex;
  gap: 40px;
  margin-bottom: 60px;
  position: relative;
}
.step-line {
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin-top: 15px;
  flex-shrink: 0;
}
.process-step h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

/* Pillars Split */
.pillars-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.abstract-shape {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--accent);
  border-radius: 50% 20% 50% 20%;
  background-image: url("./images/устойчивость.jpg");
  background-position: center;
  background-size: cover;
}

/* Accordion */
.accordion {
  margin-top: 50px;
}
.acc-item {
  border-bottom: 1px solid var(--border);
}
.acc-btn {
  width: 100%;
  padding: 30px 0;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--bg-dim);
}
.acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: 0.4s;
}
.acc-panel p {
  padding-bottom: 30px;
  color: var(--text);
}
.acc-item.active .acc-btn i {
  transform: rotate(45deg);
  color: var(--accent);
}

/* Form Engineering Slab */
.form-slab {
  background: #fff;
  padding: 80px;
  border-radius: 4px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.05);
  border-left: 10px solid var(--accent);
}
.column-form {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 40px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
}
.form-group input {
  padding: 18px;
  border: 1px solid var(--border);
  background: var(--bg-cream);
  font-family: inherit;
  font-size: 1rem;
}
.captcha-row {
  flex-direction: row;
  align-items: center;
  gap: 20px;
}
.captcha-row input {
  width: 100px;
}
.form-check {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}
.form-check a {
  text-decoration: underline;
  color: var(--accent);
}
.form-check input {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  accent-color: var(--accent);
}
.btn-submit {
  padding: 25px;
  background: var(--bg-dim);
  color: #fff;
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  cursor: pointer;
  transition: 0.3s;
}
.btn-submit:hover {
  background: var(--accent);
}

/* Footer */
.footer {
  padding: 100px 0 50px;
  background: var(--bg-dim);
  color: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 80px;
  margin-bottom: 60px;
}
.footer-col h6 {
  color: var(--accent);
  margin-bottom: 30px;
  letter-spacing: 2px;
}
.footer-col p {
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.legal a {
  display: block;
  color: #888;
  text-decoration: none;
  margin-bottom: 12px;
  font-size: 0.8rem;
}
.footer-bottom {
  border-top: 1px solid #2a3b4c;
  padding-top: 40px;
  font-size: 0.8rem;
  color: #555;
}

/* Cookie */
.cookie-popup {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background: #fff;
  color: var(--bg-dim);
  padding: 30px;
  z-index: 5000;
  display: none;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.btn-cookie {
  padding: 10px 20px;
  background: var(--bg-dim);
  color: #fff;
  border: none;
  font-weight: 700;
  cursor: pointer;
  margin-top: 20px;
  width: 100%;
}

@media (max-width: 1024px) {
  .nav {
    display: none;
  }
  .burger {
    display: flex;
  }
  .hero-grid,
  .lab-grid,
  .pillars-split,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .hero-text {
    text-align: center;
  }
  .hero-essay {
    margin: 2rem auto;
    border-left: none;
    border-top: 2px solid var(--accent);
    padding-top: 20px;
    padding-left: 0;
  }
  .form-slab {
    padding: 40px 20px;
  }
}

.pages {
  padding: 120px 0;
}

.pages-wrap {
  max-width: 1000px;
  padding: 0 20px;
  margin: 0 auto 20px;
}

.pages h1 {
  font-size: 40px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 40px;
  text-align: center;
}

.text-wrapper {
  background: #f8fafc;
  padding: 50px 40px;
  border-radius: 20px;
  line-height: 1.8;
}

.text-wrapper h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 40px;
  margin-bottom: 15px;
  border-bottom: 2px solid rgba(99, 102, 241, 0.2);
  padding-bottom: 5px;
}

.text-wrapper h3 {
  color: #000000;
  margin-bottom: 20px;
}

.text-wrapper p {
  color: #64748b;
  margin-bottom: 20px;
}

.text-wrapper ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.text-wrapper ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 15px;
  color: #1e293b;
}

.text-wrapper ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  font-size: 20px;
  line-height: 1;
  color: var(--primary);
  top: 0;
}

.text-wrapper strong {
  color: var(--color-error);
}

.text-wrapper a {
  color: #001eff;
  text-decoration: underline;
  font-weight: 600;
}

.text-wrapper ol {
  display: flex;
  flex-direction: column;
  padding: 20px;
  color: #000000;
}

.margin {
  margin: 120px 0 50px;
  font-size: 40px;
  color: var(--accent);
}

@media (max-width: 768px) {
  .pages {
    padding: 100px 0 60px;
  }
  .pages h1 {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .text-wrapper {
    padding: 30px 20px;
  }
  .text-wrapper h2 {
    font-size: 24px;
    margin-top: 30px;
  }
  .margin {
    font-size: 28px;
  }
}
