/* ============================================
   GREITAS SUPIRKIMAS – Stylesheet
   ============================================ */

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

:root {
  --primary:      #1a3a6b;   /* dark navy */
  --primary-dark: #112856;
  --accent:       #f59e0b;   /* amber */
  --accent-dark:  #d97706;
  --surface:      #ffffff;
  --surface-alt:  #f1f5f9;
  --border:       #e2e8f0;
  --text:         #1e293b;
  --text-muted:   #64748b;
  --success:      #16a34a;
  --error:        #dc2626;
  --radius:       10px;
  --radius-lg:    16px;
  --shadow:       0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.12);
  --transition:   0.2s ease;
  --font:         'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeSpeed;
}

/* Reduce layout shift from font swap */
body, .btn, .form__input, .form__select, .form__textarea {
  font-synthesis: none;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.3;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }

.btn--primary {
  background: var(--accent);
  color: #1a1a1a;
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245,158,11,0.4);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn--outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn--ghost {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.25);
}

.btn--lg  { padding: 13px 28px; font-size: 16px; }
.btn--xl  { padding: 16px 36px; font-size: 17px; border-radius: 12px; }
.btn--submit { width: 100%; max-width: 420px; }

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}
.logo__icon { font-size: 24px; }
.logo__text strong { color: var(--primary); }

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__link {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 15px;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: color var(--transition);
  text-decoration: none;
}
.nav__link:hover { color: var(--primary); text-decoration: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0f2044 100%);
  color: #fff;
  padding: 72px 0 80px;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245,158,11,0.2);
  border: 1px solid rgba(245,158,11,0.4);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.highlight { color: var(--accent); }

.hero__subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  max-width: 540px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.stat strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat span {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
}

.hero__card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  text-align: center;
  min-width: 220px;
}
.hero__card-icon { font-size: 32px; margin-bottom: 8px; }
.hero__card-title { font-size: 12px; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.08em; }
.hero__card-car { font-size: 18px; font-weight: 700; margin: 8px 0 4px; }
.hero__card-price { font-size: 28px; font-weight: 800; color: var(--accent); }
.hero__card-time { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 6px; }

/* --- Sections --- */
.section { padding: 80px 0; content-visibility: auto; contain-intrinsic-size: auto 600px; }
.section--alt { background: var(--surface-alt); }
.section--form { background: var(--primary); }

.section__title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.section__title--light { color: #fff; }

.section__subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 17px;
  margin-bottom: 52px;
}
.section__subtitle--light { color: rgba(255,255,255,0.7); }

/* --- Steps --- */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.step {
  flex: 1;
  min-width: 220px;
  max-width: 280px;
  text-align: center;
  padding: 32px 24px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  position: relative;
}
.step__number {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #1a1a1a;
  font-weight: 800;
  font-size: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step__icon { font-size: 40px; margin-bottom: 16px; }
.step__title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.step__desc { color: var(--text-muted); font-size: 15px; line-height: 1.6; }
.step__arrow {
  font-size: 28px;
  color: var(--accent);
  align-self: center;
  margin-top: -8px;
  font-weight: 700;
}

/* --- Benefits --- */
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.benefit {
  padding: 28px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.benefit:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.benefit__icon { font-size: 36px; margin-bottom: 14px; }
.benefit h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.benefit p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }

/* --- Form --- */
.form {
  max-width: 840px;
  margin: 0 auto;
}

.form__section {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-lg);
}

.form__section-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.form__section-icon { font-size: 20px; }

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

.form__group { display: flex; flex-direction: column; gap: 6px; }
.form__group--full { grid-column: 1 / -1; }

.form__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.required { color: var(--error); margin-left: 2px; }

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,58,107,0.1);
}
.form__input.error,
.form__select.error,
.form__textarea.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(220,38,38,0.08);
}
.form__input::placeholder,
.form__textarea::placeholder { color: #94a3b8; }
.form__select { cursor: pointer; }
.form__textarea { resize: vertical; min-height: 100px; }

.form__error {
  font-size: 13px;
  color: var(--error);
  margin-top: 4px;
}

.form__char-count {
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
  margin-top: 4px;
}

/* Condition options */
.condition-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.condition-option { cursor: pointer; }
.condition-option input { position: absolute; opacity: 0; pointer-events: none; }
.condition-option__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  background: var(--surface-alt);
}
.condition-option input:checked + .condition-option__box {
  border-color: var(--primary);
  background: #eef3fb;
  box-shadow: 0 0 0 3px rgba(26,58,107,0.1);
}
.condition-option:hover .condition-option__box { border-color: var(--primary); }
.condition-option__emoji { font-size: 26px; margin-bottom: 6px; }
.condition-option__label { font-size: 14px; font-weight: 700; color: var(--text); }
.condition-option__desc { font-size: 12px; color: var(--text-muted); margin-top: 4px; line-height: 1.4; }

/* Upload zone */
.upload-zone {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--surface-alt);
}
.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--primary);
  background: #eef3fb;
}
.upload-zone__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.upload-zone__icon { font-size: 40px; margin-bottom: 10px; }
.upload-zone__title { font-size: 15px; color: var(--text); margin-bottom: 6px; }
.upload-zone__hint { font-size: 13px; color: var(--text-muted); }

/* Photo previews */
.photo-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.photo-preview {
  position: relative;
  width: 100px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--surface-alt);
}
.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-preview__remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.photo-preview__remove:hover { background: var(--error); }

/* Checkbox */
.form__checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}
.form__checkbox-label input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--primary);
  cursor: pointer;
}
.form__checkbox-label a { color: var(--primary); }

/* Captcha */
.form__captcha {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
}
.form__captcha-note { font-size: 13px; color: var(--text-muted); }

/* Submit */
.form__submit {
  text-align: center;
  padding-bottom: 8px;
}
.form__submit-note {
  margin-top: 14px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

/* Success/Error messages */
.form__message {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  margin-top: 20px;
  box-shadow: var(--shadow-lg);
}
.form__message-icon { font-size: 48px; margin-bottom: 14px; }
.form__message h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.form__message p { color: var(--text-muted); font-size: 16px; }
.form__message--success h3 { color: var(--success); }
.form__message--error h3 { color: var(--error); }

/* Spinner in button */
.btn--submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

/* --- Footer --- */
.footer {
  background: #0f1e3d;
  color: rgba(255,255,255,0.8);
  padding: 48px 0 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 48px;
  align-items: start;
  padding-bottom: 48px;
}
.footer__brand .logo__icon { font-size: 28px; }
.footer__brand .logo__text { font-size: 20px; color: #fff; }
.footer__tagline { font-size: 14px; color: rgba(255,255,255,0.5); margin-top: 8px; }
.footer__contact { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer__contact a { color: rgba(255,255,255,0.8); }
.footer__contact a:hover { color: var(--accent); }
.footer__links { display: flex; flex-direction: column; gap: 8px; }
.footer__links a { font-size: 14px; color: rgba(255,255,255,0.5); }
.footer__links a:hover { color: rgba(255,255,255,0.9); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__image { display: none; }
  .step__arrow { display: none; }
  .steps { flex-direction: column; align-items: center; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 680px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 4px;
    z-index: 99;
  }
  .nav-toggle { display: flex; }
  .header__inner { position: relative; }

  .hero { padding: 48px 0 56px; }
  .hero__actions { flex-direction: column; }
  .hero__stats { gap: 24px; }

  .form__section { padding: 24px 18px; }
  .form__grid { grid-template-columns: 1fr; }
  .condition-options { grid-template-columns: repeat(2, 1fr); }
  .form__captcha { padding: 20px 18px; }
  .section { padding: 56px 0; }
}

@media (max-width: 400px) {
  .condition-options { grid-template-columns: 1fr 1fr; }
}
