:root {
  --accent: #ffdd00;
  --accent-dark: #e6c700;
  --brand-red: #b5121b;
  --dark: #14161c;
  --dark-2: #1d2029;
  --text: #2b2f38;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --border: #e7e9ee;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(20, 22, 28, 0.08);
  --shadow-lg: 0 20px 45px rgba(20, 22, 28, 0.16);
  --header-h: 84px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Quicksand", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 700; color: var(--dark); }
p { margin: 0 0 1em; }

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

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  transition: background 0.3s, box-shadow 0.3s, height 0.3s;
}
.site-header.scrolled,
.site-header.menu-open {
  background: rgba(20, 22, 28, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  --header-h: 70px;
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo img { width: 200px; height: auto; transition: width 0.3s; }
.scrolled .logo img { width: 170px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav ul a {
  position: relative;
  display: block;
  padding: 8px 14px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 15px;
}
.nav ul a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.25s;
}
.nav ul a:hover { color: #fff; }
.nav ul a:hover::after,
.nav ul a.active::after { transform: scaleX(1); }
.nav ul a.active { color: var(--accent); }

.lang-switch {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.lang-switch button {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lang-switch button:hover { color: #fff; }
.lang-switch button.active { background: var(--accent); color: var(--dark); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  color: #fff;
  background: var(--dark);
}
.hero.hero-sm { height: 60vh; min-height: 400px; }

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.2s ease, transform 7s ease;
}
.hero-slide.active { opacity: 1; transform: scale(1); }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 18, 0.55) 0%, rgba(10, 12, 18, 0.25) 45%, rgba(10, 12, 18, 0.65) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-h);
}
.hero h1 {
  color: #fff;
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: -0.5px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}
.hero p {
  margin: 14px 0 30px;
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255, 255, 255, 0.88);
}
.hero-sm h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin: 18px auto 0;
  border-radius: 4px;
  background: var(--accent);
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.3s, background 0.3s;
}
.hero-dots button.active { width: 30px; background: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--dark);
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(255, 221, 0, 0.3);
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(255, 221, 0, 0.4); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin: 16px auto 0;
  border-radius: 4px;
  background: var(--accent);
}
.section-head p { margin: 16px 0 0; color: var(--muted); }

/* Partners */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.partner {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.partner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.partner span {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 18px 14px;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  background: linear-gradient(transparent, rgba(10, 12, 18, 0.8));
}
.partner:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.partner:hover img { transform: scale(1.06); }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service {
  padding: 40px 24px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service .icon {
  display: inline-grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 20px;
  border-radius: 22px;
  background: #fff8cc;
  color: var(--dark);
  transition: background 0.3s, transform 0.3s;
}
.service .icon svg { width: 34px; height: 34px; }
.service:hover .icon { background: var(--accent); transform: rotate(-6deg); }
.service h3 { font-size: 18px; }

/* About */
.about-card {
  max-width: 920px;
  margin: 0 auto;
  padding: 48px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about-card h2 { font-size: clamp(26px, 3.5vw, 34px); margin-bottom: 20px; }
.about-card > p { color: #4b5160; font-size: 17px; }
.check-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
}
.check-list li {
  position: relative;
  padding: 12px 16px 12px 48px;
  background: var(--bg-soft);
  border-radius: 12px;
  line-height: 1.5;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 13px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314161c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.contact-card {
  padding: 28px 20px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.3s, transform 0.3s;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-card .icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--dark);
}
.contact-card .icon svg { width: 24px; height: 24px; }
.contact-card p { margin: 0; line-height: 1.6; word-break: break-word; }
.contact-card a:hover { color: var(--brand-red); }

.map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 7;
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.65);
  padding-top: 72px;
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1.4fr;
  gap: 40px;
  padding-bottom: 56px;
}
.site-footer h4 {
  color: #fff;
  font-size: 17px;
  margin-bottom: 20px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; line-height: 1.5; }
.site-footer a:hover { color: var(--accent); }

.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }

.social { display: flex; gap: 10px; margin-top: 8px; }
.social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background 0.2s, color 0.2s;
}
.social a:hover { background: var(--accent); color: var(--dark); }
.social svg { width: 18px; height: 18px; }

.footer-bottom {
  padding: 22px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 14px;
}

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--dark);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.to-top svg { width: 22px; height: 22px; }
.to-top.visible { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .services-grid,
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .burger { display: flex; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px 20px 24px;
    background: rgba(20, 22, 28, 0.97);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
  }
  .menu-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .nav ul { flex-direction: column; }
  .nav ul a { padding: 12px 4px; font-size: 17px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .nav ul a::after { display: none; }
  .lang-switch { align-self: flex-start; }
}

@media (max-width: 640px) {
  :root { --header-h: 70px; }
  .logo img, .scrolled .logo img { width: 150px; }
  .section { padding: 64px 0; }
  .services-grid,
  .contact-grid,
  .check-list,
  .footer-grid { grid-template-columns: 1fr; }
  .about-card { padding: 28px 22px; }
  .map { aspect-ratio: 4 / 3; }
}
