/* Sci per Tutti: public site.
   Faithful to the previous WordPress site (Salient theme): light grey page, black text,
   Plus Jakarta Sans at weight 500, photos with soft rounded corners, black footer with grey waves.
   Navy #002f6c and sun yellow #ffce59 come from the association's logo and the old theme settings. */

@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  --page: #f8f8f8;
  --white: #ffffff;
  --ink: #000000;
  --ink-soft: #4a4a4a;
  --line: #e2e2e2;
  --navy: #002f6c;
  --navy-deep: #001d44;
  --ice: #a9c5e8;
  --ice-soft: #e9eef5;
  --sun: #ffce59;
  --ok: #1d6b40;
  --ok-bg: #e4f3ea;
  --error: #9d2016;
  --error-bg: #fce9e7;
  --warn-bg: #fff4d6;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 15px;
  --gutter: clamp(20px, 4.4vw, 60px);
  --wrap: 1246px;
  --text: 720px;
  --section: clamp(56px, 8vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--page); color: var(--ink); font: 500 17px/30px var(--font); letter-spacing: -0.02em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.03em; margin: 0 0 0.4em; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 5vw, 4.25rem); line-height: 1.1; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.875rem); line-height: 1.22; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.3; }
p { margin: 0 0 1.5em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap--text { width: min(var(--text), 100% - 2 * var(--gutter)); }
.align-center { text-align: center; }

/* Header: text wordmark on the left, menu in the middle */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(248, 248, 248, 0.82); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { position: relative; display: flex; align-items: center; min-height: 112px; padding: 0 clamp(20px, 7vw, 96px); }
.brand { text-decoration: none; color: var(--ink); }
.brand__name { display: block; font-weight: 700; font-size: 26px; line-height: 28px; letter-spacing: -0.04em; max-width: 4.2em; }
.site-nav { position: absolute; left: 50%; transform: translateX(-50%); }
.site-nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 17px; line-height: 17px; padding: 6px 0; background: linear-gradient(var(--ink), var(--ink)) left bottom / 0 1px no-repeat; transition: background-size 0.25s ease; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background-size: 100% 1px; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 22px; height: 2px; background: var(--ink); margin: auto; position: relative; transition: transform 0.2s ease, background 0.2s ease; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .site-header__inner { min-height: 64px; padding: 0 20px; }
  .brand__name { font-size: 22px; line-height: 24px; max-width: none; }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; transform: none; background: var(--page); border-bottom: 1px solid var(--line); display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px 20px 20px; }
  .site-nav a { display: block; font-size: 1.35rem; line-height: 1.4; padding: 12px 0; border-bottom: 1px solid var(--line); background: none; }
}

.site-main { min-height: 50vh; padding-bottom: var(--section); }
.site-main > * + * { margin-top: var(--section); }
.preview-bar { position: sticky; top: 112px; z-index: 40; margin: 0; padding: 10px var(--gutter); background: var(--sun); color: var(--ink); font-weight: 600; text-align: center; }

/* Rich text */
.rich > :last-child { margin-bottom: 0; }
.rich p { margin-bottom: 1.5em; }
.rich ul, .rich ol { padding-left: 1.5em; margin: 0 0 1.5em; }
.rich li { margin: 0.2em 0; }
.rich blockquote { margin: 1.4em 0; padding: 0.2em 0 0.2em 1.2em; border-left: 3px solid var(--ice); color: var(--ink-soft); }
.rich h2 { margin-top: 1.2em; }
.rich h3, .rich h4 { margin-top: 1.4em; }
.rich strong { font-weight: 700; }
.rich a { color: inherit; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; gap: 10px; font: inherit; font-weight: 600; padding: 13px 26px; border-radius: 200px; border: 2px solid var(--navy); text-decoration: none; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: var(--white); }
.btn--secondary { background: transparent; color: var(--navy); }
.btn--secondary:hover { background: var(--navy); color: var(--white); }
.btn--link { border: 0; padding: 4px 0; border-radius: 0; color: var(--ink); text-decoration: underline; }
.cta-link { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; line-height: 22px; color: var(--ink); text-decoration: none; }
.cta-link span { border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.cta-link:hover span { border-bottom-width: 2px; }

/* Hand-drawn yellow underline under the main title (the old theme's "scribble") */
.scribble { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 24' preserveAspectRatio='none'%3E%3Cpath d='M4 16 C 70 6 150 4 230 9 C 290 13 340 12 396 6' fill='none' stroke='%23ffce59' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") left 100% / 100% 0.22em no-repeat; padding-bottom: 0.12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Logo badge on photos */
.badge-logo { width: clamp(96px, 11vw, 150px); height: auto; border-radius: 50%; }

/* Hero: big title on the left, rounded photo on the right */
.b-hero { position: relative; padding-top: clamp(16px, 2vw, 25px); }
.b-hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
.b-hero--image-left .b-hero__media { order: -1; }
.b-hero--text-only .b-hero__inner, .b-hero--background .b-hero__inner { grid-template-columns: minmax(0, 860px); }
.b-hero__title { margin-bottom: 0.6em; }
.b-hero__subtitle { font-size: 17px; color: var(--ink-soft); max-width: 36em; }
.b-hero__cta { margin: 1.6em 0 0; }
.b-hero__media { position: relative; margin: 0; }
.b-hero__media img:first-child { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.b-hero__media.has-badge .badge-logo { position: absolute; right: -4%; bottom: -10%; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.35); }
.b-hero--background { min-height: min(78vh, 760px); display: flex; align-items: flex-end; padding: 0; margin-top: 0; }
.b-hero--background .b-hero__bg { position: absolute; inset: 0; }
.b-hero--background .b-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.b-hero--background .b-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.7) 100%); }
.b-hero--background .b-hero__inner { position: relative; padding-block: clamp(40px, 8vw, 96px); }
.b-hero--background .b-hero__title, .b-hero--background .b-hero__subtitle, .b-hero--background .cta-link { color: var(--white); }
@media (max-width: 860px) {
  .b-hero__inner { grid-template-columns: 1fr; }
  .b-hero--image-left .b-hero__media { order: 0; }
  .b-hero__media.has-badge .badge-logo { right: -2%; bottom: -6%; }
}

/* Headings */
.b-heading__eyebrow { font-weight: 600; margin-bottom: 0.4em; }
.b-heading__title { margin: 0; }
.b-heading.align-center .b-heading__title { margin-inline: auto; max-width: 22em; }

/* Text + image: photo on one side, title and text on the other */
.b-media-text { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 96px); align-items: center; }
.b-media-text--image-left .b-media-text__side { order: -1; }
.b-media-text--no-image { grid-template-columns: minmax(0, var(--text)); }
.b-media-text__title { font-size: clamp(1.8rem, 3vw, 2.56rem); line-height: 1.3; margin-bottom: 1em; }
.b-media-text__text .rich { font-size: 15px; line-height: 23px; }
.b-media-text--image-cascade .b-media-text__text .rich { font-size: 17px; line-height: 30px; }
.b-media-text--image-cascade .b-media-text__title { font-size: clamp(2rem, 3.4vw, 2.875rem); line-height: 1.22; margin-bottom: 0.5em; }
.b-media-text--image-cascade { align-items: center; grid-template-columns: 0.9fr 1.1fr; }
.b-media-text__media { position: relative; margin: 0; }
.b-media-text__media > img { width: 100%; border-radius: var(--radius); }
.b-media-text__media.has-badge > img { aspect-ratio: 8 / 7; object-fit: cover; }
.badge-box { position: absolute; right: 4%; bottom: 6%; background: var(--white); border-radius: 18px; padding: 6px; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.35); }
.badge-box .badge-logo { width: clamp(80px, 8vw, 110px); }
/* Check marks for lists next to a photo, like the old "Chi siamo" section */
.b-media-text--image-left .rich ul, .b-media-text--image-right .rich ul { list-style: none; padding-left: 0; }
.b-media-text--image-left .rich ul li, .b-media-text--image-right .rich ul li { position: relative; padding-left: 28px; margin: 0.6em 0; }
.b-media-text--image-left .rich ul li::before, .b-media-text--image-right .rich ul li::before { content: ""; position: absolute; left: 2px; top: 0.35em; width: 12px; height: 7px; border-left: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(-45deg); }
.icon-bubble { display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--white); box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.2); margin-bottom: 30px; }
.icon-bubble .icon { width: 24px; height: 24px; }
/* Two overlapping photos */
.cascade { display: grid; padding: 12% 0 12% 0; }
.cascade > .cascade__back { grid-area: 1 / 1; width: 82%; justify-self: end; border-radius: 6px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.45); aspect-ratio: 7 / 5; object-fit: cover; }
.cascade > .cascade__front { grid-area: 1 / 1; width: 46%; align-self: center; justify-self: start; border-radius: 6px; transform: translateY(-15%); }
.cascade > .cascade__front--tall { width: 40%; transform: translateY(-40%); }
.cascade__front { filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.18)); }
.b-media-text__side { display: grid; gap: 24px; }
.b-media-text__note { font-size: 15px; line-height: 23px; }
.b-media-text__columns { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 2.2em; font-size: 15px; line-height: 23px; }
.b-media-text__col h3, .b-media-text__col .rich h3, .b-columns__col .rich h3 { font-size: 15px; line-height: 23px; font-weight: 500; letter-spacing: -0.02em; text-transform: uppercase; margin: 0 0 0.3em; }
.b-media-text__col .rich h3 { margin-top: 2.4em; }
.b-media-text__col .rich p { margin-bottom: 1.2em; }
.b-media-text__col .rich ul { list-style: none; padding-left: 0; }
.b-media-text__col .rich ul li { position: relative; padding-left: 24px; margin: 0.5em 0; }
.b-media-text__col .rich ul li::before { content: "."; position: absolute; left: 4px; top: -0.15em; font-weight: 700; }
@media (max-width: 560px) { .b-media-text__columns { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .b-media-text, .b-media-text--image-cascade { grid-template-columns: 1fr; }
  .b-media-text--image-left .b-media-text__side { order: -1; }
}

/* Images and gallery */
.b-image { margin-bottom: 0; }
.b-image img { width: 100%; border-radius: var(--radius); }
.b-image--full img { border-radius: 0; max-height: 80vh; object-fit: cover; }
.b-image figcaption, .b-video figcaption { color: var(--ink-soft); font-size: 0.92rem; margin-top: 10px; }
.b-gallery { display: grid; gap: 12px; }
.b-gallery.cols-2 { grid-template-columns: repeat(2, 1fr); }
.b-gallery.cols-3 { grid-template-columns: repeat(3, 1fr); }
.b-gallery.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 700px) { .b-gallery.cols-3, .b-gallery.cols-4 { grid-template-columns: repeat(2, 1fr); } }
.b-gallery__item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); transition: opacity 0.2s ease; }
.b-gallery__item:hover img { opacity: 0.88; }

/* Cards and tiles */
.b-cards { display: grid; gap: clamp(16px, 2vw, 28px); }
.b-cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.b-cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.b-cards.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); background: var(--white); color: var(--ink); text-decoration: none; overflow: hidden; border: 1px solid var(--line); }
.card__body { display: flex; flex-direction: column; gap: 8px; padding: 26px; }
.card__title { display: inline-flex; align-items: center; gap: 0.4em; font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; }
.card__text { color: var(--ink-soft); }
.card__link { font-weight: 600; text-decoration: underline; text-underline-offset: 0.3em; }
.card--image { border: 0; min-height: clamp(300px, 34vw, 460px); justify-content: flex-end; background: #111; }
.card--image .card__media { position: absolute; inset: 0; }
.card--image .card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card--image .card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.6) 100%); }
.card--image .card__body { position: relative; color: var(--white); }
.card--image .card__title, .card--image .card__link { color: var(--white); }
.card--image .card__text { color: rgba(255, 255, 255, 0.88); }
a.card--image:hover .card__media img { transform: scale(1.04); }
a.card:not(.card--image):hover { border-color: var(--navy); }
.b-cards:not(.b-cards--tiles) .card--image { min-height: 0; justify-content: flex-start; background: var(--white); }
.b-cards:not(.b-cards--tiles) .card--image .card__media { position: static; overflow: hidden; }
.b-cards:not(.b-cards--tiles) .card--image .card__media img { aspect-ratio: 1; height: auto; }
.b-cards:not(.b-cards--tiles) .card--image .card__media::after { display: none; }
.b-cards:not(.b-cards--tiles) .card--image .card__body { color: var(--ink); text-align: center; align-items: center; padding: 26px 22px 28px; }
.b-cards:not(.b-cards--tiles) .card--image .card__title { font-size: 1.1rem; letter-spacing: -0.02em; line-height: 1.5; color: var(--ink); }
.b-cards:not(.b-cards--tiles) .card--image .card__text { color: var(--ink); }
.b-cards:not(.b-cards--tiles) .card--image .card__link { color: var(--navy); }
/* Tiles: photos side by side with no gap, title and link centred, like "Gite / Corsi" on the old site */
.b-cards--tiles { gap: 0; border-radius: var(--radius); overflow: hidden; }
.b-cards--tiles .card { border-radius: 0; min-height: clamp(380px, 41vw, 560px); justify-content: center; align-items: center; text-align: center; }
.b-cards--tall .card { min-height: clamp(420px, 62vw, 845px); }
.b-cards--tiles .card--image .card__media::after { background: rgba(0, 0, 0, 0.12); }
.b-cards--tiles .card__body { align-items: center; gap: 14px; padding: 30px; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25); }
.b-cards--tiles .card__title { font-size: clamp(1.8rem, 3vw, 2.4rem); gap: 0.35em; }
.b-cards--tiles .card__icon { width: 1.05em; height: 1.05em; }
.b-cards--tiles .card__text { max-width: 26em; }
.b-cards--tiles .card__link { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; text-decoration: none; }
.b-cards--tiles .card__link::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.b-cards--link-arrow .card__link::before { display: none; }
.card__arrow { width: 18px; height: 18px; }
.b-cards--tiles .card:nth-child(odd) .card__title { flex-direction: row-reverse; }
@media (max-width: 860px) {
  .b-cards.cols-2, .b-cards.cols-3, .b-cards.cols-4 { grid-template-columns: 1fr; }
  .b-cards--tiles .card, .b-cards--tall .card { min-height: 480px; }
}

/* Columns: plain text side by side (dates, fees, timetables) */
.b-columns { display: grid; gap: clamp(24px, 4vw, 56px); }
.b-columns.cols-2 { grid-template-columns: repeat(2, 1fr); }
.b-columns.cols-3 { grid-template-columns: repeat(3, 1fr); }
.b-columns__col h3 { font-size: 17px; line-height: 30px; letter-spacing: -0.02em; text-transform: uppercase; margin-bottom: 0.2em; }
.b-columns__col .rich ul { list-style: none; padding-left: 0; }
.b-columns__col .rich ul li { position: relative; padding-left: 24px; margin: 0.4em 0; line-height: 1.4; }
.b-columns__col .rich ul li::before { content: "."; position: absolute; left: 4px; top: -0.1em; font-weight: 700; }
@media (max-width: 860px) { .b-columns.cols-2, .b-columns.cols-3 { grid-template-columns: 1fr; } }

/* Schedule */
.b-schedule__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.b-schedule__list li { display: grid; grid-template-columns: 7.5em 1fr; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.b-schedule__time { font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .b-schedule__list li { grid-template-columns: 1fr; gap: 2px; } }

/* Callout */
.b-callout__box { border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); }
.b-callout__box.tone-accent { background: var(--navy); color: var(--white); }
.b-callout__box.tone-accent a { color: var(--white); }
.b-callout__box.tone-accent .btn--primary { background: var(--white); color: var(--navy); border-color: var(--white); }
.b-callout__box.tone-info { background: var(--ice-soft); }
.b-callout__box.tone-warning { background: var(--warn-bg); }
.b-callout__title { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.4em; }
.b-callout__box .rich > :last-child { margin-bottom: 0; }
.b-callout__cta { margin: 18px 0 0; }

/* FAQ */
.b-faq__item { border-bottom: 1px solid var(--line); }
.b-faq__item summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 600; position: relative; }
.b-faq__item summary::-webkit-details-marker { display: none; }
.b-faq__item summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; }
.b-faq__item[open] summary::after { content: "−"; }
.b-faq__item .rich { padding-bottom: 18px; color: var(--ink-soft); }

/* Button block */
.b-button { margin-bottom: 0; }

/* Video and map, loaded only on request */
.b-video, .b-map { margin-bottom: 0; }
.consent-frame { position: relative; border-radius: var(--radius); background: #111; color: var(--white); overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 24px; }
.consent-frame--video { aspect-ratio: 16 / 9; }
.consent-frame--map { aspect-ratio: 4 / 3; background: #dcdcdc; color: var(--ink); }
.b-map--full .consent-frame--map { aspect-ratio: auto; height: clamp(320px, 38vw, 520px); border-radius: 0; filter: grayscale(1); }
.b-map--full .consent-frame--map iframe { filter: grayscale(1); }
.b-map__head h3 { margin-bottom: 0.2em; }
.b-map--full .b-map__head { margin-bottom: 20px; }
.consent-frame__play { display: inline-flex; align-items: center; gap: 12px; font: inherit; font-weight: 600; border: 0; border-radius: 200px; padding: 13px 24px; background: var(--white); color: var(--ink); cursor: pointer; }
.consent-frame--map .consent-frame__play { background: var(--ink); color: var(--white); }
.consent-frame__icon { width: 0; height: 0; border-left: 14px solid var(--ink); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.consent-frame__note { font-size: 0.85rem; line-height: 1.5; max-width: 34em; margin: 0; opacity: 0.85; }
.consent-frame__note a { color: inherit; }
.consent-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.b-map__address { color: var(--ink-soft); }

/* Forms */
.form { display: grid; gap: 16px; margin-top: 1.2em; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 600; font-size: 0.95rem; }
.field input, .field textarea { font: inherit; font-weight: 500; color: var(--ink); padding: 12px 14px; border: 1px solid #cfcfcf; border-radius: 10px; background: var(--white); width: 100%; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--ice); outline-offset: 0; border-color: var(--navy); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; line-height: 1.5; }
.check input { margin-top: 0.3em; width: 18px; height: 18px; accent-color: var(--navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 18px; border-radius: 10px; margin-top: 1em; }
.notice--ok { background: var(--ok-bg); color: var(--ok); }
.notice--error { background: var(--error-bg); color: var(--error); }

/* Spacer */
.b-spacer--small { height: 8px; }
.b-spacer--medium { height: 32px; }
.b-spacer--large { height: 80px; }
.b-spacer hr { border: 0; border-top: 1px solid var(--line); margin-block: 0; }
.b-spacer--medium hr { margin-top: 16px; }
.b-spacer--large hr { margin-top: 40px; }

/* Footer: black, with the old grey waves on top */
.site-footer { position: relative; color: var(--white); background: var(--page); }
.site-footer__waves { display: block; width: 100%; height: clamp(90px, 15vw, 200px); }
.wave--1 { fill: #8c8c8c; }
.wave--2 { fill: #5a5a5a; }
.wave--3 { fill: #2b2b2b; }
.wave--4 { fill: #000000; }
.site-footer__body { background: #000; padding: 10px clamp(20px, 6vw, 82px) clamp(60px, 9vw, 120px); margin-top: -1px; }
.site-footer__grid { display: flex; gap: clamp(40px, 10vw, 140px); }
.site-footer__heading { font-size: 17px; margin: 0 0 0.6em; }
.site-footer__heading--contacts { font-size: 18px; margin-top: 0.6em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.35em 0; }
.site-footer a { color: var(--white); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.6); }
.site-footer a:hover { border-bottom-color: var(--white); }
.site-footer__legal { margin: clamp(40px, 6vw, 70px) 0 0; padding-left: 50%; font-size: 17px; }
@media (max-width: 760px) {
  .site-footer__grid { gap: 48px; }
  .site-footer__legal { padding-left: 0; }
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, 0.9); display: flex; align-items: center; justify-content: center; padding: 56px 16px 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 100%; max-width: 100%; border-radius: var(--radius); }
.lightbox__close { position: absolute; top: 12px; right: 12px; font: inherit; font-weight: 600; background: var(--white); color: var(--ink); border: 0; border-radius: 200px; padding: 8px 16px; cursor: pointer; }
