:root {
  --color-primary: #576A8F;
  --color-secondary: #B7BDF7;
  --color-accent: #FF7444;
  --color-bg: #FFF8DE;
  --color-text: #2A2E39;
  --font-main: "Segoe UI", "Yu Gothic UI", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;
  --shadow-soft: 0 8px 24px rgba(87, 106, 143, 0.15);
  --shadow-hover: 0 12px 28px rgba(87, 106, 143, 0.25);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --space-xs: 0.5rem;
  --space-sm: 0.875rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --max-width: 1120px;
  --color-muted: #5f6678;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background: linear-gradient(145deg, #fffcf0, var(--color-bg));
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover,
a:focus-visible {
  color: var(--color-accent);
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 222, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(87, 106, 143, 0.15);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.brand {
  display: block;
}

.brand img {
  width: 4rem;
  position: relative;
  z-index: 20;
}

.brand img {
  display: inline-block;
  transform: rotate(-5deg);
  transition: transform var(--transition-normal);
}

.brand:hover img {
  transform: rotate(0);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .brand img {
    width: 3rem;
    position: relative;
    z-index: 20;
  }
}

@media (max-width: 768px) {
  .brand img {
    width: 3rem;
    position: relative;
    z-index: 20;
  }
}

@media (max-width: 576px) {
  .brand img {
    width: 2rem;
    position: relative;
    z-index: 20;
  }
}

@media (max-width: 400px) {
  .brand img {
    width: 2rem;
    position: relative;
    z-index: 20;
  }
}

.menu {
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  background: #ffffff;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

.menu a {
  display: inline-block;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.menu a:hover,
.menu a:focus-visible {
  background: var(--color-secondary);
  color: var(--color-text);
}

.hero {
  padding-block: var(--space-xl);
  animation: fade-in-up 0.8s ease both;
}

.hero article {
  max-width: 30rem;
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: var(--space-sm);
}

.product {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-lg);
  align-items: start;
}

.product-card,
.form-card,
.grid-section article,
.faq-section article,
.text-section,
.cta-section,
.disclaimer,
.values-section article,
.planner-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(87, 106, 143, 0.2);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.product-card {
  padding: var(--space-md);
}

.product-card img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  display: block;
}

.badge,
.trust {
  display: inline-block;
  margin: 0 0 var(--space-xs);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  background: var(--color-secondary);
  font-size: 0.92rem;
}

.trust {
  background: #eaf0ff;
}

.price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.vat-note {
  margin-top: var(--space-xs);
  color: var(--color-muted);
  font-size: 0.92rem;
}

.old-price {
  font-size: 1rem;
  text-decoration: line-through;
  color: #6d7385;
  margin-right: var(--space-xs);
}

.form-card {
  padding: var(--space-md);
}

form {
  display: grid;
  gap: 0.35rem;
}

label {
  font-weight: 600;
  margin-top: var(--space-xs);
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(87, 106, 143, 0.35);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.8rem;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(87, 106, 143, 0.15);
}

button,
.cta-btn {
  display: inline-block;
  border: 0;
  border-radius: var(--radius-lg);
  padding: 0.75rem 1.1rem;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

button:hover,
.cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

button:active,
.cta-btn:active {
  transform: translateY(0);
}

.error {
  min-height: 1.1rem;
  margin: 0 0 var(--space-xs);
  color: #b42222;
  font-size: 0.88rem;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 400;
}

.checkbox input {
  width: auto;
  margin-top: 0.28rem;
}

.grid-section {
  padding-block: var(--space-xl);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

.grid-section>h2 {
  grid-column: 1 / -1;
}

.grid-section article {
  padding: var(--space-md);
  transition: transform 0.25s ease;
}

.grid-section article:hover {
  transform: translateY(-2px);
}

.text-section,
.faq-section,
.cta-section,
.disclaimer {
  margin-block: var(--space-lg);
  padding: var(--space-md);
}

.values-section,
.planner-section {
  margin-block: var(--space-lg);
}

.values-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

.values-section>h2 {
  grid-column: 1 / -1;
}

.values-section article {
  padding: var(--space-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.values-section article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.planner-section p {
  max-width: 48rem;
}

.planner-card {
  padding: var(--space-md);
}

#reminder-range {
  margin-block: var(--space-sm);
}

#planner-result {
  margin: 0;
  color: var(--color-primary);
  font-weight: 600;
}

.faq-section article {
  margin-top: var(--space-sm);
  padding: var(--space-sm);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: #f8f9ff;
  color: var(--color-text);
  border: 1px solid rgba(87, 106, 143, 0.2);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.faq-answer {
  margin: var(--space-xs) 0 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 8rem;
  opacity: 1;
}

.cta-section .cta-btn {
  margin-bottom: var(--space-sm);
}

.map-wrap {
  margin: var(--space-sm) 0 0;
}

.map-wrap iframe {
  width: 100%;
  border: 0;
  border-radius: var(--radius-sm);
}

.cookie-banner {
  position: fixed;
  inset-inline: 1rem;
  bottom: 1rem;
  z-index: 200;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid rgba(87, 106, 143, 0.2);
  padding: var(--space-md);
  box-shadow: var(--shadow-hover);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.cookie-settings {
  width: min(94vw, 34rem);
  border: 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  padding: 0;
}

.cookie-settings form {
  padding: var(--space-md);
}

.site-footer {
  padding: 1rem;
  text-align: center;
  border-top: 1px solid rgba(87, 106, 143, 0.2);
  background: rgba(255, 255, 255, 0.75);
}

.policy-page main {
  padding-block: var(--space-xl);
}

.policy-page article {
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: var(--space-md);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .product {
    grid-template-columns: 1fr;
  }

  .grid-section {
    grid-template-columns: 1fr 1fr;
  }

  .values-section {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav {
    flex-direction: column;
    padding-block: 0.8rem;
  }

  .menu {
    justify-content: center;
  }

  .grid-section {
    grid-template-columns: 1fr;
  }

  .values-section {
    grid-template-columns: 1fr;
  }

  .cookie-banner {
    inset-inline: 0.5rem;
    bottom: 0.5rem;
  }
}