:root {
  --bg: #050505;
  --surface: #121212;
  --surface-accent: #1a1a1a;
  --accent: #ff4e00;
  --accent-muted: #8a2b00;
  --text: #ffffff;
  --text-muted: #888888;
  --text-secondary: #888888;
  --line: rgba(255, 255, 255, 0.1);
  --f-sans: "Roboto", system-ui, -apple-system, sans-serif;
  --f-mono: ui-monospace, "Cascadia Code", "Consolas", "Liberation Mono", monospace;
  --f-serif: "Roboto", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

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

.section {
  padding: 8rem 0;
}

/* Tighten spacing around CTA / team / partners */
#team.section {
  padding-top: 0px;
  padding-bottom: 0px;
}

#cta.section {
  padding: 6rem 0;
}

#partners.section-partners {
  padding-top: 0px;
}

h1, h2, h3, h4 {
  font-family: var(--f-serif);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.mono {
  font-family: var(--f-mono);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--f-sans);
  font-size: 1.25rem;
  font-weight: 700;
  font-style: normal;
  white-space: nowrap;
  letter-spacing: 0.05em;
}

button.logo {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  cursor: pointer;
}

.desktop-nav {
  display: block;
}

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

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
  color: #ffffff;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-socials {
  display: flex;
  gap: 1.15rem;
  align-items: center;
  margin-right: 0.5rem;
}

.header-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, color 0.2s ease;
  color: var(--text-muted);
}

.header-social-link img {
  width: 22px;
  height: 22px;
  filter: grayscale(1) brightness(1.5);
  transition: all 0.3s ease;
}

.header-social-link:hover {
  transform: scale(1.15);
  color: var(--accent);
}

.header-social-link:hover img {
  filter: grayscale(0) brightness(1);
}

@media (max-width: 1014px) {
  .nav-item-about {
    display: none;
  }
}

@media (max-width: 888px) {
  .header-socials {
    display: flex;
    gap: 0.85rem;
    margin-right: 0.25rem;
  }
  .header-social-link img {
    width: 20px;
    height: 20px;
  }
}

.menu-toggle {
  display: none;
  color: var(--text);
  padding: 0.5rem;
}

.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--surface);
  padding: 2rem;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: none;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-link {
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0;
  color: white;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 0 4rem;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: #050505;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../static/img/bg_img.jpg") center / cover no-repeat;
  opacity: 0.4;
  filter: blur(2px);
  transform: scale(1.05);
}

.hero-content {
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  border: 1px solid var(--line);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4/5;
}

.hero h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  margin-bottom: 2rem;
}

.hero p {
  font-size: clamp(1rem, 4vw, 1.25rem);
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 3rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.btn-sm {
  padding: 0.6rem 1.5rem;
  font-size: 0.75rem;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: white;
  color: black;
  transform: translateY(-2px);
}

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

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

.btn-white {
  background: white;
  color: black;
}

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

.w-full {
  width: 100%;
}

/* Features */
.section-title {
  text-align: center;
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: 4rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  /* Чуть прозрачные плашки, чтобы фон секции “просвечивал” */
  background: rgba(18, 18, 18, 0.82); /* var(--surface) with opacity */
  border: 1px solid var(--line);
  padding: 3rem 2rem;
  border-radius: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--accent);
  background: rgba(26, 26, 26, 0.92); /* var(--surface-accent) with opacity */
  transform: translateY(-5px);
}

.feature-icon {
  color: var(--accent);
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Честный состав: на узких экранах карточки по центру */
@media (max-width: 992px) {
  .features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
  }
  .feature-card {
    width: 280px;
    max-width: 100%;
    flex-shrink: 0;
  }
}

/* Честный состав: мобильная сетка — 2 в ряд, нечётный последний по центру (как блок команды) */
@media (max-width: 768px) {
  .features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 0.6rem;
    justify-items: stretch;
  }

  .feature-card {
    width: 100%;
    max-width: none;
    padding: 1.25rem 0.75rem;
  }

  .feature-card:nth-last-child(1):nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: auto;
    max-width: min(280px, 100%);
  }

  .feature-icon {
    margin-bottom: 0.85rem;
  }

  .feature-card h3 {
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
    line-height: 1.25;
  }

  .feature-card p {
    font-size: 0.78rem;
    line-height: 1.4;
  }
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-title {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  margin: 1.5rem 0;
}

.about-text {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.stats-grid {
  display: flex;
  gap: 3rem;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.about-image {
  aspect-ratio: 1/1;
  background: var(--surface);
  border-radius: 2rem;
  overflow: hidden;
  position: relative;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Offline Locations */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.location-card {
  /* Чуть прозрачный фон, чтобы на фоне секции текст и картинка читались аккуратнее */
  background: rgba(18, 18, 18, 0.82); /* var(--surface) with opacity */
  border: 1px solid var(--line);
  padding: 2.5rem;
  border-radius: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.location-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  background: rgba(26, 26, 26, 0.92); /* var(--surface-accent) with opacity */
}

.location-icon {
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.location-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.location-address {
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.location-time {
  color: var(--text-muted);
  font-family: var(--f-mono);
  font-size: 0.9rem;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-overlay.is-open {
  display: flex;
}

.modal-content {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 3rem;
  border-radius: 1.5rem;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

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

.modal-body h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.modal-body h3 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--accent);
}

.modal-body p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* Certificates */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.certificate-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1rem;
  border-radius: 1rem;
  transition: all 0.3s ease;
  max-width: 500px;
  width: 100%;
  cursor: pointer;
}

.certificate-card:hover {
  border-color: var(--accent);
  transform: scale(1.02);
}

.certificate-card img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  display: block;
}

@media (max-width: 768px) {
  .certificates-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 0.5rem;
  }

  .certificate-card {
    max-width: none;
    padding: 0.5rem;
  }
}

/* CTA Card */
.cta-card {
  /* Уменьшаем “оранжевый блок” и делаем его слегка прозрачным */
  background: rgba(255, 78, 0, 0.88); /* var(--accent) with opacity */
  border-radius: 2.5rem;
  padding: clamp(2.25rem, 6vw, 4rem) 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 720px; /* немного уже контейнера, но чуть шире текстового блока */
  margin: 0 auto;
}

.cta-icon-bg {
  position: absolute;
  top: -10%;
  right: -5%;
  opacity: 0.15;
  pointer-events: none;
}

.cta-title {
  font-size: clamp(2.5rem, 8vw, 4rem);
  margin-bottom: 1.5rem;
  color: white;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.cta-text {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.9);
  max-width: 600px;
  margin: 0 auto 3rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* CTA — мобильная версия: текст не выезжает */
@media (max-width: 768px) {
  .cta-card {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    max-width: none; /* на мобилках заполняем ширину */
    margin: 0;
  }
  .cta-title {
    font-size: 1.75rem;
    line-height: 1.25;
  }
  .cta-text {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
}

/* Footer */
.footer {
  padding: 6rem 0 3rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-desc {
  color: var(--text-muted);
  max-width: 300px;
  font-size: 0.95rem;
}

.footer-col h4 {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: white;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  text-align: left;
}

.footer-link:hover {
  color: var(--accent);
}

.footer-link img.icon-sm {
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 0;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: var(--accent);
  border: none;
  color: white;
  cursor: pointer;
  z-index: 2001;
  transition: all 0.2s;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.lightbox-close:hover {
  transform: scale(1.1);
  background: var(--accent-muted);
  color: white;
}

.lightbox-content {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: auto;
}

.lightbox-image-wrap {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  transform-origin: center center;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 0 50px rgba(0,0,0,0.5);
  pointer-events: none;
}

/* Icon sizes */
.icon-sm { width: 14px; height: 14px; flex-shrink: 0; }
.icon-md { width: 18px; height: 18px; flex-shrink: 0; }
.icon-lg { width: 24px; height: 24px; flex-shrink: 0; }

/* CTA: tg.svg в файле с белой заливкой — на белой кнопке через filter делаем силуэт */
.btn-white .cta-btn-icon {
  display: block;
  object-fit: contain;
  filter: brightness(0);
}

.btn-white:hover .cta-btn-icon {
  filter: brightness(0) invert(1);
}
.icon-xl { width: 32px; height: 32px; flex-shrink: 0; }
.icon-40 { width: 40px; height: 40px; flex-shrink: 0; }
.icon-300 { width: 300px; height: 300px; flex-shrink: 0; opacity: 0.15; }

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 888px) {
  .section {
    padding: 5rem 0;
  }
  .desktop-nav {
    display: none;
  }
  .menu-toggle {
    display: block;
    padding: 0.3rem;
  }
  .header {
    padding: 0.65rem 0;
  }
  .header-actions {
    gap: 0.5rem;
  }
  .header-actions .btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.7rem;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-image-wrapper {
    display: none;
  }
  .hero-btns {
    justify-content: center;
  }
  .hero p {
    max-width: none;
  }
  .hide-mobile {
    display: none;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-image {
    /* Вернуть картинку после текста на мобильной версии */
    order: 1;
    /* На мобилках картинка сейчас слишком “крупная” — ограничиваем высоту */
    aspect-ratio: 4/3;
    max-height: 360px;
    margin: 0 auto;
    border-radius: 1.5rem;
  }
  .stats-grid {
    justify-content: space-between;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .footer-brand {
    grid-column: span 1;
  }
  .logo {
    font-size: 0.7rem;
    letter-spacing: 0;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Partnership Card New Style */
.partnership-card {
  background: rgba(18, 18, 18, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 2.5rem;
  padding: clamp(2rem, 5vw, 4rem);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.partnership-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  margin-bottom: 3.5rem;
  align-items: center;
}

.partnership-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 1.5rem 0;
  line-height: 1.2;
}

.partnership-features-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.p-feature-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.p-feature-icon {
  width: 48px;
  height: 48px;
  background: var(--surface-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  border: 1px solid var(--line);
}

.p-feature-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.p-feature-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.partnership-footer {
  border-top: 1px solid var(--line);
  padding-top: 2.5rem;
}

.partnership-actions {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 992px) {
  .partnership-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .p-feature-item {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .partnership-card {
    padding: 2.5rem 1.5rem;
    border-radius: 2rem;
  }
  
  .partnership-actions .btn {
    width: 100%;
  }
}

/* Shop Page Specific Styles */
.location-card-simple {
  background: rgba(18, 18, 18, 0.82);
  border: 1px solid var(--line);
  padding: 2.5rem;
  border-radius: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.location-card-simple:hover {
  border-color: var(--accent);
  background: rgba(26, 26, 26, 0.92);
}

@media (max-width: 1040px) {
  .shop-card-wide {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .shop-card-wide {
    grid-column: 1 / -1;
  }
}
