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

:root {
  --color-primary: #2b8fd4;
  --color-primary-dark: #1a6fb0;
  --color-secondary: #5bbce6;
  --color-accent: #89d4f5;
  --color-bg: #f0f8ff;
  --color-bg-alt: #ffffff;
  --color-text: #1a3a50;
  --color-text-light: #5a7a8f;
  --color-border: #c8e1f0;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --font-heading: 'Fredoka', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: var(--color-primary);
  text-decoration: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === HEADER === */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-primary);
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--color-primary);
}

/* === HERO === */
.hero {
  background: linear-gradient(135deg, #1a6fb0 0%, #2b8fd4 40%, #5bbce6 70%, #89d4f5 100%);
  color: white;
  padding: 5rem 0;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0.95;
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary {
  background: white;
  color: var(--color-primary);
}

.hero .btn-primary:hover {
  background: #e8f4fd;
}

.btn-submit {
  background: var(--color-primary);
  color: white;
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  margin-top: 1rem;
}

.btn-submit:hover {
  background: var(--color-primary-dark);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* === SECTIONS === */
.section {
  padding: 5rem 0;
}

.section h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--color-text-light);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

/* === ABOUT === */
.section-about {
  background: var(--color-bg-alt);
}

.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.about-text h2 {
  margin-bottom: 1rem;
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--color-text-light);
}

/* === MACHINE === */
.section-machine {
  background: var(--color-bg);
}

.machine-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 3rem;
  align-items: start;
}

.machine-text h2 {
  margin-bottom: 1rem;
}

.machine-text > p {
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.machine-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.info-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.info-card-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.info-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.info-card ul {
  list-style: none;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.info-card li {
  padding: 0.25rem 0;
}

/* === ORDER FORM === */
.section-order {
  background: var(--color-bg-alt);
}

.order-form {
  max-width: 700px;
}

fieldset {
  border: none;
  margin-bottom: 2rem;
}

legend {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-row-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.5rem;
}

.form-group label {
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(43, 143, 212, 0.15);
}

/* Flavor grid */
.flavor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.flavor-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.15s, border-color 0.15s;
}

.flavor-option:hover {
  background: #e8f4fd;
  border-color: var(--color-primary);
}

.flavor-option input:checked + span,
.flavor-option:has(input:checked) {
  background: #d4edfc;
  border-color: var(--color-primary);
}

/* Price estimate */
.price-estimate {
  background: #f0f7ff;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  max-width: 700px;
}

.price-estimate h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.price-line {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  font-size: 0.95rem;
  color: var(--color-text-light);
}

.price-total {
  border-top: 2px solid var(--color-secondary);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text);
}

/* Success / Error */
.form-success {
  text-align: center;
  padding: 3rem 0;
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.form-success h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.form-error {
  background: #fde8e8;
  border-radius: var(--radius-sm);
  padding: 1rem;
  color: #c0392b;
  margin-top: 1rem;
  max-width: 700px;
}

.validation-msg {
  background: #fff3e0;
  border: 1px solid #ffcc80;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: #e65100;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  max-width: 700px;
}

/* === FOOTER === */
.footer {
  background: #1a3a50;
  color: #8fb8d4;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
}

.footer-inner p {
  margin-bottom: 0.25rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-image img {
    margin: 0 auto;
    width: 200px;
    height: 200px;
  }

  .machine-grid {
    grid-template-columns: 1fr;
  }

  .machine-image {
    order: -1;
  }

  .info-cards {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 3rem 0;
  }

  .section {
    padding: 3rem 0;
  }

  .nav {
    gap: 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .flavor-grid {
    grid-template-columns: 1fr 1fr;
  }

  .logo-text {
    font-size: 1.1rem;
  }
}
