:root {
  --color-bg: #f5f7fb;
  --color-surface: #ffffff;
  --color-surface-soft: #f9fbff;
  --color-border-subtle: #e2e8f0;
  --color-border-strong: #cbd5e1;

  --color-primary: #2563eb;
  --color-primary-soft: rgba(37, 99, 235, 0.08);
  --color-primary-strong: #1d4ed8;
  --color-accent-pink: #f97373;
  --color-accent-purple: #6366f1;

  --color-text-main: #0f172a;
  --color-text-muted: #535f6e;

  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --shadow-soft: 0 22px 45px rgba(15, 23, 42, 0.12);
  --shadow-subtle: 0 10px 24px rgba(15, 23, 42, 0.06);
}

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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--font-main);
  background: radial-gradient(circle at top, #eef2ff 0, #f5f7fb 40%, #f5f7fb 100%);
  color: var(--color-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

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

/* LAYOUT */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

main {
  flex: 1 0 auto;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(248, 250, 252, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.nav-brand {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  text-decoration: none;
  color: var(--color-text-main);
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.15), rgba(248, 250, 252, 0.9));
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-links a {
  position: relative;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--color-text-muted);
  transition: all 0.18s ease-out;
}

.nav-links a:hover {
  color: var(--color-text-main);
  background: rgba(148, 163, 184, 0.12);
}

.nav-links a.active {
  color: var(--color-primary-strong);
  background: rgba(37, 99, 235, 0.12);
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: #ffffff;
  color: var(--color-text-main);
  border-radius: 999px;
  width: 2.3rem;
  height: 2.3rem;
  font-size: 1.2rem;
  cursor: pointer;
}

/* HERO */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3.8rem 0 3.6rem;

/* 1. The background image goes here */
  background-image: linear-gradient(rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.6)), 
                    url('https://images.unsplash.com/photo-1542744173-8e7e53415bb0?q=80&w=2070');
                    /* url('../assets/img/cover.png');  */
  
  /* 2. Essential sizing */
  background-size: cover; 
  background-position: center center;
  background-repeat: no-repeat;
  
  /* 3. Fallback color (if you see this color, the image path is broken) */
  background-color: #1e293b;
}

.hero-light {
  background: transparent !important;
}

/* fluid animated gradient layer */
.hero-gradient-layer {
  display: none;
}
/* .hero-gradient-layer {
  display: none;
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.32), transparent 55%),
    radial-gradient(circle at 100% 10%, rgba(244, 114, 182, 0.28), transparent 60%),
    radial-gradient(circle at 50% 110%, rgba(52, 211, 153, 0.25), transparent 55%);
  filter: blur(4px);
  opacity: 0.9;
  animation: heroFlow 18s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
} */

/* subtle noise layer */
.hero-noise-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 600' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='noStitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  z-index: 0;
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 2.8rem;
  align-items: center;
  z-index: 1;
}

/* Hero content */
.hero-text {
  position: relative;
}

.hero-text .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-primary-strong);
  background: rgba(219, 234, 254, 0.9);
  border-radius: 999px;
  padding: 0.26rem 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.hero-text h1 {
  font-size: clamp(2rem, 2.9vw, 2.8rem);
  line-height: 1.1;
  margin: 0 0 0.6rem;
  color: #ffffff !important;
}

.hero-sub {
  margin: 0 0 1.2rem;
  color: var(--color-text-muted);
  max-width: 460px;
  font-size: 0.98rem;
  color: #a5b1c0 !important;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.50rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 1.2rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.16s ease-out;
}

.btn.primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 50px rgba(37, 99, 235, 0.35);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.85);
  color: var(--color-text-main);
  border-color: rgba(148, 163, 184, 0.6);
}

.btn.ghost:hover {
  background: #fff;
  box-shadow: var(--shadow-subtle);
}

/* Hero preview card */
.hero-preview-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(226, 232, 240, 0.9);
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid rgba(241, 245, 249, 1);
  background: linear-gradient(135deg, #f9fafb, #eff6ff);
}

.dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
}

.dot-red { background: #fb7185; }
.dot-yellow { background: #facc15; }
.dot-green { background: #22c55e; }

.preview-body {
  padding: 1.3rem 1.4rem 1.4rem;
}

.preview-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(219, 234, 254, 0.9);
  color: #1d4ed8;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  margin-bottom: 0.6rem;
}

.preview-body h2 {
  font-size: 1.05rem;
  margin: 0 0 0.15rem;
}

.preview-body p {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.preview-row {
  display: flex;
  gap: 0.9rem;
  margin-bottom: 0.3rem;
}

.preview-stat {
  flex: 1;
  padding: 0.6rem 0.7rem;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.preview-stat-label {
  display: block;
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

.preview-stat-value {
  font-weight: 600;
  font-size: 0.95rem;
}

/* SECTION GENERAL */
.section {
  padding: 3.4rem 0 3.6rem;
}

.section-alt {
  background: #f9fbff;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.section-header {
  max-width: 100% !important;
  margin: 0 auto 2.2rem;
  text-align: center;
}

.section-header h2,
.section-header h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.6rem, 2.2vw, 2rem);
}

.section-header p {
  max-width: 1200px;
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* INFO GRID */
.info-grid {
  display: grid;
  gap: 1.6rem;
}

.info-card {
  padding: 1.4rem 1.3rem;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-subtle);
}

.info-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
}

.info-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ABOUT */
.about-grid {
  display: grid;
  gap: 2.4rem;
  align-items: center;
}

.about-grid h2 {
  margin-top: 0;
}

.about-intro {
  font-size: 0.96rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.about-tag {
  font-size: 0.76rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(219, 234, 254, 0.9);
  color: #1d4ed8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about-meta-grid {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}

.about-meta-card {
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.about-meta-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-bottom: 0.2rem;
}

.about-meta-value {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-main);
}

.about-list {
  padding-left: 1.1rem;
  margin: 0;
  list-style: disc;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.about-list li + li {
  margin-top: 0.25rem;
}

.about-image-wrapper {
  position: relative;
  border-radius: 26px;
  padding: 0.55rem;
  background: linear-gradient(135deg, #bfdbfe, #fce7f3);
  box-shadow: var(--shadow-soft);
}

.about-image-wrapper::before {
  content: "";
  position: absolute;
  inset: 0.8rem;
  border-radius: 22px;
  border: 1px dashed rgba(148, 163, 184, 0.6);
  pointer-events: none;
}

.about-image-wrapper img {
  display: block;
  width: 100%;
  border-radius: 22px;
}

/* GALLERY */
.gallery-grid {
  display: grid;
  gap: 1.8rem;
}

.gallery-item {
  background: var(--color-surface);
  border-radius: 22px;
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.gallery-image-wrap {
  position: relative;
  overflow: hidden;
  max-height: 210px;
}

.gallery-image-wrap img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform 0.35s ease-out;
}

.gallery-item:hover .gallery-image-wrap img {
  transform: scale(1.04);
}

.gallery-item-body {
  padding: 1.2rem 1.2rem 1.25rem;
}

.gallery-item-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
}

.gallery-item-body p {
  margin: 0 0 0.9rem;
  font-size: 1.2rem;
  color: var(--color-text-muted);
}

.gallery-link {
  font-size: 0.86rem;
  text-decoration: none;
  color: var(--color-primary-strong);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.gallery-link::after {
  content: "↗";
  font-size: 0.8rem;
}

/* MAP */
#billboard-map {
  width: 100%;
  height: 380px;
  border-radius: 22px;
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

/* CONTACT */
.contact-content {
  max-width: 620px;
  margin: 0 auto;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.contact-content p {
  margin-bottom: 0.7rem;
}

/* FOOTER */
.site-footer {
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 1.3rem 0 1.4rem;
}

.footer-content {
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* REVEAL EFFECTS */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* TILT HOVER (base state) */
.tilt-hover {
  transition: transform 0.16s ease-out, box-shadow 0.16s ease-out;
}

/* HERO FLOW ANIMATION */
@keyframes heroFlow {
  0% {
    transform: translate3d(-3%, -2%, 0) scale(1);
  }
  50% {
    transform: translate3d(2%, 1%, 0) scale(1.02);
  }
  100% {
    transform: translate3d(-1%, 3%, 0) scale(1.01);
  }
}

logo-marquee {
  padding: 2.5rem 0;
  background: linear-gradient(180deg, #f9fbff, #f8fafc);
  border-top: 1px solid #e2e8f0;
}

.logo-track {
  display: flex;
  gap: 3rem;
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.logo-track-group {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-shrink: 0;
  animation: logoScroll 22s linear infinite;
}

/* NO boxes, NO borders */
.logo-track img {
  height: 48px;
  width: auto;
  opacity: 0.85;
  filter: grayscale(100%);
  transition: opacity .25s ease, transform .25s ease;
}

.logo-track img:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* Pause on hover */
.logo-track:hover .logo-track-group {
  animation-play-state: paused;
}

@keyframes logoScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@media (max-width: 768px) {
  .logo-track img { height: 40px; }
  .logo-track-group { gap: 2rem; }
}

/* Target the contact details specifically */
.contact-content p {
  font-size: 1.2rem; /* Makes the email, phone, and address larger */
  margin-bottom: 15px; /* Adds spacing between the rows */
}

/* Make the labels (Email, Телефон) stand out more */
.contact-content strong {
  font-size: 1.4rem;
  color: #333; /* Or your brand color */
}

/* RESPONSIVE */
@media (max-width: 767px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 1.5rem;
    margin-top: 0.5rem;
    flex-direction: column;
    align-items: flex-start;
    background: #ffffff;
    border-radius: 16px;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-soft);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 0.5rem 0.6rem;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-preview-card {
    order: -1;
    margin-bottom: 0.5rem;
  }

  .section {
    padding: 3rem 0 3.2rem;
  }
}



@media (min-width: 768px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

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

  .about-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

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

/* FORCE IMAGE TEST */
.hero, .hero-light {
  background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                    url('../img/cover1.png') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
}

/* Hide the noise and gradient layers temporarily to see if they are the problem */
.hero-noise-layer, .hero-gradient-layer {
  display: none !important;
}