/* ===== CSS VARIABLES ===== */
:root {
  --primary-color: #D4AC0D;
  --secondary-color: #5D6D7E;
  --accent-color: #F4D03F;
  --light-color: #FDFBF0;
  --dark-color: #1C2833;
  --gradient-primary: linear-gradient(135deg, #F4D03F 0%, #D4AC0D 100%);
  --hover-color: #a8880a;
  --background-color: #f8f7f2;
  --text-color: #2C3E50;
  --border-color: rgba(212,172,13,0.20);
  --divider-color: rgba(93,109,126,0.15);
  --shadow-color: rgba(0,0,0,0.04);
  --highlight-color: #E74C3C;
  --main-font: 'Montserrat', sans-serif;
  --alt-font: 'Open Sans', sans-serif;
  --radius-sm: 24px;
  --radius-md: 36px;
  --radius-lg: 48px;
  --radius-btn: 50px;
  --shadow-card: none;
  --shadow-hover: none;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--alt-font);
  background-color: var(--background-color);
  color: var(--text-color);
  font-size: clamp(14px, 4vw, 17px);
  line-height: 1.75;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-color); text-decoration: none; }
a:hover { color: var(--hover-color); }
h1, h2, h3, h4 { font-family: var(--main-font); line-height: 1.2; color: var(--dark-color); }
h1 { font-size: clamp(28px, 6vw, 54px); font-weight: 800; }
h2 { font-size: clamp(22px, 4.5vw, 38px); font-weight: 700; margin-bottom: 16px; }
h3 { font-size: clamp(16px, 2.8vw, 20px); font-weight: 700; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ===== HEADER ===== */
header {
  background: var(--dark-color);
  padding: 14px 16px;
  position: static;
  border-bottom: 4px solid var(--accent-color);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo a { display: flex; align-items: center; }
.logo img { height: 40px; width: auto; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  align-items: center;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--accent-color); border-radius: 2px; }

.navigation {
  display: none;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--dark-color);
  border-top: 1px solid rgba(244,208,63,0.20);
  z-index: 100;
  padding: 16px;
}
.navigation.open { display: block; }
.navigation ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.navigation ul li a {
  display: flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: var(--radius-btn);
  color: rgba(255,255,255,0.75);
  font-family: var(--main-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  min-height: 44px;
  transition: background 0.2s, color 0.2s;
}
.navigation ul li a:hover { background: rgba(244,208,63,0.15); color: var(--accent-color); }

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .navigation { display: block !important; position: static; background: none; border: none; padding: 0; }
  .navigation ul { flex-direction: row; gap: 2px; }
  .navigation ul li a { padding: 8px 16px; }
}

/* ===== HERO — floating-card ===== */
.hero {
  min-height: 80vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('./img/bg.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(28,40,51,0.55);
}
/* dotted pattern overlay */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(244,208,63,0.12) 1.5px, transparent 1.5px);
  background-size: 36px 36px;
  z-index: 1;
}
.hero-card {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.97);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  max-width: 640px;
  width: 100%;
  border-top: 6px solid var(--accent-color);
}
.hero-card h1 { margin-bottom: 18px; color: var(--dark-color); }
.hero-card p { color: var(--text-color); font-size: clamp(15px, 2.5vw, 17px); margin-bottom: 28px; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  background: var(--gradient-primary);
  color: var(--dark-color);
  border-radius: var(--radius-btn);
  font-family: var(--main-font);
  font-weight: 700;
  font-size: 15px;
  min-height: 44px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-2px); color: var(--dark-color); }

@media (min-width: 768px) { .hero-card { padding: 56px 52px; } }

/* ===== INTRO ===== */
.intro { padding: 48px 16px; background: #fff; border-bottom: 1px solid var(--divider-color); }
.intro-inner { max-width: 780px; margin: 0 auto; text-align: center; }
.intro-inner h2 { margin-bottom: 16px; }
.intro-inner p { color: var(--secondary-color); font-size: clamp(15px, 2.5vw, 17px); }
@media (min-width: 768px) { .intro { padding: 72px 24px; } }

/* ===== RANDOM BLOCK — horizontal steps with arrows ===== */
.steps-block {
  padding: 48px 16px;
  background: var(--dark-color);
}
.steps-block h2 { color: #fff; text-align: center; margin-bottom: 8px; }
.steps-sub { color: rgba(255,255,255,0.60); text-align: center; font-size: 15px; margin-bottom: 36px; }
.steps-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.step-node {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
}
.step-node:last-child { border-bottom: none; }
.step-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-color);
  color: var(--dark-color);
  font-family: var(--main-font);
  font-weight: 800;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-body h3 { color: #fff; margin-bottom: 6px; font-size: 16px; }
.step-body p { color: rgba(255,255,255,0.65); font-size: 14px; }

@media (min-width: 768px) {
  .steps-block { padding: 72px 24px; }
  .steps-row { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .step-node {
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-bottom: none;
    border-right: 1px solid rgba(255,255,255,0.08);
    padding: 0 28px;
  }
  .step-node:last-child { border-right: none; }
  .step-circle { margin-bottom: 16px; }
}

/* ===== FEATURES — timeline ===== */
.features { padding: 48px 16px; background: var(--background-color); }
.features-timeline { margin-top: 36px; position: relative; }
.features-timeline::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--border-color);
}
.tl-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 0 0 36px 0;
  position: relative;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-color);
  border: 3px solid var(--background-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
  position: relative;
  font-size: 18px;
}
.tl-content {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 20px 22px;
  flex: 1;
  border: 1px solid var(--divider-color);
}
.tl-content h3 { margin-bottom: 6px; color: var(--dark-color); }
.tl-content p { font-size: 14px; color: var(--secondary-color); }
.feature-icon { display: none; }

@media (min-width: 768px) {
  .features { padding: 80px 24px; }
  .features-timeline::before { left: 28px; }
  .tl-dot { width: 56px; height: 56px; font-size: 22px; }
  .tl-content { padding: 24px 28px; }
}

.section-title { text-align: center; }
.section-sub { text-align: center; color: var(--secondary-color); font-size: 16px; margin-top: 8px; margin-bottom: 8px; }
.section-tag {
  display: inline-block;
  background: var(--accent-color);
  color: var(--dark-color);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: var(--radius-btn);
  margin-bottom: 14px;
  font-family: var(--main-font);
}

/* ===== IMG LEFT ===== */
.img-text-section { padding: 48px 16px; background: #fff; }
.img-text-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
.img-text-img img {
  border-radius: var(--radius-lg);
  width: 100%;
  object-fit: cover;
  max-height: 440px;
}
.img-text-content h2 { margin-bottom: 18px; }
.img-text-content p { margin-bottom: 14px; color: var(--secondary-color); font-size: 15px; }
.img-text-content ul { list-style: none; padding: 0; margin: 18px 0; }
.img-text-content ul li {
  padding: 6px 0 6px 32px;
  position: relative;
  font-size: 15px;
  color: var(--text-color);
}
.img-text-content ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: 700;
}
@media (min-width: 768px) {
  .img-text-section { padding: 80px 24px; }
  .img-text-inner { grid-template-columns: 45fr 55fr; }
  .img-text-img { order: 1; }
  .img-text-content { order: 2; }
}

/* ===== TWO-COL TEXT ===== */
.two-col-section { padding: 48px 16px; background: var(--light-color); border-top: 1px solid var(--divider-color); border-bottom: 1px solid var(--divider-color); }
.two-col-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 36px;
}
.two-col-item h3 { color: var(--primary-color); margin-bottom: 12px; border-left: 4px solid var(--accent-color); padding-left: 14px; }
.two-col-item p { color: var(--text-color); font-size: 15px; margin-bottom: 12px; }
@media (min-width: 768px) {
  .two-col-section { padding: 72px 24px; }
  .two-col-inner { grid-template-columns: repeat(2, 1fr); }
}

/* ===== TESTIMONIALS — minimal ===== */
.testimonials { padding: 48px 16px; background: var(--dark-color); }
.testimonials h2 { color: #fff; text-align: center; }
.t-minimal-list { margin-top: 40px; display: flex; flex-direction: column; gap: 0; max-width: 800px; margin-left: auto; margin-right: auto; }
.t-minimal-item {
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.t-minimal-item:last-child { border-bottom: none; }
.t-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.t-name { font-weight: 700; font-size: 14px; color: var(--accent-color); font-family: var(--main-font); }
.t-stars { color: #f5c842; font-size: 15px; letter-spacing: 2px; }
.t-text { color: rgba(255,255,255,0.72); font-size: 15px; line-height: 1.65; }
@media (min-width: 768px) { .testimonials { padding: 80px 24px; } }

/* ===== CONTACT ===== */
.contact { padding: 48px 16px; background: var(--background-color); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 1024px) {
  .contact-inner { grid-template-columns: 1fr 1fr; max-width: 80%; margin: 0 auto; }
}
.contact-info h2 { margin-bottom: 20px; }
.contact-info p { margin-bottom: 12px; font-size: 15px; color: var(--secondary-color); }
.contact-info a { color: var(--primary-color); }
.contact-form-wrap h3 { margin-bottom: 20px; font-size: clamp(16px, 2.5vw, 20px); }
.form-field {
  width: 100%;
  padding: 12px 20px;
  border: 2px solid var(--divider-color);
  border-radius: var(--radius-btn);
  font-family: var(--alt-font);
  font-size: 15px;
  background: #fff;
  color: var(--text-color);
  margin-bottom: 14px;
  min-height: 44px;
  transition: border-color 0.2s;
}
.form-field:focus { outline: none; border-color: var(--primary-color); }
textarea.form-field { min-height: 100px; resize: vertical; border-radius: 24px; }
.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--gradient-primary);
  color: var(--dark-color);
  border: none;
  border-radius: var(--radius-btn);
  font-family: var(--main-font);
  font-weight: 700;
  font-size: 15px;
  min-height: 44px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-submit:hover { opacity: 0.85; }
@media (min-width: 768px) { .contact { padding: 80px 24px; } }

/* ===== FAQ ===== */
.faq { padding: 48px 16px; background: #fff; }
.faq-list { margin-top: 36px; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--light-color);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  border-left: 4px solid var(--accent-color);
}
.faq-item h3 { color: var(--dark-color); margin-bottom: 10px; font-size: clamp(15px, 2.5vw, 17px); }
.faq-item p { font-size: 15px; color: var(--secondary-color); }
@media (min-width: 768px) { .faq { padding: 80px 24px; } }

/* ===== FOOTER ===== */
footer {
  background: var(--dark-color);
  color: rgba(255,255,255,0.75);
  padding: 40px 16px 24px;
  position: static;
  border-top: 4px solid var(--accent-color);
}
footer img[alt="logo"] { filter: brightness(0) invert(1); }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.footer-logo .logo img { height: 36px; }
.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-nav ul li a {
  color: rgba(255,255,255,0.60);
  font-size: 13px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s;
  padding: 0 4px;
}
.footer-nav ul li a:hover { color: var(--accent-color); }
.footer-copy {
  border-top: 1px solid rgba(255,255,255,0.10);
  margin-top: 24px;
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; align-items: center; }
  .footer-nav ul { flex-direction: row; flex-wrap: wrap; gap: 4px 20px; justify-content: flex-end; }
}