:root {
  --ink: #1d2a3b;
  --ink-light: #33465e;
  --sand: #f4ede1;
  --blush: #f8d2c2;
  --accent: #d97b8f;
  --accent-strong: #c45d73;
  --white: #ffffff;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #fff9f7;
  padding-top: 64px;
}

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

a:hover {
  text-decoration: underline;
}

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

h1,
h2,
h3 {
  font-family: 'Playfair Display', 'Nunito', serif;
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10rem;
  padding: 2.5rem clamp(1.5rem, 5vw, 4rem) 3rem;
  align-items: center;
  background-image:
    linear-gradient(
      to bottom right,
      rgba(161, 60, 82, 1) 0%,
      rgba(176, 91, 109, 0.9) 38%,
      rgba(249, 157, 171, 0.65) 100%
    ),
    linear-gradient(0deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.18)),
    url('../img/marvany.png');
  background-size: cover, cover, cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: normal, screen, soft-light;
}

.hero__image {
  position: relative;
  max-width: 520px;
  margin-left: auto;
}

.hero__image img {
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  margin: 0 auto;
}

.hero__content::before {
  content: "";
  position: absolute;
  inset: -1.25rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.595), rgba(255, 255, 255, 0.66)),
    url('../img/marvany.png');
  background-size: cover;
  background-position: center;
  background-blend-mode: screen;
  mask-image:
    radial-gradient(120% 120% at 50% 50%, #fff 70%, transparent 100%),
    url('../img/marvany.png');
  -webkit-mask-image:
    radial-gradient(120% 120% at 50% 50%, #fff 70%, transparent 100%),
    url('../img/marvany.png');
  mask-size: 140% 140%, cover;
  -webkit-mask-size: 140% 140%, cover;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
  opacity: 1;
  filter: saturate(1.05) contrast(1.06);
  border-radius: 22px;
  z-index: -1;
  pointer-events: none;
}

.hero__content h1 {
  font-size: clamp(2rem, 3.2vw, 3rem);
  margin: 0.5rem 0 0.75rem;
}

.hero__content .lead {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 56ch;
  margin: 0 auto 1.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0;
}

.lead {
  margin: 0;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(196, 93, 115, 0.22);
}

.btn.ghost {
  border-color: var(--ink-light);
  color: var(--ink);
  background: transparent;
}

.btn.ghost:hover {
  background: rgba(29, 42, 59, 0.06);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--ink-light);
  font-weight: 600;
  justify-content: center;
}

.section {
  padding: 3.5rem clamp(1.5rem, 5vw, 4rem);
}

.section--highlight {
  background: linear-gradient(135deg, rgba(217, 123, 143, 0.12), rgba(248, 210, 194, 0.28));
}

.section__intro {
  max-width: 720px;
  margin-bottom: 2rem;
}

.section__intro h2 {
  margin: 0.35rem 0;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: var(--accent-strong);
}

.section__intro p {
  margin: 0;
  color: var(--ink-light);
  line-height: 1.7;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: linear-gradient(180deg, #ffffff 0%, rgba(248, 210, 194, 0.16) 100%);
  border: 1px solid rgba(217, 123, 143, 0.16);
  box-shadow: 0 18px 32px rgba(217, 123, 143, 0.12);
  padding: 1.5rem;
  border-radius: 20px;
  display: grid;
  gap: 0.75rem;
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blush), var(--sand));
  display: grid;
  place-items: center;
  font-size: 1.3rem;
}

.card h3 {
  margin: 0;
}

.card p {
  margin: 0;
  color: var(--ink-light);
  line-height: 1.6;
}

.tag {
  align-self: flex-start;
  background: rgba(217, 123, 143, 0.18);
  color: #9b3c55;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.price-card {
  background: linear-gradient(180deg, #ffffff 0%, rgba(248, 210, 194, 0.18) 100%);
  border: 1px solid rgba(217, 123, 143, 0.18);
  box-shadow: 0 20px 36px rgba(217, 123, 143, 0.14);
  padding: 1.75rem;
  border-radius: 20px;
  display: grid;
  gap: 0.75rem;
  text-align: center;
}

.price-card--accent {
  background: linear-gradient(180deg, #ffffff 0%, rgba(248, 210, 194, 0.18) 100%);
  border-color: rgba(217, 123, 143, 0.32);
  box-shadow: 0 22px 38px rgba(217, 123, 143, 0.16);
}

.price-card--accent .btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow);
}

.price-card--accent .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(196, 93, 115, 0.22);
}

.price-card h3 {
  margin: 0;
}

.price-card .price {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0;
}

.price-card p {
  margin: 0;
  color: var(--ink-light);
  line-height: 1.6;
}

.steps {
  display: grid;
  gap: 1rem;
  max-width: 720px;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.step__index {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: var(--white);
  font-weight: 800;
  display: grid;
  place-items: center;
}

.step h3 {
  margin: 0 0 0.25rem;
}

.step p {
  margin: 0;
  color: var(--ink-light);
  line-height: 1.6;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.testimonial {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.75rem;
  border: 1px solid rgba(217, 123, 143, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, rgba(246, 197, 197, 0.033) 100%);
}

.testimonial img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 16px;
}

.testimonial blockquote {
  margin: 0;
  color: var(--ink-light);
  line-height: 1.7;
}

.testimonial figcaption {
  font-weight: 700;
}

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  align-items: center;
}

.contact__content p {
  color: var(--ink-light);
  line-height: 1.7;
}

.contact__list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: grid;
  gap: 0.5rem;
  color: var(--ink-light);
}

.contact__card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact__overlay {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(180deg, transparent, rgba(29, 42, 59, 0.8));
  color: var(--white);
  padding: 1.25rem;
  font-weight: 700;
  line-height: 1.5;
}

body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 1000;
}

.modal.is-open {
  pointer-events: auto;
  opacity: 1;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(29, 42, 59, 0.28);
  backdrop-filter: blur(6px);
}

.modal__dialog {
  position: relative;
  width: min(520px, 92vw);
  background: #ffffff;
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.18), 0 10px 30px rgba(196, 93, 115, 0.16);
  border: 1px solid rgba(217, 123, 143, 0.18);
  display: grid;
  gap: 0.7rem;
  z-index: 1;
}

.modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(29, 42, 59, 0.12);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.modal__close:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.modal__eyebrow {
  margin: 0;
}

.modal__title {
  margin: 0;
  font-size: 1.5rem;
}

.modal__price {
  margin: 0;
  font-weight: 800;
  color: var(--accent-strong);
}

.modal__desc {
  margin: 0;
  color: var(--ink-light);
  line-height: 1.65;
}

.modal__actions {
  display: flex;
  justify-content: center;
}

.footer {
  padding: 1.5rem clamp(1.5rem, 5vw, 4rem);
  background: #13202f;
  color: var(--sand);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
}

.footer a {
  color: var(--sand);
  font-weight: 700;
}

.footer__links {
  display: flex;
  gap: 1rem;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  background-image:
    linear-gradient(0deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
    linear-gradient(
      to bottom right,
      rgba(161, 60, 82, 0.5) 0%,
      rgba(176, 91, 109, 0.44) 40%,
      rgba(249, 157, 171, 0.35) 100%
    );
  background-blend-mode: normal, screen;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  z-index: 999;
  gap: 1rem;
}

.topbar__title {
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.topbar__lang {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.2rem;
  border-radius: 14px;
  border: 1px solid rgba(29, 42, 59, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}
.topbar__lang-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.1rem;
  transition: transform 0.15s ease;
}

.topbar__lang-toggle:hover {
  transform: translateY(-1px);
}

.topbar__lang-list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.6rem 0.55rem;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 14px;
  border: 1px solid rgba(29, 42, 59, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 1000;
}

.topbar__lang:hover .topbar__lang-list,
.topbar__lang:focus-within .topbar__lang-list {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.topbar__lang-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.55rem;
  width: 100%;
  min-width: 150px;
  height: 36px;
  border-radius: 10px;
  background: rgba(217, 123, 143, 0.12);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.topbar__lang-item:hover {
  background: rgba(217, 123, 143, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(196, 93, 115, 0.16);
}

.topbar__lang-item .flag {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.flag-hu {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'><rect width='3' height='2' fill='%23fff'/><rect width='3' height='0.666' y='0' fill='%23cd2a3e'/><rect width='3' height='0.666' y='1.334' fill='%235c9e31'/></svg>");
}

.flag-gb {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 36'><rect width='60' height='36' fill='%23012c5f'/><path d='M0 0l60 36m0-36L0 36' stroke='%23fff' stroke-width='8'/><path d='M0 0l60 36m0-36L0 36' stroke='%23c8102e' stroke-width='4'/><path d='M30 0v36M0 18h60' stroke='%23fff' stroke-width='10'/><path d='M30 0v36M0 18h60' stroke='%23c8102e' stroke-width='6'/></svg>");
}

.flag-de {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'><rect width='3' height='2' fill='%23ffce00'/><rect width='3' height='1.333' y='0' fill='%23dd0000'/><rect width='3' height='0.666' y='0' fill='%23000'/></svg>");
}

.flag-fr {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'><rect width='1' height='2' fill='%230035a9'/><rect x='1' width='1' height='2' fill='%23fff'/><rect x='2' width='1' height='2' fill='%23ed2939'/></svg>");
}

.topbar__brand {
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--ink);
  white-space: nowrap;
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 700;
}

.topbar__nav a {
  color: var(--ink);
  padding: 0.35rem 0.25rem;
  border-radius: 8px;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.topbar__nav a:hover {
  background: rgba(29, 42, 59, 0.06);
}

@media (max-width: 720px) {
  body {
    padding-top: 64px;
  }

  .topbar {
    height: 64px;
    flex-wrap: nowrap;
    row-gap: 0;
    padding: 0 0.65rem;
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .topbar__brand {
    display: none;
  }

  .topbar__nav {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-start;
    gap: 0.65rem;
    overflow-x: auto;
    padding-bottom: 0;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .topbar__nav::-webkit-scrollbar {
    display: none;
  }

  .topbar__lang {
    padding: 0.15rem;
    margin-left: 0.35rem;
  }

  .topbar__lang-toggle {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .topbar__lang-list {
    gap: 0.25rem;
    padding: 0.45rem 0.5rem;
  }

  .topbar__lang-item {
    min-width: 140px;
    height: 34px;
    font-size: 0.85rem;
  }

  .hero {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .hero__content {
    order: 1;
  }

  .hero__image {
    order: 2;
    margin-left: 0;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 1.5rem;
  }

  .hero__content h1 {
    font-size: 2rem;
  }
}
