@font-face {
  font-family: Display;
  src: url("open-sans-condensed-cyr.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #f6f4ee;
  --ink: #201e1d;
  --muted: #55514a;
  --line: #d0cbc0;
  --hot: #aa241b;
  --red: #b6271d;
  --display: Display, "Arial Narrow", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  font: 16px/1.5 Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

body, h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; text-underline-offset: .23em; }
img { display: block; }
[hidden] { display: none !important; }

a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  z-index: 10;
  inset: 8px auto auto 8px;
  padding: 8px 14px;
  background: white;
  transform: translateY(-150%);
}
.skip:focus { transform: none; }

.shell {
  width: min(1220px, calc(100% - 80px));
  margin-inline: auto;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mast {
  position: relative;
  z-index: 3;
  border-bottom: 1px solid var(--ink);
  background: #fff;
}

.mastin, .mast nav {
  display: flex;
  align-items: center;
}
.mastin { min-height: 72px; gap: clamp(24px, 5vw, 66px); }
.mast nav { gap: 26px; }

.wordmark {
  display: block;
  width: 176px;
  height: 44px;
  flex: none;
  overflow: hidden;
  background: white;
}
.wordmark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
}

.city {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: var(--muted);
  font-size: .88rem;
  white-space: nowrap;
  text-decoration: none;
}
.city .icon { width: 17px; height: 17px; color: var(--hot); }

.menubox { position: relative; }
.menubox summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font: 700 .94rem/1 Arial, sans-serif;
  list-style: none;
  cursor: pointer;
}
.menubox summary::-webkit-details-marker { display: none; }
.menubox summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.menubox[open] summary { color: var(--hot); }
.menubox[open] summary::after { transform: translateY(2px) rotate(225deg); }

.menu {
  position: absolute;
  inset: 100% auto auto 0;
  z-index: 4;
  min-width: 228px;
  border: 1px solid var(--ink);
  border-top: 3px solid var(--red);
  background: white;
}
.menu a {
  display: block;
  padding: 10px 13px;
  text-decoration: none;
  font-size: .9rem;
}
.menu a + a { border-top: 1px solid var(--line); }
.menu a:hover, .menu a:focus-visible { background: var(--paper); color: var(--hot); }

.hero {
  display: grid;
  align-items: stretch;
  border-bottom: 1px solid var(--ink);
}

.herotext { min-width: 0; padding-block: clamp(27px, 5vw, 58px); }
.crumb { margin-bottom: 12px; color: var(--muted); font-size: .84rem; }
.crumb a { color: var(--hot); }
.crumb span { padding-inline: 5px; }
.hero-city { color: var(--hot); font-size: .83rem; font-weight: 700; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; }

h1 {
  max-width: 19ch;
  font-size: clamp(3.2rem, 6.25vw, 6.1rem);
  line-height: .96;
  letter-spacing: -.036em;
  text-wrap: balance;
}

.lead {
  max-width: 53ch;
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.homehero .herotext {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .85fr);
  align-items: end;
  gap: clamp(20px, 5vw, 60px);
  padding-block: clamp(23px, 4vw, 50px) clamp(23px, 3vw, 36px);
}

.home-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 14px;
  margin-bottom: 10px;
}
.home-kicker h1 { font: 700 1rem/1.2 Arial, sans-serif; letter-spacing: 0; }
.home-kicker .crumb { margin: 0; }
.season-title {
  max-width: 15ch;
  font-size: clamp(3rem, 6.7vw, 6.6rem);
  line-height: .95;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.homehero .lead { margin-top: 0; }

.photo { position: relative; overflow: hidden; background: #dfdbd3; }
.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo[data-photo="rental-interior"] img { object-position: 50% 61%; }
.photo[data-photo="repair-workbench"] img { object-position: 50% 45%; }
.photo[data-photo="winter-dybenko"] img,
.branch[data-shop="dybenko"] .branchphoto img { object-position: 50% 55%; }
.photo[data-photo="winter-rental-kit"] img,
.branch[data-shop="rybatskoe"] .branchphoto img { object-position: 50% 49%; }

img[data-site-photo] {
  filter: saturate(var(--photo-saturation, 1.18)) contrast(var(--photo-contrast, 1.06));
}
img:is([data-site-photo="winter-rental-skis"], [data-site-photo="winter-rental-kit"], [data-site-photo="rental-boots"]) {
  --photo-contrast: 1.04;
}
img:is([data-site-photo="rental-helmets"], [data-site-photo="repair-workbench"]) {
  --photo-saturation: 1.12;
}

.homehero .photo { height: clamp(191px, 33vw, 408px); }
.pictured { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(16px, 5vw, 55px); }
.pictured .photo { min-height: 254px; margin-block: 22px; }

.adcontext {
  display: grid;
  width: fit-content;
  gap: 8px;
  padding: 12px 14px;
  margin: 16px 0;
  border-left: 3px solid var(--red);
  background: #fff;
}
.adaddress { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 7px; }
.adaddress .icon { width: 17px; height: 17px; color: var(--hot); }
.adaddress span { grid-column: 2; color: var(--muted); font-size: .87rem; }
.adcontext .actions { margin-top: 0; }

.page > section { margin-top: clamp(32px, 5.4vw, 68px); scroll-margin-top: 16px; }
.page > section h2 {
  margin-bottom: 16px;
  font-size: clamp(2.35rem, 4.7vw, 4.1rem);
  line-height: .98;
  letter-spacing: -.028em;
}

.servicesgrid { border-top: 1px solid var(--ink); }
.servicelink {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 26px;
  align-items: center;
  gap: clamp(10px, 3vw, 28px);
  min-height: 75px;
  padding: 13px 5px 13px 0;
  border-bottom: 1px solid var(--ink);
  text-decoration: none;
}
.servicelink:hover { color: var(--hot); background: #fff; }
.serviceicon { display: grid; place-items: center; color: var(--hot); }
.serviceicon .icon { width: 27px; height: 27px; }
.servicelabel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(28%, auto);
  align-items: center;
  gap: 7px 22px;
}
.servicelabel strong { font: 700 clamp(1.55rem, 3vw, 2.4rem)/1.06 var(--display); }
.servicehint { font-size: .88rem; color: var(--muted); }
.cardarrow { display: grid; place-items: center; color: var(--hot); }

.branchgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3.2vw, 38px); }
.branch { min-width: 0; padding: 14px 0; border-block: 1px solid var(--ink); scroll-margin-top: 16px; }
.branchline { display: grid; gap: 12px; }
.branchphoto { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #dfdbd3; }
.shops:not(.shops-wide) .branchphoto { max-height: 280px; }
.branchphoto img { width: 100%; height: 100%; object-fit: cover; }
.shops-wide .branch { padding-top: 0; border-top: 0; }

.branch h3 {
  font-size: clamp(1.9rem, 3.8vw, 3.25rem);
  line-height: 1;
  letter-spacing: -.028em;
}
.branch p { margin-top: 4px; color: var(--muted); font-size: .92rem; }
.number { display: inline-block; margin-top: 7px; font-weight: 700; text-decoration: none; }
.number:hover { text-decoration: underline; }
.more { display: inline-block; margin-top: 12px; font-size: .87rem; font-weight: 700; color: var(--hot); }
.branchservices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 14px;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
  font-size: .86rem;
}
.branchservices li { border-bottom: 1px solid var(--line); }
.branchservices a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  min-height: 36px;
  padding: 6px 0;
  text-decoration: none;
}
.branchservices a:hover { color: var(--hot); text-decoration: underline; }
.branchservices a::after {
  content: "";
  flex: 0 0 6px;
  height: 6px;
  margin-right: 2px;
  border-top: 1px solid var(--hot);
  border-right: 1px solid var(--hot);
  transform: rotate(45deg);
}

.actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  max-width: 100%;
  padding: 8px 11px;
  color: white;
  background: var(--red);
  border: 1px solid var(--red);
  text-decoration: none;
  font-weight: 700;
  font-size: .88rem;
  line-height: 1.24;
}
.btn .icon { width: 17px; height: 17px; }
.btn:hover { background: #961e16; border-color: #961e16; }
.btn.outline, .btn.telegram { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.outline:hover, .btn.telegram:hover { background: white; color: var(--hot); border-color: var(--red); }
.btn.telegram .icon { color: var(--hot); }
.maplink { margin-top: 11px; font-size: .88rem; color: var(--hot); }
.price-jump .icon { width: 16px; height: 16px; }
.season-price { margin-top: 10px; color: var(--hot); font-weight: 700; }
.shop-choices { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 10px; }
.shop-choices .icon { width: 17px; height: 17px; color: var(--red); }
.shop-choices a { padding: 4px 0; font-size: .9rem; font-weight: 700; }
.shop-choices a:hover { color: var(--hot); }

.equipment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.equipment-grid figure, .workshop-video { min-width: 0; margin: 0; border-bottom: 1px solid var(--ink); }
.equipment-grid img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.equipment-grid figcaption, .workshop-video figcaption { padding-block: 8px; font-size: .93rem; font-weight: 700; }
.conditions dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.conditions dl > div { padding: 10px 0; border-top: 1px solid var(--ink); }
.conditions dt { font-weight: 700; }
.conditions dd { margin-top: 5px; color: var(--muted); }
.workshop-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 475px); align-items: start; gap: 20px; }
.workshop-grid dl { grid-template-columns: 1fr; gap: 0; }
.workshop-video video { display: block; width: 100%; aspect-ratio: 160 / 67; object-fit: contain; background: var(--ink); }
.workshop-video video:not(.has-started) { filter: saturate(1.14) contrast(1.04); }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 12px 0; font-weight: 700; }
.faq summary:hover, .faq details[open] summary { color: var(--hot); }
.faq details p { max-width: 72ch; margin: 0 0 12px 17px; color: var(--muted); }
.visit p { max-width: 72ch; color: var(--muted); }

.site-footer { margin-top: clamp(38px, 6vw, 76px); border-top: 1px solid var(--ink); background: #fff; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; min-height: 91px; padding-block: 12px; }
.footbrand { width: 149px; height: 39px; }
.footer-shops { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .9rem; }

@media (max-width: 920px) {
  .shell { width: calc(100% - 42px); }
  .mastin { gap: 25px; }
}

@media (max-width: 660px) {
  .shell { width: calc(100% - 32px); }
  .mastin { min-height: 60px; justify-content: space-between; gap: 8px; }
  .mast nav { gap: 12px; }
  .mast .wordmark { width: 134px; height: 39px; }
  .menubox summary { font-size: .86rem; gap: 6px; }
  .city { display: none; }
  .menu { inset-inline: auto 0; min-width: 194px; }
  .homehero .herotext { grid-template-columns: 1fr; gap: 10px; }
  .hero-city { margin-bottom: 6px; }
  .season-title { font-size: clamp(2.7rem, 9.7vw, 4.2rem); }
  h1 { font-size: clamp(2.75rem, 10vw, 4rem); }
  .herotext { padding-block: 18px; }
  .pictured { grid-template-columns: 1fr; gap: 0; }
  .pictured .photo { height: 125px; min-height: 0; margin: 0 0 12px; }
  .page:has(.adcontext:not([hidden])) .pictured .photo { height: 80px; }
  .homehero .photo { height: 174px; }
  .hero .lead { font-size: .96rem; }
  .branchgrid, .conditions dl, .workshop-grid { grid-template-columns: 1fr; gap: 14px; }
  .shops-wide .branchgrid { gap: 23px; }
  .branchphoto { aspect-ratio: 3 / 2; }
  .servicelabel { grid-template-columns: 1fr; gap: 4px; }
  .servicelink { min-height: 65px; }
  .equipment-grid { gap: 9px; }
  .equipment-grid img { aspect-ratio: 4 / 3; }
  .equipment-grid figcaption { font-size: .84rem; }
}

@media (max-width: 355px) {
  .mast .wordmark { width: 117px; }
  .mast nav { gap: 9px; }
  .menubox summary { gap: 5px; }
}
