/*
Theme Name: Promalpteh
Description: Provenance-bound WordPress theme for promalpteh.ru.
Version: 1.0.0
Text Domain: promalpteh
*/

:root {
  --promalpteh-black: #000000;
  --promalpteh-white: #ffffff;
  --promalpteh-accent: #d43a12;
  --promalpteh-orange: #ff5500;
  --promalpteh-muted: #f2f2f2;
  --promalpteh-content: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--promalpteh-black); background: var(--promalpteh-white); font-family: TildaSans, Arial, sans-serif; line-height: 1.5; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--promalpteh-orange); outline-offset: 4px; }
.promalpteh-shell, .promalpteh-record__inner { width: min(calc(100% - 48px), var(--promalpteh-content)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 999; top: 8px; left: 8px; padding: 10px 14px; color: var(--promalpteh-white); background: var(--promalpteh-black); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.site-header { position: relative; z-index: 20; color: var(--promalpteh-black); background: var(--promalpteh-white); border-bottom: 1px solid rgb(0 0 0 / 8%); }
.site-header__top { min-height: 76px; display: flex; align-items: center; gap: 28px; }
.site-logo { min-width: 170px; display: inline-flex; align-items: center; text-decoration: none; color: var(--promalpteh-orange); font-size: 30px; font-weight: 700; }
.site-logo img { width: 170px; max-height: 54px; object-fit: contain; }
.menu-toggle { display: none; }
.site-header__phone { margin-left: auto; text-decoration: none; font-size: 17px; }
.primary-menu { min-height: 48px; display: flex; align-items: center; }
.primary-menu ul { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 38px); margin: 0; padding: 0; list-style: none; }
.primary-menu a { display: inline-flex; padding: 12px 0; text-decoration: none; font-size: 18px; font-weight: 600; }
.primary-menu a[aria-current="page"], .primary-menu a:hover { color: var(--promalpteh-accent); }
.site-header__contact { flex: 0 0 auto; padding: 13px 20px; color: var(--promalpteh-white); background: var(--promalpteh-accent); border-radius: 2px; text-decoration: none; font-weight: 700; }
.promalpteh-route__identity { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.promalpteh-layout--compact { display: none; }
.promalpteh-record { padding-block: min(var(--record-pt), 150px) min(var(--record-pb), 150px); background: var(--record-bg); }
.promalpteh-record__inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4vw, 56px); align-items: center; }
.promalpteh-record__title { margin: 0; font-size: clamp(30px, 3.6vw, 56px); line-height: 1.08; overflow-wrap: anywhere; }
.promalpteh-record__lead { margin: 0; max-width: 920px; font-size: clamp(19px, 2vw, 28px); line-height: 1.35; overflow-wrap: anywhere; }
.promalpteh-record__body { margin: 0; max-width: 920px; font-size: clamp(16px, 1.35vw, 20px); line-height: 1.58; overflow-wrap: anywhere; }
.promalpteh-record__button { width: max-content; max-width: 100%; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 13px 24px; color: var(--promalpteh-white); background: var(--promalpteh-accent); text-decoration: none; font-weight: 700; overflow-wrap: anywhere; }
.promalpteh-record__media { min-width: 0; margin: 0; }
.promalpteh-record__media img { width: 100%; max-height: 720px; object-fit: cover; }
.promalpteh-record--hero { position: relative; min-height: 600px; padding: 0; overflow: hidden; color: var(--promalpteh-white); background: #1b1b1b; }
.promalpteh-record--hero::after { position: absolute; z-index: 1; inset: 0; content: ""; background: rgb(0 0 0 / 46%); pointer-events: none; }
.promalpteh-record--hero .promalpteh-record__inner { position: relative; width: 100%; max-width: none; min-height: 600px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 24px; padding: 70px 24px; text-align: center; }
.promalpteh-record--hero .promalpteh-record__media { position: absolute; z-index: 0; inset: 0; }
.promalpteh-record--hero .promalpteh-record__media img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.promalpteh-record--hero .promalpteh-record__title, .promalpteh-record--hero .promalpteh-record__lead, .promalpteh-hero__actions { position: relative; z-index: 2; }
.promalpteh-record--hero .promalpteh-record__title { max-width: 1100px; font-size: clamp(42px, 5vw, 72px); }
.promalpteh-record--hero .promalpteh-record__lead { max-width: 900px; font-size: clamp(18px, 1.8vw, 25px); font-weight: 400; }
.promalpteh-hero__actions { display: flex; gap: 14px; margin-top: 8px; }
.promalpteh-hero__actions a { min-width: 190px; padding: 15px 28px; border-radius: 999px; color: var(--promalpteh-white); background: var(--promalpteh-accent); text-decoration: none; font-size: 13px; font-weight: 700; }
.promalpteh-hero__actions a + a { color: var(--promalpteh-black); background: var(--promalpteh-white); }
.promalpteh-record--type-106 .promalpteh-record__inner { display: block; max-width: 1120px; }
.promalpteh-record--type-106 .promalpteh-record__body { max-width: 980px; white-space: normal; }
.promalpteh-record__table-wrap { width: 100%; grid-column: 1 / -1; overflow-x: auto; }
.promalpteh-record__table { width: 100%; border-collapse: collapse; font-size: clamp(15px, 1.3vw, 19px); }
.promalpteh-record__table th, .promalpteh-record__table td { padding: 16px 20px; border-bottom: 1px solid #d9d9d9; text-align: left; }
.promalpteh-record__table th { color: var(--promalpteh-black); font-size: 1.12em; }
.promalpteh-record__table tbody tr:nth-child(even) { background: #eeeeee; }
.promalpteh-record--services .promalpteh-record__inner, .promalpteh-record--advantages .promalpteh-record__inner { display: block; }
.promalpteh-services__header { max-width: 760px; margin: 0 auto 54px; text-align: center; }
.promalpteh-services__header .promalpteh-record__title { margin-bottom: 24px; }
.promalpteh-services__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.promalpteh-service-card { position: relative; height: 300px; display: block; overflow: hidden; color: var(--promalpteh-white); background: #222; text-decoration: none; }
.promalpteh-service-card::after { position: absolute; inset: 0; content: ""; background: rgb(0 0 0 / 35%); }
.promalpteh-service-card .promalpteh-record__media, .promalpteh-service-card img { width: 100%; height: 100%; }
.promalpteh-service-card img { max-height: none; object-fit: cover; }
.promalpteh-service-card__title { position: absolute; z-index: 1; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; font-size: clamp(18px, 2vw, 25px); font-weight: 700; }
.promalpteh-advantages__header { margin-bottom: 56px; text-align: center; }
.promalpteh-advantages__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 50px; }
.promalpteh-advantage { text-align: center; }
.promalpteh-advantage::before { width: 68px; height: 68px; display: grid; place-items: center; margin: 0 auto 24px; border: 3px solid #ff6633; border-radius: 50%; color: #ff6633; content: "✓"; font-size: 32px; font-weight: 700; }
.promalpteh-advantage--1::before { content: "⌖"; }
.promalpteh-advantage--2::before { content: "♡"; }
.promalpteh-advantage .promalpteh-record__lead { margin-inline: auto; font-size: 17px; font-weight: 400; }
.promalpteh-record--type-195 .promalpteh-record__inner { grid-template-areas: "title media" "body media"; align-items: start; }
.promalpteh-record--type-195 .promalpteh-record__title { grid-area: title; align-self: end; }
.promalpteh-record--type-195 .promalpteh-record__body { grid-area: body; }
.promalpteh-record--type-195 .promalpteh-record__media { grid-area: media; }
.promalpteh-route--listing .promalpteh-record__inner, .promalpteh-route--reviews .promalpteh-record__inner, .promalpteh-route--pricing .promalpteh-record__inner { align-items: start; }
.promalpteh-route--contacts .promalpteh-record__inner, .promalpteh-route--about .promalpteh-record__inner { max-width: 1000px; }
.site-footer { color: var(--promalpteh-black); background: var(--promalpteh-white); }
.site-footer__contacts { padding: 74px 0 86px; background: var(--promalpteh-muted); }
.site-footer__contacts h2 { margin: 0 0 52px; text-align: center; font-size: clamp(34px, 4vw, 56px); }
.site-footer__contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 70px; align-items: start; max-width: 1000px; margin-inline: auto; }
.site-footer__contact-copy { font-size: 19px; line-height: 1.7; }
.site-footer__contact-copy a { text-decoration: none; }
.site-footer__whatsapp { color: var(--promalpteh-accent); text-decoration: none; }
.site-footer__cta { padding: 90px 0 100px; color: var(--promalpteh-white); background: var(--promalpteh-accent); text-align: center; }
.site-footer__cta h2 { max-width: 900px; margin: 0 auto 44px; font-size: clamp(30px, 4vw, 52px); line-height: 1.25; }
.site-footer__contact { width: max-content; display: inline-flex; padding: 15px 30px; border-radius: 999px; color: var(--promalpteh-black); background: var(--promalpteh-white); text-decoration: none; font-weight: 700; }
.site-footer__base { padding: 46px 0 42px; color: var(--promalpteh-black); background: var(--promalpteh-white); }
.site-footer__base-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 50px; align-items: center; text-align: center; }
.site-footer__base-grid > :first-child { text-align: right; }
.site-footer__base-grid > :last-child { text-align: left; }
.site-footer__base-grid a { text-decoration: none; }
.site-footer__brand { color: var(--promalpteh-accent); font-size: 34px; font-weight: 700; }
.site-footer__links { display: flex; justify-content: center; gap: 34px; margin-top: 38px; font-size: 13px; font-weight: 700; }
.site-footer__links a { text-decoration: none; }
.request-form { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 760px; }
.request-form label { display: grid; gap: 7px; font-weight: 600; }
.request-form label:has(textarea), .request-form__consent, .request-form button { grid-column: 1 / -1; }
.request-form input, .request-form textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #dedede; color: var(--promalpteh-black); background: var(--promalpteh-white); font: inherit; }
.request-form textarea { min-height: 118px; resize: vertical; }
.request-form__consent { grid-template-columns: auto 1fr; align-items: start; font-size: 14px; font-weight: 400 !important; }
.request-form__consent input { width: 20px; min-height: 20px; margin: 2px 0 0; }
.request-form__honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.request-form button { width: max-content; min-height: 50px; padding: 12px 30px; border: 0; border-radius: 3px; color: var(--promalpteh-white); background: var(--promalpteh-accent); font: inherit; font-weight: 700; cursor: pointer; }
.not-found { min-height: 55vh; padding-block: 90px; }

@media (max-width: 980px) {
  .site-header__top { min-height: 86px; }
  .site-logo { min-width: 150px; font-size: 24px; }
  .site-logo img { width: 150px; }
  .menu-toggle { position: relative; width: 32px; height: 28px; display: inline-flex; margin-left: auto; padding: 0; border: 0; background: transparent; font-size: 0; }
  .menu-toggle::before { position: absolute; top: 50%; left: 1px; width: 30px; height: 3px; content: ""; background: var(--promalpteh-black); box-shadow: 0 -9px 0 var(--promalpteh-black), 0 9px 0 var(--promalpteh-black); transform: translateY(-50%); }
  .primary-menu[hidden] { display: none; }
  .primary-menu { position: absolute; top: 86px; left: 0; width: 100%; max-width: none; margin: 0; padding: 24px; background: var(--promalpteh-white); box-shadow: 0 12px 20px rgb(0 0 0 / 12%); }
  .primary-menu ul { align-items: stretch; flex-direction: column; gap: 4px; }
  .site-header__phone, .site-header__contact { display: none; }
  .promalpteh-layout--desktop { display: none; }
  .promalpteh-layout--compact { display: block; }
  .promalpteh-record__inner { grid-template-columns: 1fr; }
  .promalpteh-record--type-195 .promalpteh-record__inner { grid-template-areas: "title" "body" "media"; }
  .promalpteh-record { padding-block: min(var(--record-pt), 100px) min(var(--record-pb), 100px); }
  .promalpteh-record--hero, .promalpteh-record--hero .promalpteh-record__inner { min-height: 430px; }
  .promalpteh-services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promalpteh-advantages__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .site-footer__contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .request-form { grid-template-columns: 1fr; }
  .request-form label, .request-form button { grid-column: 1; }
}

@media (max-width: 560px) {
  .promalpteh-shell, .promalpteh-record__inner { width: min(calc(100% - 30px), var(--promalpteh-content)); }
  .promalpteh-record { padding-block: min(var(--record-pt), 72px) min(var(--record-pb), 72px); }
  .promalpteh-record__inner { gap: 18px; }
  .promalpteh-record__title { font-size: clamp(30px, 9vw, 44px); }
  .promalpteh-record__lead { font-size: 18px; }
  .promalpteh-record__body { font-size: 16px; }
  .promalpteh-record--hero, .promalpteh-record--hero .promalpteh-record__inner { min-height: 320px; }
  .promalpteh-record--hero .promalpteh-record__inner { gap: 15px; padding: 42px 18px; }
  .promalpteh-record--hero .promalpteh-record__title { font-size: clamp(30px, 9vw, 42px); }
  .promalpteh-record--hero .promalpteh-record__lead { font-size: 14px; line-height: 1.45; }
  .promalpteh-hero__actions { gap: 8px; }
  .promalpteh-hero__actions a { min-width: 0; padding: 11px 15px; font-size: 10px; }
  .promalpteh-services__grid, .promalpteh-advantages__grid { grid-template-columns: 1fr; }
  .promalpteh-service-card { height: 240px; }
  .promalpteh-advantages__grid { gap: 48px; }
  .site-footer__contacts { padding: 58px 0 66px; }
  .site-footer__contacts h2 { margin-bottom: 36px; }
  .site-footer__cta { padding: 66px 0 72px; }
  .site-footer__base-grid { grid-template-columns: 1fr; gap: 18px; }
  .site-footer__base-grid > :first-child, .site-footer__base-grid > :last-child { text-align: center; }
  .site-footer__links { flex-direction: column; gap: 9px; align-items: center; }
}

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