@font-face {
  font-family: "Prata";
  src: url("https://kultkozhi.ru/tpls/content/medlaska_new/2026/prata_cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Prata";
  src: url("https://kultkozhi.ru/tpls/content/medlaska_new/2026/prata_latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Bad Script";
  src: url("https://kultkozhi.ru/tpls/content/medlaska_new/2026/bad_script_cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Bad Script";
  src: url("https://kultkozhi.ru/tpls/content/medlaska_new/2026/bad_script_latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #46413c;
  --muted: #716a63;
  --line: #d8d4ce;
  --paper: #fbfaf8;
  --wash: #f1efeb;
  --gold-deep: #62431d;
  --gold: #a87832;
  --gold-light: #ead49a;
  --gold-gradient: linear-gradient(108deg, #513517 0%, #9b6a29 24%, #ead49a 46%, #b17d35 66%, #5a3a17 100%);
  --serif: "Prata", Georgia, "Times New Roman", serif;
  --script: "Bad Script", "Segoe Script", cursive;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  min-height: 116px;
  padding: 0 3.2vw;
  display: grid;
  grid-template-columns: minmax(220px, .95fr) minmax(590px, 2.4fr) minmax(180px, .75fr) 90px;
  align-items: center;
  gap: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 248, .96);
}
.wordmark {
  font: 32px/1.08 var(--serif);
  text-transform: uppercase;
  white-space: nowrap;
}
.primary-nav {
  display: flex;
  justify-content: center;
  gap: clamp(10px, .9vw, 18px);
}
.primary-nav a,
.site-footer nav a {
  font: 14px/1.35 var(--serif);
  text-transform: uppercase;
  white-space: nowrap;
}
.primary-nav a {
  position: relative;
  padding: 12px 0;
  transition: color .2s ease;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  background: var(--gold-gradient);
  transform: scaleX(0);
  transition: transform .2s ease;
}
.primary-nav a:hover { color: var(--gold-deep); }
.primary-nav a:hover::after { transform: scaleX(1); }
.header-contacts,
.footer-contacts {
  display: grid;
  gap: 10px;
  font: 19px/1.2 var(--serif);
}
.login-link {
  min-width: 80px;
  padding: 14px 18px;
  border: 1px solid #bbb7b1;
  text-align: center;
  font: 16px/1 var(--serif);
  text-transform: uppercase;
}
.menu-toggle { display: none; }

.hero-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  max-width: 1600px;
  margin: 0 auto;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.skin-topics {
  padding: 38px 30px 30px;
  border-right: 1px solid var(--line);
  background: #f8f7f5;
}
.skin-topics p {
  margin: 0 0 25px;
  color: var(--gold-deep);
  font: 15px/1.45 var(--serif);
  text-transform: uppercase;
}
.skin-topics a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 49px;
  border-bottom: 1px solid #e5e1dc;
  font: 16px/1.25 var(--serif);
  transition: color .2s ease, padding-left .2s ease;
}
.skin-topics a:hover {
  padding-left: 5px;
  color: var(--gold-deep);
}
.skin-topics a::after {
  content: "›";
  color: var(--gold);
  font-size: 18px;
}

.hero {
  position: relative;
  min-height: 750px;
  overflow: hidden;
  background: #eeece8;
}
.hero > img,
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-media {
  display: block;
}
.hero > img,
.hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
.hero-copy {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 17% 7% 8%;
  pointer-events: none;
}
.hero-copy h1 {
  margin: 0;
  font: 78px/1.02 var(--serif);
  text-transform: uppercase;
}
.hero-copy p {
  margin: 28px 0 0;
  color: var(--gold-deep);
  font: 35px/1.25 var(--script);
  text-transform: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .82), 0 2px 5px rgba(87, 57, 24, .16);
}
.hero-copy span {
  margin-top: auto;
  font: 26px/1.35 var(--serif);
}

.content-section,
.specialists {
  max-width: 1600px;
  margin: 0 auto;
  padding: 56px 48px 20px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 34px;
  margin: 0 0 34px;
  font: 34px/1.2 var(--serif);
  text-align: center;
}
.section-title::before,
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gold-gradient);
  opacity: .68;
}
.section-title span { white-space: nowrap; }
.program-grid {
  display: grid;
  gap: 26px;
  margin-bottom: 52px;
}
.program-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.program-grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.program-card {
  min-width: 0;
  border: 1px solid var(--line);
  background: #fdfcfb;
  transition: transform .25s ease, box-shadow .25s ease;
}
.program-card:hover,
.specialist-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(67, 61, 55, .08);
}
.program-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  filter: saturate(.72) contrast(.94);
}
.program-card.compact img { height: 230px; }
.program-card h2 {
  min-height: 100px;
  margin: 0;
  padding: 24px 18px;
  display: grid;
  place-items: center;
  color: var(--gold-deep);
  font: 27px/1.3 var(--serif);
  text-align: center;
}
.program-card.compact h2 {
  min-height: 78px;
  font-size: 24px;
}

.feature-band {
  max-width: 1504px;
  margin: 0 auto;
  padding: 10px 0 54px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.certificate-panel,
.consultation-panel {
  min-height: 400px;
  border: 1px solid var(--line);
  background: #f6f4f1;
}
.panel-kicker {
  padding: 24px 26px;
  color: var(--gold-deep);
  font: 18px/1.25 var(--serif);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0;
}
.certificate-panel {
  position: relative;
  overflow: hidden;
}
.certificate-panel img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  object-position: center;
  filter: saturate(.82);
}
.consultation-panel {
  display: grid;
  grid-template-rows: auto 1fr;
}
.consultation-copy {
  margin: 0 28px 28px;
  padding: 42px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--line);
  text-align: center;
}
.consultation-copy strong {
  font: 60px/1.08 var(--serif);
  font-weight: normal;
}
.consultation-copy h2 {
  margin: 18px 0 22px;
  color: var(--gold-deep);
  font: 28px/1.35 var(--serif);
  font-weight: normal;
}
.consultation-copy p {
  max-width: 500px;
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  color: #5d5a56;
}

.specialists { padding-bottom: 60px; }
.specialist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.specialist-card {
  display: grid;
  grid-template-columns: 54% 46%;
  min-height: 255px;
  border: 1px solid var(--line);
  background: #fdfcfb;
  transition: transform .25s ease, box-shadow .25s ease;
}
.specialist-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  background: #f4f2ee;
  filter: saturate(.84);
}
.specialist-card div {
  padding: 52px 36px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.specialist-card h2 {
  margin: 0;
  color: var(--gold-deep);
  font: 30px/1.28 var(--serif);
}
.specialist-card span {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #aaa69f;
  font: 13px/1.2 var(--serif);
  text-transform: uppercase;
}

.site-footer {
  min-height: 170px;
  padding: 36px 3.2vw;
  display: grid;
  grid-template-columns: 1fr .7fr 1.2fr auto;
  gap: 38px;
  align-items: start;
  border-top: 1px solid var(--line);
  background: #f3f1ee;
}
.site-footer p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.site-footer nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px 30px;
}

.max-bot-floating {
  position: fixed;
  right: 20px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 1000;
  min-width: 168px;
  height: 52px;
  padding: 5px 16px 5px 7px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  border: 1px solid rgba(173, 133, 61, .42);
  border-radius: 999px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .94) 42%, rgba(255, 255, 255, 0) 63%),
    linear-gradient(135deg, #fff 0%, #faf7f0 48%, #fff 100%);
  background-size: 240% 100%, 100% 100%;
  color: #4b443a;
  box-shadow: 0 14px 32px -16px rgba(94, 72, 35, .58);
  animation: maxButtonFloat 4.2s ease-in-out infinite, maxButtonSheen 5.8s ease-in-out infinite;
  transition: box-shadow .25s ease, transform .25s ease;
}

.max-bot-floating:hover {
  color: #4b443a;
  box-shadow: 0 0 0 1px rgba(173, 133, 61, .3), 0 12px 30px -12px rgba(94, 72, 35, .55);
}

.max-bot-floating:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

.max-bot-floating img {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  object-fit: contain;
}

.max-bot-pulse {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 23px 50%, rgba(20, 184, 255, .25) 0%, rgba(20, 184, 255, 0) 52%);
  animation: maxIconPulse 3.6s ease-in-out infinite;
}

.max-bot-label {
  position: relative;
  z-index: 1;
  white-space: nowrap;
  font: 600 13px/1.1 var(--serif);
  letter-spacing: 0;
  text-transform: none;
}

.max-bot-label strong {
  color: var(--gold-deep);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: none;
}

@keyframes maxButtonFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@keyframes maxButtonSheen {
  0%, 62%, 100% { background-position: 150% 0, 0 0; }
  28% { background-position: -55% 0, 0 0; }
}

@keyframes maxIconPulse {
  0%, 100% { opacity: .42; transform: scale(.86); }
  50% { opacity: 1; transform: scale(1.08); }
}

.wordmark,
.hero-copy h1,
.section-title span,
.consultation-copy strong {
  color: var(--gold-deep);
  background: var(--gold-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .76)) drop-shadow(0 2px 2px rgba(72, 46, 19, .16));
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
    padding: 22px 24px;
  }
  .menu-toggle {
    display: block;
    border: 0;
    background: none;
    color: var(--ink);
    font: 15px/1 var(--serif);
    text-transform: uppercase;
  }
  .primary-nav {
    display: none;
    grid-column: 1 / -1;
    padding-top: 18px;
    flex-wrap: wrap;
  }
  .primary-nav.is-open { display: flex; }
  .header-contacts { display: none; }
  .hero-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .hero { min-height: 620px; }
  .hero-copy h1 { font-size: 58px; }
  .program-card img { height: 220px; }
  .program-card.compact img { height: 180px; }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 76px;
    grid-template-columns: 1fr auto;
    gap: 12px;
  }
  .site-header .login-link { display: none; }
  .wordmark { font-size: 27px; }
  .primary-nav {
    justify-content: flex-start;
    gap: 14px 24px;
    padding-top: 20px;
  }
  .primary-nav a { font-size: 15px; }
  .hero-shell { display: block; border: 0; }
  .skin-topics { display: none; }
  .hero {
    min-height: 620px;
    margin: 0;
  }
  .hero > img { object-position: 72% center; }
  .hero-media img { object-position: center; }
  .hero-copy {
    padding: 70px 24px 34px;
    background: rgba(248, 246, 242, .26);
    text-shadow: 0 1px 12px rgba(248, 246, 242, .9);
  }
  .hero-copy h1 { font-size: 46px; }
  .hero-copy p { margin-top: 18px; font-size: 29px; }
  .hero-copy span { max-width: 220px; font-size: 21px; }
  .content-section,
  .specialists { padding: 40px 18px 8px; }
  .section-title {
    gap: 14px;
    margin-bottom: 24px;
    font-size: 26px;
  }
  .section-title span { white-space: normal; }
  .program-grid-three,
  .program-grid-four,
  .feature-band,
  .specialist-grid { grid-template-columns: 1fr; }
  .program-grid { gap: 16px; margin-bottom: 42px; }
  .program-card img,
  .program-card.compact img { height: 235px; }
  .program-card h2,
  .program-card.compact h2 { min-height: 82px; font-size: 24px; }
  .feature-band { padding: 0 18px 38px; }
  .certificate-panel,
  .consultation-panel { min-height: 0; }
  .certificate-panel img { height: 260px; }
  .consultation-copy { margin: 0 18px 18px; padding: 38px 24px; }
  .panel-kicker { font-size: 16px; }
  .consultation-copy strong { font-size: 46px; }
  .consultation-copy h2 { font-size: 25px; }
  .consultation-copy p { font-size: 17px; }
  .specialist-card { grid-template-columns: 46% 54%; min-height: 200px; }
  .specialist-card div { padding: 34px 22px 22px; }
  .specialist-card h2 { font-size: 23px; }
  .specialist-card span { font-size: 12px; }
  .site-footer {
    grid-template-columns: 1fr 1fr;
    padding: 32px 22px;
  }
  .site-footer nav { grid-column: 1 / -1; }
  .site-footer > .login-link { display: none; }
  .max-bot-floating {
    right: 12px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    min-width: 0;
    width: 156px;
    height: 48px;
    gap: 7px;
    padding: 5px 12px 5px 6px;
  }
  .max-bot-floating img {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
  .max-bot-label {
    display: block;
    font-size: 12px;
  }
  .max-bot-label strong { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .max-bot-floating,
  .max-bot-pulse { animation: none; }
}
