:root {
  --ink: #102f3c;
  --ink-soft: #526970;
  --paper: #f7f8f4;
  --white: #ffffff;
  --sage: #cddbd4;
  --sage-deep: #78958b;
  --line: rgba(16, 47, 60, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.site-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1420px;
  padding: 28px clamp(24px, 6vw, 88px) 20px;
}

.brand,
.footer-brand {
  align-items: center;
  display: flex;
  gap: 13px;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 50%;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  position: relative;
  width: 42px;
}

.brand-mark span:first-child {
  background: var(--white);
  height: 18px;
  position: absolute;
  width: 2px;
}

.brand-mark span:last-child {
  background: var(--white);
  height: 2px;
  position: absolute;
  width: 18px;
}

.brand-mark.small {
  height: 36px;
  width: 36px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.brand-text strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 600;
}

.brand-text small {
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.19em;
  margin-top: 4px;
  text-transform: uppercase;
}

.header-link {
  align-items: center;
  border-bottom: 1px solid var(--ink);
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 9px;
  letter-spacing: 0.08em;
  padding: 8px 0;
  text-transform: uppercase;
  transition: color 180ms ease, border-color 180ms ease;
}

.header-link:hover,
.header-link:focus-visible {
  border-color: var(--sage-deep);
  color: var(--sage-deep);
}

.arrow-icon {
  height: 19px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transition: transform 180ms ease;
  width: 19px;
}

a:hover .arrow-icon,
a:focus-visible .arrow-icon {
  transform: translateX(3px);
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(44px, 6vw, 96px);
  grid-template-columns: minmax(0, 1.03fr) minmax(400px, 0.97fr);
  margin: 0 auto;
  max-width: 1420px;
  min-height: min(780px, calc(100vh - 90px));
  padding: 28px clamp(24px, 6vw, 88px) 72px;
}

.hero-copy {
  max-width: 680px;
  padding-bottom: 18px;
}

.overline {
  align-items: center;
  color: var(--sage-deep);
  display: flex;
  font-size: 12px;
  font-weight: 700;
  gap: 11px;
  letter-spacing: 0.18em;
  margin: 0 0 22px;
  text-transform: uppercase;
}

.overline > span {
  background: var(--sage-deep);
  display: inline-block;
  height: 1px;
  width: 34px;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.045em;
}

h1 {
  font-size: clamp(50px, 5.1vw, 76px);
  line-height: 0.96;
  margin: 0;
}

h1 .doctor-name {
  display: inline-block;
  white-space: nowrap;
}

h1 .doctor-specialty {
  color: var(--sage-deep);
  display: block;
  font-size: 0.53em;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-top: 17px;
}

.lead {
  color: var(--ink-soft);
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.7;
  margin: 30px 0 0;
  max-width: 590px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 34px;
}

.button {
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 13px;
  justify-content: center;
  min-height: 53px;
  padding: 0 25px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

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

.button-primary {
  background: var(--ink);
  color: var(--white);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #1b4654;
}

.button-secondary {
  background: transparent;
}

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

.practice-info {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 25px;
  grid-template-columns: 1fr 0.88fr;
  margin-top: 44px;
  padding-top: 27px;
}

.info-item {
  display: flex;
  gap: 14px;
}

.info-icon {
  flex: 0 0 auto;
  height: 22px;
  margin-top: 2px;
  stroke: var(--sage-deep);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  width: 22px;
}

.info-item span {
  color: var(--sage-deep);
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.info-item strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.info-item p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.45;
  margin: 4px 0 0;
}

.portrait-column {
  justify-self: end;
  max-width: 570px;
  position: relative;
  width: 100%;
}

.portrait-aura {
  border: 1px solid rgba(120, 149, 139, 0.33);
  border-radius: 52% 48% 44% 56% / 45% 44% 56% 55%;
  height: 89%;
  position: absolute;
  right: -32px;
  top: 5%;
  transform: rotate(5deg);
  width: 96%;
}

.portrait-frame {
  aspect-ratio: 0.78;
  background: var(--sage);
  border-radius: 280px 280px 28px 28px;
  box-shadow: 0 26px 70px rgba(32, 67, 74, 0.14);
  isolation: isolate;
  overflow: hidden;
  position: relative;
}

.portrait-frame::after {
  background: linear-gradient(to top, rgba(14, 45, 58, 0.18), transparent 32%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.doctor-portrait {
  height: 100%;
  object-fit: cover;
  object-position: center top;
  width: 100%;
}

.experience-card {
  align-items: flex-start;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.72);
  bottom: 24px;
  box-shadow: 0 12px 30px rgba(16, 47, 60, 0.14);
  display: flex;
  flex-direction: column;
  left: 24px;
  padding: 15px 20px;
  position: absolute;
  z-index: 2;
}

.experience-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 500;
  line-height: 1;
}

.experience-card span {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-top: 6px;
  text-transform: uppercase;
}

.portrait-caption {
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.16em;
  margin: 15px 0 0;
  text-align: right;
  text-transform: uppercase;
}

.useful-links {
  background: var(--white);
  padding: 95px clamp(24px, 6vw, 88px) 105px;
}

.section-intro {
  margin: 0 auto 44px;
  max-width: 1244px;
}

.section-intro h2 {
  font-size: clamp(38px, 4.3vw, 61px);
  line-height: 1.05;
  margin: 0;
  max-width: 730px;
}

.link-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 auto;
  max-width: 1244px;
}

.link-card {
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 285px;
  padding: 27px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.link-card:hover,
.link-card:focus-visible {
  border-color: var(--sage-deep);
  box-shadow: 0 18px 45px rgba(16, 47, 60, 0.09);
  transform: translateY(-4px);
}

.link-card.featured {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.link-eyebrow {
  color: var(--sage-deep);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.featured .link-eyebrow {
  color: var(--sage);
}

.link-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.08;
  margin: 35px 0 14px;
}

.link-card p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

.featured p {
  color: rgba(255, 255, 255, 0.68);
}

.card-action {
  align-items: center;
  display: flex;
  font-size: 12px;
  font-weight: 700;
  gap: 9px;
  letter-spacing: 0.08em;
  margin-top: auto;
  padding-top: 27px;
  text-transform: uppercase;
}

footer {
  align-items: center;
  background: var(--ink);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  padding: 34px clamp(24px, 6vw, 88px);
}

footer .brand-mark {
  background: var(--sage);
}

footer .brand-mark span {
  background: var(--ink);
}

.footer-brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 500;
}

.footer-brand p,
footer > p {
  color: rgba(255, 255, 255, 0.61);
  font-size: 11px;
  letter-spacing: 0.05em;
  margin: 4px 0 0;
}

@media (max-width: 1060px) {
  .hero {
    gap: 48px;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.83fr);
  }

  .practice-info {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .site-header {
    padding-top: 22px;
  }

  .brand-text strong {
    font-size: 19px;
  }

  .header-link {
    font-size: 0;
  }

  .header-link::before {
    content: "Foglalás";
    font-size: 11px;
  }

  .hero {
    display: flex;
    flex-direction: column;
    gap: 48px;
    min-height: 0;
    padding-bottom: 62px;
    padding-top: 45px;
  }

  .hero-copy {
    max-width: none;
    padding-bottom: 0;
  }

  h1 {
    font-size: clamp(39px, 11.5vw, 58px);
  }

  .lead {
    line-height: 1.58;
  }

  .practice-info {
    gap: 22px;
  }

  .portrait-column {
    max-width: 510px;
  }

  .portrait-aura {
    right: -14px;
  }

  .portrait-caption {
    text-align: left;
  }

  .useful-links {
    padding-bottom: 75px;
    padding-top: 70px;
  }

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

  .link-card {
    min-height: 238px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 26px;
  }
}

@media (max-width: 440px) {
  .brand-mark {
    height: 38px;
    width: 38px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .portrait-frame {
    border-radius: 210px 210px 22px 22px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
