/*
Theme Name: Dr. Sutco One Page
Theme URI: https://drsutco.ee/
Author: INdental OÜ
Description: Lightweight one-page personal website for Dr. Nazar Sutco.
Version: 1.19.2
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: dr-sutco
*/

:root {
  --ink: #142b43;
  --ink-soft: #33485c;
  --paper: #fbfaf7;
  --paper-warm: #f3efe8;
  --white: #ffffff;
  --bronze: #aa7a45;
  --bronze-dark: #8f6232;
  --teal: #3d7774;
  --line: #dcd7ce;
  --shadow: 0 18px 50px rgba(20, 43, 67, 0.09);
  --radius: 18px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  margin: 0;
  clip: auto;
  background: var(--white);
  color: var(--ink);
  border-radius: 8px;
}

.container {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(251, 250, 247, 0.94);
  border-bottom: 1px solid rgba(220, 215, 206, 0.75);
  backdrop-filter: blur(14px);
}

section[id],
article[id] {
  scroll-margin-top: 96px;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--bronze-dark);
}

.hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 5% 20%, rgba(170, 122, 69, 0.08), transparent 32%),
    var(--paper);
}

.hero-grid {
  min-height: 740px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(400px, 1.05fr);
  align-items: center;
  gap: clamp(40px, 7vw, 100px);
  padding: 76px 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--bronze-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.08;
}

h1 {
  max-width: 720px;
  margin-bottom: 26px;
  font-size: clamp(46px, 6vw, 78px);
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(34px, 4.5vw, 54px);
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

.hero-copy {
  max-width: 650px;
  margin: 0 0 34px;
  font-size: clamp(18px, 2vw, 21px);
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: var(--bronze);
  color: var(--white);
  border: 1px solid var(--bronze);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  background: var(--bronze-dark);
  transform: translateY(-2px);
}

.button-secondary {
  background: transparent;
  color: var(--bronze-dark);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--bronze-dark);
  color: var(--white);
}

.hero-portrait {
  position: relative;
  width: min(100%, 560px);
  margin-left: auto;
}

.hero-portrait::before {
  position: absolute;
  z-index: 0;
  inset: -18px 22px 26px -18px;
  content: "";
  background: var(--paper-warm);
  border-radius: 42% 42% 22px 22px;
}

.hero-portrait img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: 240px 240px 22px 22px;
  box-shadow: var(--shadow);
}

.section {
  padding: 94px 0;
}

.section-intro {
  max-width: 720px;
  margin-bottom: 42px;
}

.pathways {
  background: var(--paper-warm);
}

.pathways-intro > p:last-child {
  max-width: 680px;
  margin-bottom: 0;
  font-size: 18px;
}

.pathway-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.pathway-card {
  padding: clamp(30px, 5vw, 52px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.pathway-card-patient {
  background: var(--white);
  border: 1px solid var(--line);
}

.pathway-card-referral {
  background: #e5eee9;
  border: 1px solid #ccdcd4;
}

.pathway-card h3 {
  max-width: 480px;
  font-size: clamp(28px, 3vw, 38px);
}

.check-list {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 24px 0 28px;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--bronze-dark);
  content: "✓";
  font-weight: 800;
}

.text-link {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--bronze-dark);
}

.when-to-contact {
  background: var(--paper);
}

.when-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(50px, 8vw, 120px);
}

.when-heading p:not(.eyebrow) {
  max-width: 520px;
  margin-bottom: 28px;
}

.symptom-list {
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.symptom-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.symptom-list span {
  color: var(--bronze-dark);
  font-family: var(--serif);
  font-weight: 700;
}

.symptom-list p {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.services {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
}

.services .eyebrow {
  color: #d9b98f;
}

.services h2,
.services h3 {
  color: var(--white);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.service-card {
  min-height: 220px;
  padding: 32px 24px;
  border: 0;
  background: var(--ink);
}

.service-card:last-child {
  border-right: 0;
}

.service-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 30px;
  place-items: center;
  color: #d9b98f;
  background: rgba(217, 185, 143, 0.08);
  border: 1px solid rgba(217, 185, 143, 0.35);
  border-radius: 50%;
}

.service-icon svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

.about {
  background: var(--paper-warm);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: start;
  gap: clamp(50px, 8vw, 120px);
}

.about-copy {
  font-size: 19px;
}

.about-lead {
  color: var(--ink);
  font-size: 21px;
  font-weight: 700;
}

.philosophy-title {
  margin: 0 0 20px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.08;
}

.about-copy p {
  margin-top: 0;
}

.principles {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.principle {
  padding: 24px 26px;
  background: var(--white);
}

.principle strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 21px;
}

.principle span {
  font-size: 15px;
}

.contact {
  background: var(--paper);
}

.referral-process {
  background: #e5eee9;
}

.referral-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(50px, 8vw, 120px);
}

.process-list {
  border-top: 1px solid rgba(20, 43, 67, 0.22);
}

.process-list > div {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(20, 43, 67, 0.22);
}

.process-list span {
  color: var(--bronze-dark);
  font-family: var(--serif);
  font-weight: 700;
}

.process-list p {
  margin: 0;
}

.process-list .referral-contact {
  padding-top: 30px;
}

.referral-contact a {
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
}

.referral-contact small {
  display: inline-block;
  max-width: 620px;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.contact-section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.contact-section-heading h2 {
  margin-bottom: 12px;
}

.clinic-contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.direct-contact-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  max-width: 720px;
  margin-top: 28px;
  padding: 24px 28px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.direct-contact-block p {
  max-width: 600px;
  margin: 0 0 2px;
  color: var(--ink-soft);
}

.contact-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 26px;
  padding: clamp(28px, 4vw, 42px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-panel .contact-links {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.contact-panel h2 {
  margin-bottom: 12px;
}

.contact-panel p {
  max-width: 700px;
  margin: 0;
}

.contact-panel .contact-clinic {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 19px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.contact-label {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-email {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.contact-email:hover,
.contact-email:focus-visible {
  color: var(--bronze-dark);
}

.legal-details {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.legal-details p {
  margin: 0 0 8px;
}

.site-footer {
  padding: 28px 0;
  background: #0d2032;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  text-underline-offset: 3px;
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
  color: var(--bronze);
}

.footer-consent-link {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.footer-consent-link:hover,
.footer-consent-link:focus-visible {
  color: var(--bronze);
}

.generic-content {
  min-height: 60vh;
  padding: 80px 0;
}

.privacy-content {
  max-width: 860px;
}

.privacy-content h2 {
  margin-top: 46px;
  font-size: clamp(26px, 4vw, 36px);
}

.privacy-content h3 {
  margin-top: 28px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
}

.privacy-content li {
  margin-bottom: 10px;
}

.privacy-notice {
  margin: 28px 0;
  padding: 20px 22px;
  border-left: 4px solid var(--bronze);
  background: var(--paper-warm);
}

.appointment-page {
  min-height: 70vh;
  padding-bottom: 92px;
}

.appointment-hero {
  padding: 72px 0;
  background: var(--paper-warm);
}

.appointment-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.7fr);
  gap: 88px;
  align-items: center;
}

.appointment-page h1 {
  max-width: 760px;
  margin: 10px 0 26px;
}

.appointment-lead {
  max-width: 680px;
  margin: 0 0 30px;
  font-size: 21px;
  line-height: 1.65;
}

.appointment-portrait {
  width: min(100%, 430px);
  margin-left: auto;
  overflow: hidden;
  border-radius: 160px 160px 24px 24px;
  background: #e9e4da;
  box-shadow: var(--shadow);
}

.appointment-portrait img {
  display: block;
  width: 100%;
  height: auto;
}

.appointment-content {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: 80px;
  align-items: start;
  padding-top: 76px;
}

.appointment-about {
  padding: 64px 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.appointment-about-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.55fr) minmax(0, 1.15fr);
  gap: clamp(40px, 8vw, 110px);
  align-items: start;
}

.appointment-about h2 {
  margin-bottom: 0;
}

.appointment-about-copy {
  max-width: 720px;
  font-size: 18px;
}

.appointment-about-copy p {
  margin: 0 0 16px;
}

.appointment-about-copy p:first-child {
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
}

.appointment-section-title {
  margin: 0 0 30px;
}

.appointment-services {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.appointment-services li {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 19px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
}

.appointment-services li::before {
  content: "→";
  color: var(--bronze);
  font-size: 20px;
}


.appointment-clinics {
  display: grid;
  gap: 22px;
}

.appointment-clinics .appointment-card {
  box-shadow: var(--shadow);
}

.appointment-clinics-legal {
  padding: 4px 4px 0;
  color: var(--ink-soft);
}

.appointment-card {
  padding: 40px;
  border-radius: var(--radius);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.appointment-card h2 {
  margin-top: 0;
  color: var(--white);
}

.appointment-card strong,
.appointment-card a:not(.button) {
  color: var(--white);
}

.appointment-card .button {
  width: 100%;
  margin: 12px 0 26px;
  text-align: center;
}

.appointment-card .legal-details {
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.68);
}


.appointment-faq {
  margin-top: 76px;
  padding: 72px 0;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.appointment-faq-inner {
  display: grid;
  grid-template-columns: minmax(240px, 0.55fr) minmax(0, 1.15fr);
  gap: clamp(40px, 8vw, 110px);
  align-items: start;
}

.appointment-faq-heading h2 {
  margin-bottom: 14px;
}

.appointment-faq-heading > p:last-child {
  max-width: 440px;
  margin-bottom: 0;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 22px 42px 22px 0;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 21px;
  right: 4px;
  color: var(--bronze-dark);
  content: "+";
  font-size: 24px;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 760px;
  margin: -4px 0 22px;
}

.appointment-final {
  margin-top: 76px;
  padding: 64px 0;
  background: #e5eee9;
}

.appointment-final-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.appointment-final h2 {
  margin-bottom: 10px;
}

.appointment-final p:not(.eyebrow) {
  margin: 0;
}

.appointment-final-actions {
  display: flex;
  min-width: 280px;
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
}

.appointment-final-actions span {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.appointment-final-email {
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  text-underline-offset: 4px;
}

.appointment-final-email:hover,
.appointment-final-email:focus-visible {
  color: var(--bronze-dark);
}

.consent-banner {
  position: fixed;
  z-index: 9999;
  right: 20px;
  bottom: 20px;
  left: 20px;
}

.consent-banner[hidden] {
  display: none;
}

.consent-inner {
  display: flex;
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 20px 22px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 60px rgba(13, 32, 50, 0.3);
}

.consent-inner p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.consent-inner a {
  color: var(--white);
  text-underline-offset: 3px;
}

.consent-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.consent-actions .button {
  min-width: auto;
  padding: 11px 16px;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}

.consent-actions .button-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.consent-actions .button-secondary:hover,
.consent-actions .button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  color: var(--white);
}



/* Education / course section */
.education {
  background: var(--paper-warm);
}

.education-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 38px;
}

.education-heading > div:first-child {
  max-width: 760px;
}

.education-lead {
  max-width: 720px;
  margin: 0;
  font-size: 19px;
}

.education-status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid #d8cbbd;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.education-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bronze);
}

.education-status.is-sold-out {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.education-status.is-sold-out .education-status-dot {
  background: var(--bronze);
}

.education-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 26px;
  align-items: stretch;
}

.course-card,
.course-details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.course-card {
  padding: clamp(30px, 5vw, 54px);
}

.course-kicker {
  margin: 0 0 12px;
  color: var(--bronze-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.course-card h3 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: clamp(30px, 3.8vw, 44px);
}

.course-card > p:not(.course-kicker) {
  max-width: 720px;
  margin-bottom: 24px;
}

.course-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  padding: 0;
  margin: 0 0 30px;
  list-style: none;
}

.course-points li {
  position: relative;
  padding-left: 22px;
}

.course-points li::before {
  position: absolute;
  left: 0;
  color: var(--bronze-dark);
  content: "✓";
  font-weight: 800;
}


.course-visual {
  margin: 0 0 28px;
  overflow: hidden;
  border-radius: calc(var(--radius) - 4px);
  background: var(--paper-warm);
}

.course-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.course-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.course-actions small {
  max-width: 390px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}

.course-waitlist {
  margin-top: 28px;
  padding: 22px 24px;
  border: 1px solid #d8cbbd;
  border-radius: 16px;
  background: var(--paper-warm);
}

.course-waitlist-label {
  margin: 0 0 6px;
  color: var(--bronze-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.course-waitlist h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.15;
}

.course-waitlist > p:not(.course-waitlist-label) {
  margin: 0 0 18px;
  color: var(--ink-soft);
}

.course-button-disabled {
  cursor: default;
  opacity: 0.72;
  pointer-events: none;
}

.course-details {
  display: grid;
  padding: 10px 28px;
}

.course-detail {
  display: grid;
  gap: 2px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.course-detail:last-child {
  border-bottom: 0;
}

.course-detail span {
  color: var(--bronze-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.course-detail strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 21px;
}

.course-detail small {
  color: var(--ink-soft);
  font-size: 14px;
}

@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .referral-grid,
  .when-grid,
  .appointment-hero-grid,
  .appointment-content,
  .appointment-about-grid,
  .appointment-faq-inner {
    grid-template-columns: 1fr;
  }

  .education-grid {
    grid-template-columns: 1fr;
  }

  .education-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .appointment-hero-grid,
  .appointment-content {
    gap: 48px;
  }

  .appointment-portrait {
    width: min(430px, 100%);
    margin: 0 auto;
  }

  .pathway-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    padding: 60px 0 72px;
  }

  .hero-portrait {
    width: min(520px, 100%);
    margin: 0 auto;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card:nth-child(2) {
    border-right: 0;
  }

  .service-card:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(100% - 30px, 1160px);
  }

  .header-inner {
    min-height: 70px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 14px 0;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px 18px;
  }

  .main-nav a {
    font-size: 14px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 60px);
  }

  .hero-grid {
    gap: 54px;
  }

  .section {
    padding: 68px 0;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .course-points {
    grid-template-columns: 1fr;
  }

  .service-card,
  .service-card:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .service-card:last-child {
    border-bottom: 0;
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }

  .appointment-final-inner,
  .consent-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .consent-actions {
    width: 100%;
  }

  .consent-actions .button {
    flex: 1;
  }

  .appointment-portrait {
    border-radius: 110px 110px 20px 20px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}


/* Language switch: shown only on the main ET/EN site, never on /vastuvott/. */
.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.language-switch a {
  color: var(--ink-soft);
  text-decoration: none;
}

.language-switch a:hover,
.language-switch a:focus-visible {
  color: var(--bronze-dark);
}

.language-switch .is-active {
  color: var(--ink);
}

.language-switch .language-divider {
  color: var(--line);
}

@media (max-width: 640px) {
  .header-actions {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .language-switch {
    align-self: flex-end;
  }
}


/* Compact education teaser on the main pages */
.education-teaser { padding-top: clamp(56px, 8vw, 90px); padding-bottom: clamp(56px, 8vw, 90px); }
.education-teaser-inner { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:36px; align-items:center; }
.education-teaser h2 { margin-bottom:12px; }
.education-teaser-meta { margin-top:20px; color:var(--bronze-dark); font-size:14px; font-weight:800; letter-spacing:.02em; }
.education-teaser-actions { display:flex; flex-direction:column; align-items:flex-start; gap:14px; min-width:220px; }
.education-waitlist-note { max-width:320px; color:var(--ink-soft); font-size:13px; line-height:1.5; }
.education-waitlist-note a { color:var(--bronze-dark); font-weight:700; text-decoration-thickness:1px; text-underline-offset:2px; }

/* Standalone course landing pages */
.course-page-hero { padding-top: clamp(64px, 9vw, 110px); }
.course-page-hero .education-heading h1 { margin-bottom:16px; font-size:clamp(46px,7vw,78px); }
.course-page-hero .course-card h2 { max-width:680px; margin-bottom:18px; font-size:clamp(30px,3.8vw,44px); }
.course-copy-grid { display:grid; grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr); gap:64px; align-items:start; }
.course-copy-grid h2 { margin-bottom:0; }
.course-copy-grid p { max-width:720px; }
.course-final-cta { text-align:center; background:var(--paper-warm); }
.course-final-cta .container { max-width:900px; }
.course-final-cta h2 { margin:0 auto 28px; }

@media (max-width: 760px) {
  .clinic-contact-list { grid-template-columns: 1fr; }

  .education-teaser-inner, .course-copy-grid { grid-template-columns:1fr; gap:24px; }
  .education-teaser-actions { min-width:0; }
  .course-page-hero .education-heading { align-items:flex-start; }
}
