/* Base layout */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.page {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #111 0, #020202 45%, #000 100%);
  color: #f9fafb;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 1rem;
}

/* Header & navigation */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(127, 29, 29, 0.2);
}

.header-inner {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-logo {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  background-image: linear-gradient(to right, #dc2626, #ef4444);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  border: none;
  padding: 0;
  font: inherit;
  background: none;
  color: #d1d5db;
  cursor: pointer;
  transition: color 0.2s ease-in-out;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #d1d5db;
}

.nav-toggle-line {
  display: block;
  width: 1.5rem;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-line + .nav-toggle-line {
  margin-top: 0.25rem;
}

.nav-toggle.is-open .nav-toggle-line:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-line:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.75rem 1rem 1rem;
  background: rgba(0, 0, 0, 0.95);
  border-bottom: 1px solid rgba(127, 29, 29, 0.2);
}

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

.nav-mobile-link {
  border: none;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0;
  font: inherit;
  background: none;
  color: #d1d5db;
  cursor: pointer;
  transition: color 0.2s ease-in-out;
}

.nav-mobile-link:hover {
  color: #ffffff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}

.btn-primary {
  background-image: linear-gradient(to right, #b91c1c, #dc2626);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 16px 40px rgba(239, 68, 68, 0.6);
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(127, 29, 29, 0.6);
  color: #f9fafb;
}

.btn-outline:hover {
  background: rgba(127, 29, 29, 0.5);
}

.btn-translucent {
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(127, 29, 29, 0.4);
  color: #ffffff;
}

.btn-translucent:hover {
  background: rgba(127, 29, 29, 0.6);
}

.btn-call {
  background: rgba(127, 29, 29, 0.4);
  border-color: rgba(127, 29, 29, 0.6);
  color: #ffffff;
}

.btn-call:hover {
  background: rgba(127, 29, 29, 0.7);
}

.btn-secondary-light {
  background: rgba(39, 39, 42, 0.6);
  border-color: rgba(63, 63, 70, 0.7);
  color: #e5e7eb;
}

.btn-secondary-light:hover {
  background: rgba(39, 39, 42, 0.9);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  background-image: url("https://avatars.mds.yandex.net/get-altay/2366463/2a00000172b66303963838ce6a7910cbd600/XXXL");
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2.75rem, 6vw, 3.75rem);
  margin-bottom: 1.5rem;
  font-weight: 800;
  background-image: linear-gradient(to right, #dc2626, #ef4444);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #d1d5db;
  margin-bottom: 2rem;
}

.hero-cta {
  margin-inline: auto;
}

/* Sections */
.section {
  padding-block: 5rem;
}

.section-gradient {
  background-image: linear-gradient(to bottom, #000000, rgba(69, 10, 10, 0.2));
}

.section-solid {
  background-color: #000000;
  border-top: 1px solid rgba(127, 29, 29, 0.3);
}

.section-contacts {
  background-color: #020617;
  border-top: 1px solid rgba(127, 29, 29, 0.3);
}

.section-title {
  text-align: center;
  margin: 0 0 3.5rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  background-image: linear-gradient(to right, #ef4444, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-text {
  margin: 0 0 1.5rem;
  color: #9ca3af;
}

main {
  padding-top: 4rem;
}

/* PC cards */
.pc-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 2rem;
}

.pc-card {
  border-radius: 1.25rem;
  padding: 1.5rem;
  background: rgba(24, 24, 27, 0.6);
  border: 1px solid rgba(127, 29, 29, 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pc-card:hover {
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 20px 55px rgba(239, 68, 68, 0.5);
}

.pc-card-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
}

.pc-card-badge-standard {
  background-image: linear-gradient(to right, #dc2626, #ef4444);
}

.pc-card-badge-comfort {
  background-image: linear-gradient(to right, #b91c1c, #dc2626);
}

.pc-card-badge-vip {
  background-image: linear-gradient(to right, #991b1b, #b91c1c);
}

.pc-card-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.price-group {
  display: grid;
  gap: 1rem;
}

.price-block {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 0.9rem;
  padding: 1rem;
}

.price-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #e5e7eb;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #d1d5db;
}

.price-label {
  color: #9ca3af;
}

.price-value {
  font-weight: 700;
}

.pc-specs-toggle {
  border: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.9rem;
  background: rgba(0, 0, 0, 0.3);
  color: #f9fafb;
  font: inherit;
  cursor: pointer;
}

.pc-specs-icon {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  border: 2px solid #f87171;
  border-top-color: transparent;
  border-left-color: transparent;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.pc-specs-toggle[aria-expanded="true"] .pc-specs-icon {
  transform: rotate(225deg);
}

.pc-specs {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.pc-specs.is-open {
  max-height: 500px;
  opacity: 1;
}

.spec-list {
  margin: 0;
  padding-left: 1.1rem;
  color: #e5e7eb;
}

.spec-list li {
  margin-bottom: 0.35rem;
}

.pc-card-cta {
  margin-top: 0.5rem;
}

/* BootCamp & PS5 */
.bootcamp-grid,
.ps5-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: flex-start;
}

.bootcamp-subtitle {
  margin: 0 0 0.75rem;
  font-size: 1.4rem;
  font-weight: 700;
}

.bootcamp-prices {
  display: grid;
  gap: 1rem;
  margin-block: 1.25rem 1.75rem;
}

.bootcamp-cta {
  margin-top: 0.5rem;
}

.bootcamp-specs,
.ps5-info {
  color: #e5e7eb;
}

.specs-title {
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.ps5-specs {
  margin-block: 1rem 1.5rem;
}

.ps5-image-wrapper {
  position: relative;
  height: 260px;
  border-radius: 1.25rem;
  overflow: hidden;
}

.ps5-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contacts & map */
.section-contacts .container {
  padding-block: 3rem;
}

.contacts-card {
  position: relative;
  height: 500px;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(127, 29, 29, 0.4);
  background: #020617;
}

.contacts-map {
  width: 100%;
  height: 100%;
}

.contacts-top-actions {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 10;
}

.contacts-bottom-bar {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 10;
  padding: 1rem;
  border-radius: 0.9rem;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(127, 29, 29, 0.4);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contacts-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contacts-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.contacts-address {
  margin: 0;
  color: #e5e7eb;
}

.contacts-phone {
  color: #ef4444;
}

.contacts-phone:hover {
  color: #f97373;
}

.contacts-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Footer */
.site-footer {
  background-color: #020617;
  border-top: 1px solid rgba(127, 29, 29, 0.3);
  padding-block: 3rem 1.5rem;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.footer-heading {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}

.footer-text {
  margin: 0 0 0.35rem;
  color: #9ca3af;
}

.footer-social-links {
  display: flex;
  gap: 0.75rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  border-radius: 999px;
  background-image: linear-gradient(to right, #b91c1c, #dc2626);
  box-shadow: 0 12px 30px rgba(239, 68, 68, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-icon img {
  width: 1.5rem;
  height: 1.5rem;
}

.social-icon:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(239, 68, 68, 0.7);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(127, 29, 29, 0.3);
  text-align: center;
  color: #6b7280;
  font-size: 0.85rem;
}

/* Responsive */
@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .nav-mobile {
    display: none !important;
  }

  .pc-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bootcamp-grid,
  .ps5-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }

  .contacts-bottom-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

