@charset "UTF-8";
/* ==========================================================================
   Elin Wyn — Personal Trainer
   Single stylesheet, shared by the English and Welsh pages.
   Mobile-first. Breakpoints mirror the ones the original Elementor build used:
   767 / 1024 / 1366, expressed here as min-width 768 / 1025 / 1367.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Palette, lifted verbatim from the Astra global colours */
  --c-gold:        #cdb68e;
  --c-gold-dark:   #99866b;
  --c-ink:         #292929;
  --c-body:        #4a4a4a;
  --c-bg:          #e8e6e2;
  --c-white:       #feffff;
  --c-cream:       #f0e6c5;
  --c-deep:        #141004;
  --c-black:       #000;
  --c-hairline:    #7a7a7a;
  --c-field-line:  #69727d;
  --c-accordion-line: #d5d8dc;
  --c-accordion-ink:  #1f2124;

  /* Type */
  --font-body:    "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --lh-body: 1.7em;   /* em, not unitless — see note below */

  /* Layout */
  --container: 1120px;
  --hero-content: 1080px;
  --about-content: 1140px;

  /* Radii */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 30px;

  --focus: 3px solid var(--c-gold);
  --focus-offset: 2px;
}

/* --------------------------------------------------------------------------
   2. Fonts — self-hosted, subset to Latin + Latin Extended-A so the Welsh
   diacritics (â, ê, ŵ) survive. Both files are variable, 200–800.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   3. Reset and base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--c-bg);
  color: var(--c-body);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--c-ink);
}

/* Astra's heading scale, reproduced verbatim. Note that it steps at 545px and
   922px — the theme's own breakpoints — not at the 768/1025 used by the layout. */
h1 { font-size: 30px; line-height: 1.4em; }
h2 { font-size: 24px; line-height: 1.3em; }
h3 { font-size: 20px; line-height: 1.3em; }
h4 { font-size: 19px; line-height: 1.2em; font-weight: 500; }
h5 { font-size: 16px; line-height: 1.2em; font-weight: 500; }
h6 { font-size: 15px; line-height: 1.25em; font-weight: 500; }

@media (min-width: 545px) {
  h1 { font-size: 44px; }
  h2 { font-size: 32px; }
  h3 { font-size: 20px; }
  h4 { font-size: 20px; }
  h5 { font-size: 18px; }
}

@media (min-width: 922px) {
  h1 { font-size: 64px; }
  h2 { font-size: 34px; }
  h3 { font-size: 24px; }
}

p { margin: 0 0 1.6em; }
p:last-child { margin-bottom: 0; }

figure, blockquote, figcaption { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }

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

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: var(--focus);
  outline-offset: var(--focus-offset);
  border-radius: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--c-ink);
  color: var(--c-white);
  font-weight: 500;
  text-decoration: none;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  transition: top 150ms ease;
}
.skip-link:focus { top: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   4. Header — sits over the hero, hence the negative bottom margin
   -------------------------------------------------------------------------- */

.site-header {
  position: relative;
  z-index: 1;
  padding-top: 10px;
  margin-bottom: -102px;
}

.site-header__inner {
  display: flex;
  align-items: center;
}

.site-header__brand { width: 25%; padding: 10px; }

.site-header__logo { display: block; }
.site-header__logo img { width: 85px; max-width: 100%; }

.lang-nav {
  width: 75%;
  padding: 10px;
  display: flex;
  justify-content: flex-end;
}

.lang-nav a {
  padding: 10px 20px;
  font-weight: 500;
  text-decoration: none;
  color: var(--c-cream);
  background-color: var(--c-ink);
  transition: background-color 300ms ease, color 300ms ease;
}

.lang-nav a:hover {
  color: #fff;
  background-color: rgb(74 74 74 / 0.66);
}

.lang-nav a[aria-current="page"] {
  color: #fff;
  background-color: var(--c-black);
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 100vh;
  padding: 65% 0 0 5%;
  overflow: hidden;
}

/* The photograph is a real <img> rather than a background so that it can carry
   srcset, explicit dimensions and fetchpriority. */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* The text column's percentage width and right padding resolve against this
   wrapper, which is what `--content-width: 1080px` did on the original. */
.hero__wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-inline: auto;
  display: flex;
}

.hero__inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  padding-right: 35%;
}

.hero h1 {
  font-size: 51px;
  line-height: 1.2;
  color: #fff;
}

/* Welsh sets the hero type and measure differently from English. */
.page-cy .hero__inner { padding-right: 15%; }
.page-cy .hero h1 { font-size: 52px; line-height: 1.4em; }

/* --------------------------------------------------------------------------
   6. About — "Meet Elin Wyn"
   -------------------------------------------------------------------------- */

.about { padding-top: 35px; }

.about__row {
  display: flex;
  flex-wrap: wrap;
  padding-bottom: 60px;
}

.about__figure {
  width: 100%;
  padding-bottom: 45px;
}

.about__figure img {
  width: 90%;
  margin-inline: auto;
  height: 500px;
  object-fit: cover;
  object-position: center center;
  border-radius: var(--r-md);
}

.about__body {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about h2 { margin-bottom: 20px; }

/* --------------------------------------------------------------------------
   7. How it works
   -------------------------------------------------------------------------- */

.how { padding: 0 10px 40px; }
.page-cy .how { padding-bottom: 60px; }

.how__row {
  display: flex;
  flex-wrap: wrap;
}

.how__heading { width: 100%; padding: 10px; }
.how__list { width: 100%; padding: 10px; }
.how__list + .how__list { margin-top: -12px; }

.tick-list li {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  font-weight: 500;
}
.tick-list li:not(:last-child) { padding-bottom: 4px; }
.tick-list li:not(:first-child) { margin-top: 4px; }

.tick-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 7.5px;
  height: 7.5px;
  margin-top: 10px;
  border-radius: 50%;
  background: currentColor;
}

/* --------------------------------------------------------------------------
   8. Gallery carousel
   -------------------------------------------------------------------------- */

.gallery { padding: 0 10px 40px; }
.page-cy .gallery { padding-bottom: 60px; }

.carousel { position: relative; }

.carousel__viewport {
  display: flex;
  gap: 10px;
  height: 303px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: var(--r-sm);
  scroll-behavior: smooth;
}
.carousel__viewport::-webkit-scrollbar { display: none; }

.carousel__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  height: 100%;
}

.carousel__slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.carousel__btn {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: rgb(238 238 238 / 0.9);
  font-size: 20px;
  cursor: pointer;
  transition: color 200ms ease;
}
.carousel__btn:hover { color: #fff; }
.carousel__btn[disabled] { opacity: 0; pointer-events: none; }
.carousel__btn--prev { left: 8px; }
.carousel__btn--next { right: 8px; }
.carousel__btn svg { width: 12px; height: 18px; fill: currentColor;
  filter: drop-shadow(0 0 3px rgb(0 0 0 / 0.45)); }

.carousel__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 30px;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(0 0 0 / 0.2);
  cursor: pointer;
}
.carousel__dot[aria-current="true"] { background: #007aff; }

/* --------------------------------------------------------------------------
   9. Prices
   -------------------------------------------------------------------------- */

.prices { padding-top: 60px; }
.prices h2 { text-align: center; }

.prices__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 10px;
  margin-top: 20px;
}

.price { padding: 10px; }

.price img {
  width: 100%;
  border-radius: var(--r-sm);
}

.price h3 {
  margin-top: 15px;
  font-size: 20px;
  line-height: 1.3em;
}

.price__desc { margin: 0; }

.price__amount {
  margin: 20px 0 1.6em;
  font-weight: 500;
  color: var(--c-ink);
}
.price__amount:last-child { margin-bottom: 1.6em; }

.price__amount a {
  font-weight: 500;
  color: var(--c-ink);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.price__amount a:hover { color: var(--c-gold-dark); }

/* --------------------------------------------------------------------------
   10. Testimonials
   -------------------------------------------------------------------------- */

.testimonials { padding: 40px 0; }
.testimonials h2 { text-align: center; }

.testimonials__row {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 0 20px 80px;
  margin-top: 20px;
}

.testimonial {
  position: relative;
  isolation: isolate;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  border: 1px solid var(--c-hairline);
  border-radius: var(--r-md);
  overflow: hidden;
}

.testimonial__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.testimonial__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* The original lays a 50%-opacity brand-dark wash over each photograph. */
.testimonial::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--c-deep);
  opacity: 0.5;
}

.testimonial__inner {
  padding: 25px 16px 22px;
  border: 1px solid var(--c-white);
  border-radius: var(--r-sm);
  text-align: center;
}

.testimonial__quote {
  margin: 0 0 40px;
  font-size: 18px;
  color: var(--c-white);
}

.testimonial__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  line-height: 1;
}

.testimonial__meta img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.testimonial__attrib { text-align: left; }

.testimonial__name {
  font-size: 1rem;
  line-height: 24px;
  color: var(--c-gold);
}

.testimonial__role {
  font-size: 15px;
  line-height: 16px;
  color: var(--c-white);
}

/* Welsh runs longer, so the original nudges each card's inner padding. */
.page-cy .testimonial--jemma    .testimonial__inner { padding: 26px; }
.page-cy .testimonial--geoff    .testimonial__inner { padding: 60px 20px 20px; }
.page-cy .testimonial--geoff    .testimonial__quote { font-size: 18.5px; line-height: 26px; }
.page-cy .testimonial--margaret .testimonial__inner { padding: 48px 16px 20px; }
.page-cy .testimonial__name,
.page-cy .testimonial__role { text-shadow: 0 0 10px rgb(0 0 0 / 0.3); }

/* Google rating badge: a static linked image, so there is nothing to load late
   and nothing to shift. The bar keeps the height the original widget occupied. */
.reviews {
  display: flex;
  justify-content: center;
  padding-bottom: 40px;
}

.reviews__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 560px;
  min-height: 129px;
  padding: 17px 16px 10px;
  border-radius: var(--r-md);
  background: var(--c-gold);
}
.reviews__badge:hover img { filter: drop-shadow(0 3px 7px rgb(0 0 0 / 0.22)); }

/* The badge PNG carries its own rounded transparent corners, so the shadow is
   drawn with drop-shadow rather than box-shadow — box-shadow would trace the
   rectangular border box and leak past the curve. */
.reviews__badge img {
  filter: drop-shadow(0 2px 4px rgb(0 0 0 / 0.14));
  transition: filter 200ms ease;
}

/* --------------------------------------------------------------------------
   11. As appeared on
   -------------------------------------------------------------------------- */

.appeared { padding: 60px 0 40px; }
.appeared > .container { display: flow-root; }
.appeared h2 { text-align: center; margin-bottom: 20px; }

.appeared__row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
}

.appeared__cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 10px;
}

/* Each mark keeps the optical size it was given on the original, capped so it
   can never overflow its cell on narrow screens. */
.appeared__cell img {
  width: var(--logo-w);
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   12. FAQs
   -------------------------------------------------------------------------- */

.faqs { padding: 60px 20px 40px; }
.page-cy .faqs { padding: 0 20px 60px; }

/* Mobile puts the photograph after the questions; desktop puts it first. */
.faqs__row {
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: wrap-reverse;
}

.faqs__figure {
  width: 100%;
  padding-top: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.faqs__figure img {
  width: 100%;
  margin-inline: auto;
  height: 500px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--r-md);
}

.faqs__body { width: 100%; }
.faqs h2 { margin-bottom: 20px; }

.faq {
  border: 1px solid var(--c-accordion-line);
  border-bottom-width: 0;
}
.faq:last-of-type { border-bottom-width: 1px; }

.faq > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  font-weight: 500;
  color: var(--c-accordion-ink);
  cursor: pointer;
  list-style: none;
}
.faq > summary::-webkit-details-marker { display: none; }

.faq__title { flex: 1; }

.faq__icon {
  flex: 0 0 auto;
  position: relative;
  width: 15px;
  height: 15px;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 2px;
  background: currentColor;
  translate: 0 -50%;
}
.faq__icon::after {
  rotate: 90deg;
  transition: rotate 200ms ease, opacity 200ms ease;
}
.faq[open] .faq__icon::after { rotate: 0deg; opacity: 0; }

.faq__body { padding: 10px 21px 20px; }
.faq__body p:last-child { margin-bottom: 0; }

.faq__body ul li {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  padding-block: 2px;
}
.faq__body ul li::before {
  content: "";
  flex: 0 0 auto;
  width: 6px; height: 6px;
  margin-top: 11px;
  border-radius: 50%;
  background: currentColor;
}

/* --------------------------------------------------------------------------
   13. Contact
   -------------------------------------------------------------------------- */

.contact {
  padding: 100px 0;
  background: var(--c-ink);
}

.contact__row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 10px;
}

.contact__panel {
  width: 100%;
  margin: 10px;
  padding: 80px 40px 40px;
  border-radius: var(--r-lg);
  background: var(--c-black);
}

.contact__mark { width: 15%; margin-bottom: 20px; }

.contact__lede {
  margin: 0 0 20px;
  color: var(--c-white);
}

.contact__aside {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 10px;
}

.contact__map { display: block; }
.contact__map img { width: 100%; border-radius: var(--r-sm); }

.contact__card {
  padding: 40px 20px;
  border-radius: var(--r-lg);
  background: var(--c-black);
  color: var(--c-white);
  text-align: center;
}
.contact__card p { margin: 0; }
.contact__card__name { font-weight: 600; }
.contact__card__address { font-size: 0.875rem; }

/* --------------------------------------------------------------------------
   14. Form
   -------------------------------------------------------------------------- */

.form__grid {
  display: flex;
  flex-wrap: wrap;
  margin-inline: -5px;
}

.field {
  width: 100%;
  padding-inline: 5px;
  margin-bottom: 16px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 4px 12px;
  min-height: 33px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--c-black);
  background-color: var(--c-bg);
  border: 1px solid var(--c-field-line);
  border-radius: var(--r-md);
}

.field textarea {
  min-height: 100px;
  padding-block: 8px;
  resize: vertical;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--c-black) 50%),
                    linear-gradient(135deg, var(--c-black) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.field input::placeholder,
.field textarea::placeholder { color: #3a3a3a; opacity: 1; }

.field--consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-white);
}
.field--consent input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--c-gold);
  border-radius: 4px;
}
.field--consent a { color: var(--c-gold); }

.field__error {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: #ffb4a8;
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #ffb4a8; }

.form__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46.8px;
  padding: 17px 40px;
  border: 0;
  border-radius: var(--r-pill);
  background-color: var(--c-gold);
  color: var(--c-ink);
  font-size: 0.798rem;
  line-height: 1;
  text-transform: capitalize;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease;
}
/* White on the hover gold falls to 3.5:1, so the hover label goes brand-dark. */
.form__button:hover { background-color: var(--c-gold-dark); color: var(--c-deep); }
.form__button[disabled] { cursor: progress; opacity: 0.75; }

.form__spinner {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin { to { rotate: 360deg; } }

.form__status { margin-top: 16px; color: var(--c-white); }
.form__status:empty { margin-top: 0; }
.form__status--error { color: #ffb4a8; }

.form__done {
  padding: 20px 0;
  color: var(--c-white);
}
.form__done h3 { color: var(--c-white); font-size: 20px; margin-bottom: 10px; }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding: 40px 20px;
  background: var(--c-deep);
  font-size: 0.798rem;      /* 12.768px */
  line-height: 24.8064px;
}

/* Full-bleed three-column grid with 35px side padding — the footer is the one
   band that does not sit inside the 1120px container. Column widths measured
   off the original: (viewport - 70px padding - 100px gaps) / 3. */
.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  gap: 20px;
  padding-inline: 35px;
  max-width: none;
  text-align: center;
}
.site-footer__inner p { margin: 0; }
/* Stacked, the original spaces each row by a 20px grid gap plus a 10px margin
   on the item itself. Scoped to the stacked layout so the single-row desktop
   footer keeps its exact 47.2px height. */
/* Below the single-row desktop footer the original gives every item a 10px
   bottom margin on top of the grid gap. Matches the specificity of the
   `p { margin: 0 }` reset above and wins on source order — a bare `> *` loses
   to it, and only the icon picked it up. */
@media (max-width: 921px) {
  .site-footer__inner > p,
  .site-footer__inner > a { margin-bottom: 10px; }
}

.site-footer a {
  color: var(--c-gold);
  text-decoration: none;
}
/* The original leaves these undecorated; underline on hover and focus so the
   link is still discoverable without relying on colour alone. */
.site-footer a:hover,
.site-footer a:focus-visible { text-decoration: underline; }

.site-footer__credit { color: #fff; }

.site-footer__social {
  display: inline-flex;
  padding: 4px;
}
.site-footer__social svg { width: 16px; height: 16px; fill: var(--c-gold); }

/* --------------------------------------------------------------------------
   16. Simple content pages (privacy notice, 404)
   -------------------------------------------------------------------------- */

.page-simple {
  max-width: 760px;
  margin-inline: auto;
  padding: 140px 20px 80px;
}
.page-simple h1 { font-size: 34px; line-height: 1.3; margin-bottom: 24px; }
.page-simple h2 { font-size: 24px; line-height: 1.3; margin: 40px 0 12px; }
.page-simple ul { margin: 0 0 1.7em; }
.page-simple ul li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding-block: 3px;
}
.page-simple ul li::before {
  content: "";
  flex: 0 0 auto;
  width: 6px; height: 6px;
  margin-top: 11px;
  border-radius: 50%;
  background: currentColor;
}
.page-simple a { color: var(--c-body); text-underline-offset: 3px; }

.page-404 { text-align: center; }
.page-404 .page-404__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.page-404 .page-404__actions a {
  padding: 14px 28px;
  border-radius: var(--r-pill);
  background: var(--c-gold);
  color: var(--c-ink);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 200ms ease, color 200ms ease;
}
.page-404 .page-404__actions a:hover { background: var(--c-gold-dark); color: var(--c-deep); }

/* ==========================================================================
   17. Tablet — 768px and up
   ========================================================================== */

@media (min-width: 768px) {

  .site-header__brand { padding: 10px; }
  .site-header__logo img { width: 100px; }

  .hero {
    min-height: 735px;
    padding: 120px 20px 100px;
  }
  .hero__wrap { max-width: var(--hero-content); }
  .hero__inner {
    width: 71%;
    justify-content: center;
    padding-right: 30%;
  }
  .hero h1 { font-size: 84px; line-height: 1.2; }

  .page-cy .hero__inner {
    width: 100%;
    justify-content: flex-start;
    padding-right: 51%;
  }
  .page-cy .hero h1 { font-size: 52px; line-height: 1.4em; }

  .about { padding: 75px 0 10px; }
  .about__row { max-width: var(--container); margin-inline: auto; }
  .about__figure { width: 50%; padding-bottom: 0; }
  .about__body { width: 50%; padding-right: 80px; }

  .how { padding: 0 0 60px; }
  .how__row { flex-wrap: nowrap; }
  .how__heading, .how__list { flex-shrink: 0; }
  .how__heading { width: 20%; }
  .how__list { width: 40%; }
  .how__list + .how__list { margin-top: 0; }
  .page-cy .how__list { width: 42.75%; }
  .page-cy .how__list + .how__list { width: 35.833%; }

  .gallery { padding: 0 0 0; }
  .page-cy .gallery { padding-bottom: 40px; }
  .carousel__slide { flex-basis: calc((100% - 10px) / 2); }

  .prices { padding-top: 103px; }
  .page-cy .prices { padding-top: 100px; }
  .prices__grid { grid-template-columns: repeat(2, 1fr); }

  .testimonials { padding: 100px 0 0; }
  .testimonials__row { padding: 0 40px 80px; }
  .testimonial { padding: 40px; }

  .appeared { padding: 100px 0 0; }
  .appeared__row {
    gap: 20px;
    padding: 10px;
    margin: 0 0 -40px;
  }
  .appeared__row:first-of-type { margin-top: -10px; }
  .appeared__row--last { padding: 0; margin-bottom: -30px; }

  .faqs { padding: 100px 0; }
  .page-cy .faqs { padding: 100px 0; }
  .faqs__row { flex-direction: row; flex-wrap: nowrap; }
  .faqs__figure { width: 50%; padding: 10px; }
  .faqs__figure img { width: 90%; }
  .faqs__body { width: 50%; padding-right: 5%; }

  .contact__row { flex-wrap: nowrap; gap: 20px; }
  .contact__panel { width: 50%; margin: 5px; padding: 80px 40px 40px; }
  .contact__aside { width: 50%; }

}

@media (min-width: 545px) {
  .site-footer { padding: 50px; font-size: 0.684rem; }   /* 10.944px */
  .site-footer__inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 0 50px;
  }
}

@media (min-width: 922px) {
  .site-footer {
    padding: 10px 0;
    font-size: 0.75rem;     /* 12px */
    line-height: 27.2px;
  }
  .site-footer__inner { text-align: left; }
  .site-footer__inner > :first-child  { justify-self: start; }
  .site-footer__inner > :nth-child(2) { justify-self: center; text-align: center; }
  .site-footer__inner > :last-child   { justify-self: end; }
}

/* ==========================================================================
   18. Desktop — 1025px and up
   ========================================================================== */

@media (min-width: 1025px) {

  .site-header__brand { width: 50%; }
  .site-header__logo img { width: 20%; }
  .lang-nav { width: 50%; }

  .hero {
    min-height: 100vh;
    padding: 165px 0 0;
  }
  .hero__inner { justify-content: flex-start; }
  .hero h1 { font-size: 84px; line-height: 1.4; }

  .page-cy .hero { padding-top: 200px; }
  .page-cy .hero__inner { padding-right: 55%; }
  .page-cy .hero h1 { font-size: 64px; line-height: 1.4; }

  .about { padding: 100px 0 60px; }
  .about__row { padding-block: 10px; margin-top: 30px; }
  .about__figure { width: 46.25%; padding-inline: 40px; }
  .about__figure img { width: 90%; }
  .about__body { width: 53.75%; }

  .how__heading { width: 23%; }
  .how__list { width: 38.5%; }

  .carousel__slide { flex-basis: calc((100% - 20px) / 3); }

  .prices__grid { grid-template-columns: repeat(4, 1fr); }

  .testimonials__row { flex-direction: row; padding: 0 0 80px; }

  .faqs__figure { width: 50%; }
  .faqs__figure img { width: 65%; }
  .faqs__body { width: 50%; }



  .contact__row { gap: 80px; }
  .contact__panel { margin: 0; }
}

/* Above the laptop breakpoint the original pins the hero photograph so the
   page scrolls over it. clip-path on the section reproduces `fixed` without
   the mobile-Safari bugs. */
@media (min-width: 1367px) {
  .hero { clip-path: inset(0); }
  .hero__media {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
  }
}

/* ==========================================================================
   19. Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .carousel__viewport { scroll-behavior: auto; }
  .hero { clip-path: none; }
  .hero__media { position: absolute; width: auto; height: auto; inset: 0; }
}

/* Below 1140px the container is narrower than 1120, so the logo cells — and
   with them the rows — shrink naturally, exactly as the original did. */
@media (min-width: 1140px) {
  .appeared__row { min-height: 160px; }
  .appeared__row:nth-of-type(2) { min-height: 172px; }
  .appeared__row--last { min-height: 168px; }
}
