:root {
  --bg: #f3f7f7;
  --surface: #ffffff;
  --surface-soft: #e7f3f1;
  --text: #163235;
  --muted: #507174;
  --primary: #0b8c8f;
  --primary-strong: #06696c;
  --accent: #f2913d;
  --line: #cbe1de;
  --radius: 18px;
  --shadow: 0 20px 35px -24px rgba(7, 64, 68, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Sora", sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      circle at top right,
      rgba(11, 140, 143, 0.18),
      transparent 40%
    ),
    radial-gradient(
      circle at 10% 20%,
      rgba(242, 145, 61, 0.16),
      transparent 35%
    ),
    var(--bg);
  line-height: 1.6;
  transition: opacity 0.28s ease;
}

body.page-leaving {
  opacity: 0;
}

.page-transition-layer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 24% 18%, rgba(16, 27, 37, 0.72), rgba(8, 12, 18, 0.92));
  transition: opacity 0.3s ease;
}

.page-transition-layer.is-active {
  opacity: 1;
}

body.menu-open {
  overflow: hidden;
}

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

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

.container {
  width: min(1120px, calc(100% - 3rem));
  margin: 0 auto;
}

.section-space {
  padding: 4rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e3e3e3;
}

.nav-wrap {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 0;
  min-height: 96px;
  padding-inline: clamp(0.9rem, 2.4vw, 2.4rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
}

.brand-text {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  line-height: 1;
}

.brand-main {
  color: #0f1419;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.26rem 0.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #df0b3d, #be0934);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand img {
  width: 38px;
  height: 38px;
}

.site-header .brand {
  padding-right: 2rem;
  border-right: 1px solid #ededed;
  height: 100%;
  min-width: 250px;
}

.site-header .brand img {
  width: 48px;
  height: 48px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 96px;
  border-right: 1px solid #ededed;
}

.nav-item {
  position: relative;
}

.nav-link {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 500;
  color: #5d6267;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #101417;
  background: #f3f3f3;
}

.nav-services-link::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 0.45rem;
  border-right: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

.services-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 292px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  box-shadow: 0 24px 34px -30px rgba(0, 0, 0, 0.5);
  padding: 0.45rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 40;
}

.services-dropdown a {
  display: block;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  color: #4c5159;
  font-size: 0.92rem;
  font-weight: 500;
}

.services-dropdown a:hover {
  background: #f3f3f3;
  color: #101417;
}

.nav-services:hover .services-dropdown,
.nav-services:focus-within .services-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-left: 1.4rem;
}

.btn-appointment {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: clamp(46px, 3.4vw, 58px);
  padding-block: clamp(0.62rem, 0.9vw, 0.85rem);
  padding-inline: clamp(1rem, 2.1vw, 2rem);
  background: linear-gradient(135deg, #df0b3d, #be0934);
  color: #fff;
  font-size: clamp(0.74rem, 0.2vw + 0.7rem, 0.85rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.btn-appointment:hover {
  background: linear-gradient(135deg, #be0934, #a9082d);
}

@media (min-width: 1281px) {
  .btn-appointment {
    display: inline-flex;
  }
}

.expert-line {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-left: 0.4rem;
}

.expert-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #f5f5f5;
  color: #cf0a38;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.expert-icon i {
  width: 20px;
  height: 20px;
}

.expert-line p {
  color: #4e4e4e;
  font-size: 0.88rem;
}

.expert-line a {
  font-weight: 600;
  color: #1b1b1b;
  font-size: 1.03rem;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid #dbdbdb;
  border-radius: 8px;
  background: #fff;
  color: #131313;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-toggle i {
  width: 20px;
  height: 20px;
}

@media (min-width: 981px) {
  .site-header .container {
    width: 100%;
    padding-inline: 100px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.2rem;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -14px rgba(6, 105, 108, 0.8);
}

.btn-sm {
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
}

.btn-ghost {
  background: transparent;
  color: var(--primary-strong);
  border: 1px solid var(--primary);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.78rem;
  color: var(--primary-strong);
  font-weight: 700;
}

.section-head {
  margin-bottom: 1.6rem;
}

.section-head h1,
.section-head h2 {
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.1;
  margin-top: 0.5rem;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.section-head p {
  color: var(--muted);
  margin-top: 0.85rem;
  max-width: 68ch;
}

.page-head h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  box-shadow: var(--shadow);
}

.card h2,
.card h3 {
  font-family: "Space Grotesk", sans-serif;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.card a {
  color: var(--primary-strong);
  font-weight: 600;
}

.card i {
  width: 22px;
  height: 22px;
  color: var(--primary-strong);
  margin-bottom: 0.75rem;
}

.check-list {
  display: grid;
  gap: 0.55rem;
  list-style: none;
  margin-top: 0.7rem;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
}

.check-list i {
  width: 18px;
  height: 18px;
  color: var(--primary);
  margin: 0;
}

.site-footer {
  margin-top: 3rem;
  padding-top: 2.6rem;
  background:
    linear-gradient(135deg, #0f131d 0%, #111827 42%, #0f131d 100%);
  color: rgba(255, 255, 255, 0.86);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.95fr 1.15fr;
  gap: 1.35rem;
}

.site-footer .brand {
  color: #fff;
}

.site-footer .brand-main {
  color: #fff;
}

.site-footer .brand-accent {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.site-footer .brand img {
  width: 42px;
  height: 42px;
}

.footer-col h3 {
  font-family: "Space Grotesk", sans-serif;
  margin-bottom: 0.65rem;
  color: #fff;
  font-size: 1.3rem;
}

.footer-col p,
.footer-col a {
  color: rgba(255, 255, 255, 0.72);
  display: block;
  margin-bottom: 0.38rem;
}

.footer-brand {
  margin-bottom: 0.8rem;
}

.footer-brand-col > p {
  max-width: 36ch;
  line-height: 1.7;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.footer-contact i {
  width: 17px;
  height: 17px;
  color: #e70842;
  flex-shrink: 0;
}

.footer-col a:hover {
  color: #fff;
}

.footer-operator {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-operator h4 {
  margin-bottom: 0.45rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  color: #fff;
}

.footer-operator p {
  font-size: 0.9rem;
  line-height: 1.55;
}

.footer-bottom {
  margin-top: 1.8rem;
  padding: 1rem 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-disclaimer {
  padding: 0.9rem 0 1.8rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.18);
}

.footer-disclaimer p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.85rem;
  line-height: 1.55;
}

input,
select,
textarea {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  font: inherit;
  color: var(--text);
  width: 100%;
  padding: 0.7rem 0.85rem;
}

label {
  font-size: 0.92rem;
  font-weight: 600;
}

.reveal {
  opacity: 0;
  transform: translate3d(var(--reveal-x, 0), var(--reveal-y, 22px), 0);
  transition:
    opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.reveal-left {
  --reveal-x: -58px;
  --reveal-y: 0;
}

.reveal-right {
  --reveal-x: 58px;
  --reveal-y: 0;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (max-width: 680px) {
  .reveal-left {
    --reveal-x: -30px;
  }

  .reveal-right {
    --reveal-x: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body {
    transition: none;
  }

  .page-transition-layer {
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

body.has-cookie-banner {
  padding-bottom: clamp(160px, 22vw, 220px);
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: min(560px, calc(100% - 1.4rem));
  z-index: 260;
  background: linear-gradient(155deg, rgba(13, 18, 27, 0.98), rgba(17, 23, 34, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  box-shadow: 0 28px 55px -38px rgba(0, 0, 0, 0.95);
  color: #f4f6fb;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.24s ease,
    transform 0.24s ease;
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #e70842, #be0934);
}

.cookie-banner-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: end;
  padding: 1rem 1.1rem 1.05rem;
}

.cookie-banner-copy {
  display: grid;
  gap: 0.45rem;
}

.cookie-banner-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(231, 8, 66, 0.15);
  border: 1px solid rgba(231, 8, 66, 0.35);
  color: #ffb5ca;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 700;
}

.cookie-banner-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: #fff;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.15;
}

.cookie-banner-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.cookie-banner-text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: end;
}

.cookie-btn {
  border: 1px solid transparent;
  min-height: 42px;
  padding: 0.52rem 0.95rem;
  border-radius: 8px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
}

.cookie-btn-accept {
  background: linear-gradient(135deg, #df0b3d, #be0934);
  color: #fff;
  box-shadow: 0 10px 18px -14px rgba(223, 11, 61, 0.9);
}

.cookie-btn-accept:hover {
  background: linear-gradient(135deg, #be0934, #a9082d);
}

.cookie-btn-decline {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
}

.cookie-btn-decline:hover {
  background: rgba(255, 255, 255, 0.14);
}

@media (max-width: 980px) {
  .nav-wrap {
    grid-template-columns: auto 1fr auto auto;
    gap: 0.6rem;
    min-height: 78px;
    padding: 0.55rem clamp(0.7rem, 2.2vw, 1.2rem);
  }

  .site-header .brand {
    min-width: 0;
    border-right: 0;
    padding-right: 0;
    font-size: 0.95rem;
  }

  .site-header .brand-main {
    font-size: 0.96rem;
  }

  .site-header .brand-accent {
    padding: 0.2rem 0.38rem;
    font-size: 0.5rem;
    letter-spacing: 0.08em;
  }

  .site-header .brand img {
    width: 40px;
    height: 40px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    min-height: auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #fff;
    padding: 0.7rem;
    box-shadow: 0 24px 34px -28px rgba(0, 0, 0, 0.45);
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .nav-item {
    width: 100%;
  }

  .nav-services-link {
    width: 100%;
    display: inline-flex;
    align-items: center;
  }

  .nav-services-link::after {
    margin-left: auto;
    transition: transform 0.2s ease;
  }

  .nav-services.mobile-open .nav-services-link::after {
    transform: rotate(225deg) translateY(1px);
  }

  .services-dropdown {
    position: static;
    min-width: 0;
    opacity: 0;
    visibility: hidden;
    transform: none;
    pointer-events: none;
    display: none;
    border: 1px solid #ececec;
    border-radius: 10px;
    background: #f8f8f8;
    box-shadow: none;
    margin-top: 0.35rem;
  }

  .nav-services.mobile-open .services-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: block;
  }

  .services-dropdown a {
    font-size: 0.9rem;
    padding: 0.52rem 0.6rem;
  }

  .site-header.menu-open .site-nav {
    display: flex;
  }

  .nav-link {
    border-radius: 10px;
    padding: 0.7rem 0.8rem;
  }

  .header-actions {
    margin-left: auto;
    padding-left: 0;
    gap: 0.45rem;
  }

  .expert-line {
    display: inline-flex;
    position: relative;
    margin-left: 0;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }

  .expert-line .expert-icon {
    width: 44px;
    height: 44px;
  }

  .expert-line > div {
    position: absolute;
    inset: 0;
  }

  .expert-line > div p {
    display: none;
  }

  .expert-line > div a {
    display: block;
    width: 100%;
    height: 100%;
    font-size: 0;
    color: transparent;
  }

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

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .cookie-banner-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .cookie-banner-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .cookie-btn {
    flex: 1;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(1120px, calc(100% - 1.4rem));
  }

  .btn-appointment {
    display: none;
  }

  .cards-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .btn-sm {
    display: none;
  }

  body.has-cookie-banner {
    padding-bottom: 220px;
  }

  .cookie-banner {
    right: 50%;
    bottom: 8px;
    transform: translateX(50%) translateY(16px);
    width: calc(100% - 0.8rem);
    border-radius: 14px;
  }

  .cookie-banner.is-visible {
    transform: translateX(50%) translateY(0);
  }

  .cookie-banner-inner {
    padding: 0.75rem;
    gap: 0.65rem;
  }

  .cookie-banner-label {
    font-size: 0.66rem;
  }

  .cookie-banner-title {
    font-size: 1.03rem;
  }

  .cookie-banner-text {
    font-size: 0.84rem;
  }

  .cookie-banner-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
  }

  .cookie-btn {
    width: 100%;
    min-height: 38px;
    padding: 0.5rem 0.65rem;
    font-size: 0.74rem;
  }
}
