@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #FBF3EC;
  --bg-alt: #EAF3F7;
  --primary: #F3C6A6;
  --accent: #7FB8D9;
  --text: #4A4038;
  --text-light: #8B7F74;
  --white: #FFFFFF;
  --accent-strong: #3E8FC4;
  --gradient: linear-gradient(135deg, #3E8FC4 0%, #6BAEDA 55%, #F3C6A6 100%);
  --heading-font: 'Poppins', sans-serif;
  --body-font: 'Inter', sans-serif;
  --header-h: 84px;
}

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

html.hide #preloader { opacity: 0; visibility: hidden; }

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

body.fixed { overflow: hidden; }

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

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

ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { font-family: var(--heading-font); color: var(--text); line-height: 1.2; }

#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .4s ease, visibility .4s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 34px;
  border-radius: 999px;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  border: none;
  transition: transform .25s ease, box-shadow .25s ease;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 10px 26px rgba(62, 143, 196, .45);
  animation: float 3s ease-in-out infinite;
}

.btn-primary:hover {
  animation-play-state: paused;
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(62, 143, 196, .55);
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

.eyebrow {
  display: inline-block;
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(127, 184, 217, .12);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: 18px;
}

.section-text {
  color: var(--text-light);
  font-size: 17px;
  margin-bottom: 16px;
}

.section-text:last-child { margin-bottom: 0; }

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background: rgba(251, 243, 236, .7);
  backdrop-filter: blur(10px);
  transition: background .3s ease, box-shadow .3s ease;
}

header.scrolled {
  background: rgba(251, 243, 236, .95);
  box-shadow: 0 4px 20px rgba(74, 64, 56, .08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo-img { height: 40px; width: auto; }

.nav-desktop { display: flex; align-items: center; gap: 36px; }

.nav-link {
  position: relative;
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width .25s ease;
}

.nav-link:hover::after { width: 100%; }

.burger-btn {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  z-index: 1150;
}

.burger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform .3s ease, opacity .3s ease;
}

.burger-btn.act span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

#mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  width: 100%;
  bottom: 0;
  z-index: 1050;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity .3s ease, transform .3s ease;
  overflow-y: auto;
}

#mobile-menu.opened {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#mobile-menu nav {
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  gap: 8px;
}

#mobile-menu .nav-link {
  font-size: 20px;
  padding: 14px 6px;
  border-bottom: 1px solid rgba(74, 64, 56, .08);
}

.hero {
  padding: calc(var(--header-h) + 60px) 0 90px;
  background: url('../img/hero-bg.webp') center / cover no-repeat;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 50px;
}

.hero-content h1 {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 800;
  margin-bottom: 22px;
}

.hero-content .section-text { font-size: 18px; }

.hero-content .btn { margin-top: 28px; }

.hero-visual { display: flex; justify-content: center; }

.hero-visual img { max-width: 480px; }

.section { padding: 100px 0; }

.section-alt { background: var(--bg-alt); }

.about-inner, .locations-inner {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 60px;
  align-items: center;
}

.about-visual img, .locations-visual img {
  border-radius: 28px;
  box-shadow: 0 24px 50px rgba(74, 64, 56, .12);
}

.puzzle-journey-inner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  background: var(--white);
  border-radius: 20px;
  padding: 26px 24px;
  box-shadow: 0 10px 30px rgba(74, 64, 56, .06);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: box-shadow .3s ease, transform .3s ease;
}

.card:hover {
  box-shadow: 0 16px 36px rgba(74, 64, 56, .1);
  transform: translateY(-2px);
}

.card-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon svg { width: 20px; height: 20px; transition: transform .35s ease; }

.card:hover .card-icon svg { transform: rotate(-18deg) scale(1.12); }

.card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.card p { color: var(--text-light); font-size: 14px; margin: 0; }

.card--simple { align-items: center; }

.card--simple p { color: var(--text); font-size: 15px; font-weight: 500; margin: 0; }

.locations .card-grid { grid-template-columns: repeat(2, 1fr); margin-top: 40px; }

.features-inner { max-width: 700px; margin: 0 auto 56px; text-align: center; }

.features-inner .section-text { margin-left: auto; margin-right: auto; }

.features .card-grid {
  grid-template-columns: repeat(3, 1fr);
}

.features-note {
  margin-top: 48px;
  text-align: center;
  color: var(--text-light);
  font-size: 15px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

footer {
  background: var(--bg-alt) url('../img/footer-bg.webp') center bottom / cover no-repeat;
  padding: 80px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr .85fr .85fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(74, 64, 56, .1);
}

.footer-logo { height: 38px; margin-bottom: 16px; }

.footer-brand p { color: var(--text-light); font-size: 15px; max-width: 320px; }

.footer-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }

.footer-nav .nav-link { font-weight: 500; }

.footer-contact { display: flex; flex-direction: column; gap: 10px; }

.footer-contact-label {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
}

.footer-contact a { font-weight: 600; color: var(--text); }
.footer-contact a:hover { color: var(--accent); }

.footer-bottom {
  padding: 26px 0;
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
}

.legal-page { padding: calc(var(--header-h) + 60px) 0 100px; }

.legal-content { max-width: 820px; margin: 0 auto; }

.legal-content h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 12px; }

.legal-content h2 { font-size: 22px; margin: 40px 0 14px; }

.legal-content h3 { font-size: 17px; margin: 22px 0 10px; }

.legal-content p, .legal-content li { color: var(--text-light); font-size: 16px; margin-bottom: 14px; }

.legal-content ol, .legal-content ul { padding-left: 22px; margin-bottom: 14px; }

.legal-content li { margin-bottom: 10px; }

.legal-content em { color: var(--text-light); }

.legal-content a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color .2s ease, text-decoration-color .2s ease;
}

.legal-content a:hover,
.legal-content a:focus-visible { color: var(--primary); text-decoration-color: var(--primary); }

@media (max-width: 1024px) {
  .hero-inner, .about-inner, .locations-inner, .puzzle-journey-inner {
    grid-template-columns: 1fr;
  }
  .hero-visual { order: -1; }
  .hero-visual img { max-width: 320px; }
  .features .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .burger-btn { display: flex; }
  .section { padding: 70px 0; }
  .hero { padding: calc(var(--header-h) + 40px) 0 60px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .footer-brand { display: flex; flex-direction: column; align-items: center; }
  .footer-logo { margin-left: auto; margin-right: auto; }
  .footer-brand p { margin-left: auto; margin-right: auto; }
  .footer-nav { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 20px; }
  .footer-contact { align-items: center; }
  .card-grid, .locations .card-grid, .features .card-grid { grid-template-columns: 1fr; }
  .footer-bottom { padding-bottom: 40px; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .btn { width: 100%; padding: 16px 24px; }
  .hero-content .btn { width: auto; }
}
