/* === Reset === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  color: #333;
  background: #fff;
}

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

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

ul, ol {
  list-style: none;
}

/* === CSS Custom Properties === */
:root {
  --max-width: 1100px;
  --nav-height: 60px;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --transition: 0.3s ease;
}

/* === Typography === */
h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1.2; }
h2 { font-size: clamp(1.4rem, 4vw, 2.2rem); line-height: 1.3; }
h3 { font-size: clamp(1.1rem, 3vw, 1.5rem); line-height: 1.4; }
p  { font-size: 1rem; }

/* === Layout === */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

/* === Grid === */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 600px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* === Navigation === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0 20px;
}

.nav__inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-weight: 700;
  font-size: 1.1rem;
  white-space: nowrap;
}

.nav__links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav__links a {
  font-size: 0.9rem;
  opacity: 0.8;
  transition: opacity var(--transition);
}
.nav__links a:hover {
  opacity: 1;
}

.nav__phone {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 110;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
  position: absolute;
  left: 0;
  transition: var(--transition);
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }

.hamburger.active span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    flex-direction: column;
    padding: 80px 30px 30px;
    gap: 20px;
    transition: right var(--transition);
    background: inherit;
  }
  .nav__links.open {
    right: 0;
    box-shadow: var(--shadow-lg);
  }
  .nav__links a {
    font-size: 1.1rem;
  }
}

/* === Footer === */
.footer {
  padding: 40px 20px;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
}

.footer a {
  text-decoration: underline;
}

/* === Utility === */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* === Card base === */
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* === Button base === */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* === Badge === */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* === Table base === */
.info-table {
  width: 100%;
  border-collapse: collapse;
}
.info-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  vertical-align: top;
}
.info-table td:first-child {
  font-weight: 600;
  white-space: nowrap;
  width: 40%;
}

/* === Steps === */
.steps {
  counter-reset: step;
}
.step {
  position: relative;
  padding-left: 60px;
  margin-bottom: 32px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

/* === Marquee === */
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-wrap {
  overflow: hidden;
  white-space: nowrap;
}
.marquee-wrap span {
  display: inline-block;
  animation: marquee 12s linear infinite;
}
