/*
Theme Name: Centrum Labyrint
Theme URI: https://centrumlabyrint.cz/
Author: CL-Web
Description: Kompletní responzivní WordPress šablona Centra Labyrint.
Version: 1.4.12
Text Domain: centrum-labyrint
*/

@font-face {
  font-family: "Nunito Sans";
  src: url("assets/fonts/NunitoSans-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --ink: #3d5b25;
  --ink-dark: #294814;
  --text: #536b3c;
  --lime: #a8cc2d;
  --lime-dark: #678819;
  --blue: #40a7cc;
  --yellow: #f5c52c;
  --paper: #fff;
  --soft: #f7fbf3;
  --line: #b0ce35;
  --radius: 24px;
  --shadow: 0 16px 38px rgb(42 73 20 / 10%);
  --wave-overscan: max(24px, 5vw);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.narrow { max-width: 860px; }
.centered { text-align: center; }
.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section-title, .page-title {
  margin: 0 0 2rem;
  color: var(--ink);
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.15;
  text-align: center;
}
.section-lead { max-width: 900px; margin: -1rem auto 2.8rem; text-align: center; }
.empty-state { padding: 2rem; border-radius: 18px; background: var(--soft); text-align: center; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 1000; padding: 10px 16px; color: #fff; background: var(--ink-dark); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--ink-dark);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); box-shadow: 0 9px 22px rgb(38 63 20 / 22%); }
.button--blue { color: #fff; background: #7bc7e1; }
.button--lime { color: #fff; background: #b7d72d; }
.button--small { min-height: 36px; padding: 7px 22px; font-size: .86rem; }

.site-header { position: relative; z-index: 30; padding: 20px 0; background: #fff; }
.header-inner { display: flex; min-height: 70px; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink-dark); font-size: 1.5rem; font-weight: 800; line-height: 1.08; text-decoration: none; }
.brand-logo { width: 90px; height: 78px; object-fit: contain; }
.brand-text span { display: block; margin-top: 6px; }
.site-nav ul { display: flex; align-items: center; gap: 38px; margin: 0; padding: 0; list-style: none; }
.site-nav a { font-size: 1.08rem; font-weight: 400; text-decoration: none; }
.site-nav .current-menu-item > a, .site-nav .current_page_item > a { color: var(--ink-dark); font-weight: 400; }
.site-nav .nav-contact, .site-nav a[href*="/kontakt"] { padding: 11px 29px; color: #fff; background: var(--ink-dark); border-radius: 999px; }
.menu-toggle { display: none; padding: 8px; border: 0; color: var(--ink-dark); background: transparent; font-size: 1.8rem; line-height: 1; cursor: pointer; }

/* Hlavní stránka */
.hero-home { position: relative; display: flex; min-height: clamp(480px, 41.85vw, 698px); align-items: flex-start; overflow: clip; isolation: isolate; background: #fff; }
.hero-wave { position: absolute; z-index: 0; top: 0; left: calc(0px - var(--wave-overscan)); width: calc(100% + var(--wave-overscan) + var(--wave-overscan)); height: 100%; max-width: none; object-fit: fill; mix-blend-mode: normal; pointer-events: none; }
.hero-family { position: absolute; z-index: 1; top: clamp(145px, 11vw, 180px); right: max(20px, calc((100vw - 1180px) / 2)); width: clamp(560px, 43vw, 720px); height: clamp(360px, 30vw, 500px); max-width: none; object-fit: cover; object-position: 42% center; pointer-events: none; }
.hero-grid { position: relative; z-index: 2; width: min(1180px, calc(100% - 40px)); padding-top: clamp(52px, 5.5vw, 84px); }
.hero-copy { width: 45%; max-width: 560px; }
.hero-copy h1 { margin: 0 0 22px; color: var(--ink); font-size: clamp(2.5rem, 4vw, 3.75rem); font-weight: 400; line-height: 1.15; }
.hero-copy h1 span { display: block; white-space: nowrap; }
.hero-copy p { max-width: 400px; margin: 0 0 28px; font-size: 1.12rem; font-weight: 400; }

.services-home { padding-top: clamp(2.75rem, 5vw, 4.75rem); }

.service-grid { display: grid; gap: 34px; }
.service-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  justify-items: center;
  overflow: hidden;
  padding: 18px 22px 26px;
  border-radius: var(--radius);
  background-color: #fff;
  background-image: url("assets/images/card-watercolor.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
  text-align: center;
  scroll-margin-top: 40px;
}
.service-art { width: 100%; aspect-ratio: 3 / 2; margin-bottom: 12px; border-radius: 16px; object-fit: contain; mix-blend-mode: multiply; }
.service-card h2, .service-card h3 { margin: .15rem 0 .6rem; color: var(--ink); line-height: 1.2; }
.service-card h2 { font-size: 1.35rem; }
.service-card h3 { font-size: 1.1rem; }
.service-card p { margin: 0 0 1.25rem; }
.about-home { padding-top: 3rem; padding-bottom: 2rem; }
.about-home .section-title { margin-bottom: 1rem; }
.about-home p { margin-bottom: 1.3rem; }
.service-card .button--small, .about-home .button--small { min-width: 108px; min-height: 36px; padding: 7px 22px; }

.values-section { padding-bottom: 4rem; }
.values-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.value { text-align: center; }
.sprite-values { width: 190px; height: 135px; margin: 0 auto 12px; background-image: url("assets/images/values-icons.jpg"); background-repeat: no-repeat; background-size: 300% auto; }
.sprite-values--one { background-position: left center; }
.sprite-values--two { background-position: center center; }
.sprite-values--three { background-position: right center; }
.value h3 { margin: 0 0 10px; color: var(--ink); }
.value p { margin: 0; font-size: .92rem; }
.watercolor-divider { width: 100%; background-repeat: no-repeat; background-position: center; background-size: calc(100% + var(--wave-overscan) + var(--wave-overscan)) auto; }
.watercolor-divider--warm {
  height: 25.5625vw;
  background-image: url("assets/images/divider-warm.png");
  background-position: center bottom;
  background-size: calc(100% + var(--wave-overscan) + var(--wave-overscan)) 36.8125vw;
}
.watercolor-divider--cool {
  height: 27.125vw;
  background-image: url("assets/images/divider-cool.png");
  background-position: center top;
  background-size: calc(100% + var(--wave-overscan) + var(--wave-overscan)) 27.125vw;
}
.watercolor-divider--about { height: clamp(150px, 19.5vw, 312px); background-image: url("assets/images/divider-about.png"); background-size: max(calc(100% + var(--wave-overscan) + var(--wave-overscan)), 495px) clamp(150px, 30.375vw, 486px); }

/* Hrdinové vnitřních stránek */
.inner-hero { position: relative; min-height: 500px; overflow: hidden; isolation: isolate; padding: 8px 0 50px; background: #fff; }
.inner-hero > h1, .simple-hero h1 { position: relative; z-index: 2; margin: 0; color: var(--ink); font-size: clamp(2.25rem, 3vw, 2.8rem); text-align: center; }
.inner-hero-wave { position: absolute; z-index: 0; top: 55px; left: calc(0px - var(--wave-overscan)); width: calc(100% + var(--wave-overscan) + var(--wave-overscan)); height: 170px; max-width: none; object-fit: cover; pointer-events: none; }
.inner-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 60px; padding-top: 72px; }
.inner-hero-copy h2 { max-width: 520px; margin: 0 0 18px; color: var(--ink); font-size: clamp(1.55rem, 2.2vw, 2.05rem); line-height: 1.25; }
.inner-hero-copy p { max-width: 520px; margin: 0; font-size: 1.08rem; }
.inner-hero-copy, .inner-hero-art { position: relative; z-index: 1; }
.inner-hero-art { justify-self: end; width: min(100%, 650px); max-height: 370px; object-fit: contain; }
.inner-hero--pricing .inner-hero-wave { top: 58px; height: 165px; object-fit: fill; }
.inner-hero--contact .inner-hero-art { max-height: 400px; }
.simple-hero { overflow: hidden; overflow: clip; padding: 12px 0 30px; text-align: center; }
.simple-hero > img { position: relative; left: calc(0px - var(--wave-overscan)); width: calc(100% + var(--wave-overscan) + var(--wave-overscan)); max-width: none; height: 150px; margin-top: -10px; object-fit: cover; }
.simple-hero--services > img {
  z-index: 0;
  margin-top: -86px;
  transform: scaleY(-1);
  transform-origin: center;
}
.simple-hero--services h1, .simple-hero--services .narrow { position: relative; z-index: 1; }
.simple-hero p { margin: 1.5rem auto 0; font-size: 1.08rem; }

/* O nás */
.mission-section { padding-bottom: 2.5rem; }
.mission-section .section-title { margin-bottom: 1.2rem; }
.team-grid { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 58px; }
.team-grid > img { width: 100%; max-height: 530px; object-fit: contain; mix-blend-mode: multiply; }
.team-roles { margin: 0; padding-left: 36px; border-left: 1px solid #9fb284; }
.team-roles div { margin-bottom: 15px; }
.team-roles dt { color: var(--ink-dark); font-weight: 800; }
.team-roles dd { margin: 2px 0 0; font-size: .92rem; }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 70px; }
.work-grid article { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 18px; }
.work-grid h3 { margin: 0 0 6px; color: var(--ink); }
.work-grid p { margin: 0; font-size: .92rem; }
.sprite-work { width: 150px; height: 150px; background: url("assets/images/work-icons.png") no-repeat; background-size: 400% auto; }
.sprite-work--one { background-position: 0 center; }
.sprite-work--two { background-position: 33.333% center; }
.sprite-work--three { background-position: 66.666% center; }
.sprite-work--four { background-position: 100% center; }
.partners-section { padding-top: 3rem; }
.partner-row { display: grid; grid-template-columns: 150px repeat(3, minmax(0, 220px)); align-items: center; justify-content: center; gap: 28px; padding: 20px 0; border-top: 2px solid #b4ce4c; }
.partner-row--partners { grid-template-columns: 150px repeat(2, minmax(0, 260px)); }
.partner-row--donors { border-color: #7bc7e1; }
.partner-row h3 { color: var(--lime-dark); font-size: 1rem; }
.partner-row img { width: 100%; max-height: 110px; object-fit: contain; }

/* Služby */
.services-page { padding-top: 2rem; }
.service-card--large { min-height: 500px; padding: 22px 34px 30px; }
.service-card--large .service-art { max-height: 260px; }
.service-card--care { grid-template-columns: minmax(180px, .85fr) minmax(0, 1.15fr); grid-template-rows: 1fr; align-items: center; justify-items: stretch; gap: 34px; padding: 34px 38px; text-align: left; }
.service-card--care .service-art { grid-column: 1; grid-row: 1; width: 100%; max-width: 240px; max-height: 300px; margin: 0 auto; object-fit: contain; }
.service-care-content { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.service-care-content h2 { margin: 0 0 14px; }
.service-care-content p { margin: 0 0 26px; }
.service-care-content .button { align-self: flex-start; }

/* C.A.R.E. zůstává samostatnou kartou v pravé polovině posledního řádku. */
@media (min-width: 761px) {
  .service-grid--two > .service-card--care { grid-column: 2 / span 1; min-width: 0; }
  .service-card--care { grid-template-columns: minmax(0, 1.15fr) minmax(180px, .85fr); }
  .service-card--care .service-art { grid-column: 2; grid-row: 1; justify-self: end; align-self: end; margin: 0 0 0 auto; }
  .service-care-content { grid-column: 1; grid-row: 1; }
}

/* Ceník */
.pricing-page { padding-top: 2rem; }
.pricing-container { max-width: 1050px; }
.price-section { margin-bottom: 5rem; }
.price-section h2 { margin: 0 0 1.4rem; padding-bottom: .65rem; border-bottom: 2px solid var(--line); color: var(--ink); font-size: 1.45rem; text-align: center; }
.price-list { margin: 0; }
.price-list > div { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding: .7rem 0; }
.price-list dt { font-weight: 500; }
.price-list dd { margin: 0; }
.price-list--compact > div { padding: .5rem 0; }
.price-subtitle { display: grid; grid-template-columns: max-content 1fr; align-items: center; gap: 20px; margin: 1rem 0 .5rem; font-size: 1rem; font-weight: 500; text-transform: uppercase; }
.price-subtitle::after { content: ""; height: 1px; background: currentColor; opacity: .75; }
.price-subtitle--blue { color: var(--blue); }
.price-subtitle--yellow { color: #c69b18; }
.price-note, .pricing-final-note { font-size: .9rem; }
.pricing-final-note { margin-top: 1rem; }

/* Aktuality */
.news { padding: 3.5rem 0 1.5rem; }
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 430px)); justify-content: center; gap: 55px; }
.news-card { display: grid; grid-template-columns: 145px 1fr; min-height: 225px; overflow: hidden; padding: 20px; border-radius: var(--radius); background: #fff url("assets/images/card-watercolor.png") center / cover no-repeat; box-shadow: var(--shadow); }
.news-media { position: relative; align-self: stretch; min-height: 185px; overflow: hidden; border-radius: 16px; }
.news-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-body { padding: 3px 0 3px 20px; }
.news-body time, .post-card time, .single-page time { font-size: .82rem; }
.news-body h3 { margin: 8px 0; color: var(--ink); }
.news-body h3 a { text-decoration: none; }
.news-body p { margin: 0 0 16px; font-size: .88rem; }
.news-actions { margin-top: 34px; text-align: center; }

/* Sdílená kontaktní výzva */
.contact-cta { padding: clamp(4rem, 8vw, 7rem) 0; background: #fff; }
.watercolor-divider--cool + .contact-cta { margin-top: clamp(-50px, -4vw, -24px); padding-top: clamp(1rem, 2vw, 2rem); }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 45px; }
.contact-copy h2 { margin: 0 0 8px; color: var(--ink); font-size: clamp(1.8rem, 3vw, 2.35rem); line-height: 1.2; }
.contact-copy h2 span { display: block; font-size: .78em; font-weight: 400; }
.contact-copy p { margin: 24px 0 30px; }
.contact-art { width: 100%; max-height: 390px; object-fit: contain; mix-blend-mode: multiply; }

/* Kontakt */
.process-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 70px; }
.process-step { position: relative; text-align: center; }
.process-step:not(:last-child)::after { content: "→"; position: absolute; top: 58px; right: -50px; color: var(--ink); font-size: 3rem; font-weight: 300; }
.process-step h3 { margin: .5rem 0 .25rem; color: var(--ink); }
.process-step p { margin: 0; font-size: .92rem; }
.sprite-process { width: 190px; height: 170px; margin: 0 auto; background: url("assets/images/contact-steps.png") no-repeat; background-size: 300% auto; }
.sprite-process--one { background-position: left center; }
.sprite-process--two { background-position: center center; }
.sprite-process--three { background-position: right center; }
.contact-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.contact-details-grid > div + div { padding-left: 65px; border-left: 1px solid #9fb284; }
.contact-details-grid h2 { margin: 0 0 1rem; color: var(--ink); font-size: 1.8rem; }
.contact-list { margin: 1.5rem 0 0; }
.contact-list > div { display: grid; grid-template-columns: 210px 1fr; gap: 20px; margin: 8px 0; }
.contact-list dt { color: var(--ink-dark); font-weight: 700; }
.contact-list dd { margin: 0; }
.organization-list { margin: 0; }
.organization-list > div { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 16px; margin-bottom: 10px; }
.organization-list dt { color: var(--ink-dark); font-weight: 800; }
.organization-list dd { margin: 2px 0 0; }
.sprite-organization { width: 70px; height: 70px; background: url("assets/images/organization-icons.png") no-repeat; background-size: auto 300%; }
.sprite-organization--one { background-position: center top; }
.sprite-organization--two { background-position: center center; }
.sprite-organization--three { background-position: center bottom; }
.branches-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.branches-grid article { text-align: center; }
.branches-grid h3 { margin: 14px 0 6px; color: var(--ink); font-size: 1rem; }
.branches-grid p { margin: 0; font-size: .9rem; }
.sprite-branch { width: 100%; aspect-ratio: 1.65; background: url("assets/images/branches.png") no-repeat; background-size: 200% 200%; }
.sprite-branch--one { background-position: left top; }
.sprite-branch--two { background-position: right top; }
.sprite-branch--three { background-position: left bottom; }
.sprite-branch--four { background-position: right bottom; }
.form-container { max-width: 900px; }
.contact-form-plugin { margin-top: 28px; }
.contact-form-plugin > * { max-width: 100%; }
.contact-form-plugin .wpfi-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 34px; }
.contact-form-plugin .wpfi-field, .contact-form-plugin .wpfi-form-submit { margin: 0; }
.contact-form-plugin .wpfi-field { display: flex; flex-direction: column; gap: 7px; }
.contact-form-plugin .wpfi-field > label { color: var(--ink-dark); font-size: .88rem; font-weight: 700; }
.contact-form-plugin .wpfi-field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.contact-form-plugin .wpfi-field textarea,
.contact-form-plugin .wpfi-field select { width: 100%; padding: 13px 18px; border: 2px solid var(--yellow); border-radius: 999px; color: var(--ink-dark); background: #fff; }
.contact-form-plugin .wpfi-field textarea { min-height: 190px; resize: vertical; border-radius: 36px; }
.contact-form-plugin .wpfi-field fieldset { margin: 0; padding: 0; border: 0; }
.contact-form-plugin .wpfi-field-textarea, .contact-form-plugin .wpfi-field-checkbox, .contact-form-plugin .wpfi-form-submit { grid-column: 1 / -1; }
.contact-form-plugin .wpfi-field-checkbox > label { display: flex; align-items: flex-start; gap: 10px; }
.contact-form-plugin .wpfi-field-checkbox input { width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--ink-dark); }
.contact-form-plugin .wpfi-form-submit { margin-top: 8px; text-align: center; }
.contact-form-plugin .wpfi-form-submit button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 10px 28px; border: 0; border-radius: 999px; color: #fff; background: var(--ink-dark); font-weight: 600; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.contact-form-plugin .wpfi-form-submit button:hover, .contact-form-plugin .wpfi-form-submit button:focus-visible { transform: translateY(-2px); box-shadow: 0 9px 22px rgb(38 63 20 / 22%); }
.contact-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 34px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field label { color: var(--ink-dark); font-size: .88rem; font-weight: 700; }
.form-field input, .form-field textarea { width: 100%; padding: 13px 18px; border: 2px solid var(--yellow); border-radius: 999px; color: var(--ink-dark); background: #fff; }
.form-field textarea { min-height: 190px; resize: vertical; border-radius: 36px; }
.form-field--full, .consent-field, .form-actions { grid-column: 1 / -1; }
.consent-field { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; }
.consent-field input { width: 20px; height: 20px; accent-color: var(--ink-dark); }
.form-actions { margin-top: 8px; text-align: center; }
.form-notice { margin: 0 0 24px; padding: 14px 18px; border-radius: 12px; font-weight: 700; }
.form-notice--success { color: #23470f; background: #e7f7d8; }
.form-notice--error { color: #6d261f; background: #ffe6e2; }
.form-notice--info { color: #17465c; background: #e1f4fb; }
.wpfi-notice { margin: 0 0 24px; padding: 14px 18px; border-radius: 12px; font-weight: 700; }
.wpfi-notice-success { color: #23470f; background: #e7f7d8; }
.wpfi-notice-error { color: #6d261f; background: #ffe6e2; }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Obecné stránky a články */
.content-container { max-width: 860px; }
.entry-content > * { max-width: 100%; }
.single-featured { margin: 2rem 0; }
.single-featured img { width: 100%; border-radius: 20px; }
.posts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
.post-card { padding: 24px; border-radius: 20px; background: var(--soft); }
.post-card img { width: 100%; aspect-ratio: 16 / 9; margin-bottom: 16px; border-radius: 14px; object-fit: cover; }
.post-card h2 { color: var(--ink); }
.navigation.pagination { margin-top: 3rem; text-align: center; }

/* Patička */
.site-footer { position: relative; overflow: hidden; padding: 95px 0 26px; background: radial-gradient(ellipse at 15% 20%, #e7f8ee 0, transparent 48%), radial-gradient(ellipse at 80% 0, #f3fbe6 0, transparent 55%), #f7fcf7; }
.site-footer::before { content: ""; position: absolute; top: -55px; left: -5%; width: 110%; height: 100px; border-radius: 50%; background: #fff; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1fr .8fr 1.65fr; gap: 55px; }
.footer-title { margin: 0 0 18px; color: var(--ink); font-weight: 800; }
.footer-col p, .footer-col a { display: block; margin: 0 0 9px; font-size: .9rem; }
.site-footer a { text-decoration: none; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 14px; color: var(--ink-dark); }
.footer-brand img { width: 52px; height: 45px; object-fit: contain; mix-blend-mode: normal; }
.footer-brand strong { font-size: .9rem; }
.footer-documents { padding-top: 51px; }
.footer-partners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 82px; align-items: center; gap: 22px 26px; }
.footer-partners img { width: 100%; height: 76px; justify-self: center; object-fit: contain; object-position: center; }
.copyright { position: relative; margin: 45px 0 0; text-align: center; font-size: .8rem; }

@media (max-width: 980px) {
  .js .menu-toggle { display: block; }
  .js .site-nav { position: absolute; top: 82px; left: 20px; right: 20px; display: none; padding: 22px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 22px; }
  .hero-home { min-height: 550px; }
  .hero-copy { width: 44%; }
  .hero-copy p { max-width: 360px; }
  .service-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values-grid { gap: 24px; }
  .inner-hero-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .team-grid { grid-template-columns: 1fr; }
  .team-grid > img { max-height: 430px; }
  .team-roles { padding-left: 0; border-left: 0; }
  .work-grid { gap: 30px; }
  .work-grid article { grid-template-columns: 120px 1fr; }
  .sprite-work { width: 120px; height: 120px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-copy { text-align: center; }
  .contact-art { max-height: 380px; }
  .branches-grid { grid-template-columns: repeat(2, 1fr); gap: 45px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-partners { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 28px, 620px); }
  .section { padding: 3.5rem 0; }
  .services-home { padding-top: 2.75rem; }
  .news { padding-top: 3rem; padding-bottom: 1rem; }
  .hero-home { min-height: 640px; align-items: flex-start; }
  .hero-wave { object-fit: fill; }
  .hero-family { top: auto; right: -50px; bottom: 0; width: min(135vw, 730px); height: auto; object-fit: contain; object-position: center; }
  .hero-grid { padding-top: 42px; }
  .hero-copy { width: min(100%, 355px); }
  .hero-copy h1 { font-size: 2.45rem; }
  .service-grid--three, .service-grid--two, .values-grid, .news-grid, .posts-grid { grid-template-columns: 1fr; }
  .service-card--care { grid-template-columns: 1fr; grid-template-rows: auto auto; gap: 22px; padding: 28px 24px; text-align: center; }
  .service-card--care .service-art { grid-column: 1; grid-row: 1; max-width: 210px; }
  .service-care-content { grid-column: 1; grid-row: 2; align-items: center; }
  .service-care-content .button { align-self: center; }
  .inner-hero { min-height: 0; padding-bottom: 30px; }
  .inner-hero-wave { top: 50px; height: 110px; }
  .inner-hero-grid { grid-template-columns: 1fr; padding-top: 88px; text-align: center; }
  .inner-hero-copy h2, .inner-hero-copy p { margin-inline: auto; }
  .inner-hero-art { justify-self: center; max-height: 330px; }
  .simple-hero > img { height: 105px; }
  .simple-hero--services > img { margin-top: -55px; }
  .work-grid { grid-template-columns: 1fr; }
  .partner-row { grid-template-columns: 1fr 1fr; text-align: center; }
  .partner-row h3 { grid-column: 1 / -1; }
  .price-list > div { grid-template-columns: 1fr; gap: 5px; padding: .8rem 0; }
  .price-list dd { color: var(--ink-dark); font-weight: 700; }
  .process-grid { grid-template-columns: 1fr; gap: 42px; }
  .process-step:not(:last-child)::after { content: "↓"; top: auto; right: 50%; bottom: -43px; transform: translateX(50%); font-size: 2rem; }
  .contact-details-grid { grid-template-columns: 1fr; gap: 45px; }
  .contact-details-grid > div + div { padding-left: 0; border-left: 0; }
  .news-card { grid-template-columns: 130px 1fr; }
  .contact-form, .contact-form-plugin .wpfi-form { grid-template-columns: 1fr; }
  .form-field--full, .consent-field, .form-actions { grid-column: auto; }
}

@media (max-width: 520px) {
  body { font-size: 15px; }
  .site-header { padding: 13px 0; }
  .brand { gap: 7px; font-size: 1.2rem; }
  .brand-logo { width: 68px; height: 59px; }
  .hero-home { min-height: 610px; }
  .hero-family { right: -70px; width: min(145vw, 650px); height: auto; }
  .hero-copy h1 { font-size: 2rem; }
  .service-card, .service-card--large { padding: 16px 18px 24px; }
  .sprite-values { width: 165px; height: 117px; }
  .work-grid article { grid-template-columns: 90px 1fr; }
  .sprite-work { width: 90px; height: 90px; }
  .partner-row { grid-template-columns: 1fr; }
  .partner-row img, .partner-row h3 { grid-column: auto; }
  .news-card { grid-template-columns: 1fr; }
  .news-media { min-height: 0; aspect-ratio: 16 / 9; }
  .news-body { padding: 16px 3px 2px; }
  .contact-list > div { grid-template-columns: 1fr; gap: 2px; margin-bottom: 14px; }
  .branches-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-documents { padding-top: 0; }
  .footer-partners { grid-column: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .footer-partners img { height: 62px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
