@font-face {
  font-family: Inter;
  src: url(assets/inter-cyr.woff2) format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0400-045F,U+2116;
}
@font-face {
  font-family: Inter;
  src: url(assets/inter-lat.woff2) format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF,U+2000-206F,U+2191-2193,U+2212;
}
:root {
  --paper: #f5f3ec;
  --ink: #151c17;
  --muted: #565d52;
  --accent: #e2fa53;
  --white: #fff;
  --line: #d9d9ce;
  --soft: #eeede3;
  --radius: 16px;
  --gutter: clamp(16px, 3vw, 50px);
  color: var(--ink);
  background: var(--paper);
  font: 400 16px/1.5 Inter, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
body:has(dialog[open]) { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
img { display: block; width: 100%; object-fit: cover; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #658237; outline-offset: 3px; }
svg { width: 1.15em; height: 1.15em; flex: none; }
.wrap { width: min(100% - var(--gutter) * 2, 1440px); margin-inline: auto; }
.skip { position: fixed; z-index: 5; top: 10px; left: 10px; padding: 12px 16px; background: var(--accent); transform: translateY(-150%); }
.skip:focus-visible { transform: none; }
.keep-together { white-space: nowrap; }

.masthead {
  height: 75px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-size: clamp(16px, 2vw, 25px);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: 1;
  white-space: nowrap;
}
.logo svg { width: 39px; height: 34px; }
.brand-slash { color: #59813c; }
.main-nav { display: flex; gap: 8px; align-items: center; }
.main-nav a, .contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 760;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 100px;
  text-align: center;
  line-height: 1.2;
}
.main-nav a:hover, .contact-link:hover { background: var(--soft); }
.main-nav a[aria-current] { background: var(--accent); }
.contact-link { justify-self: end; }

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(470px, 41vw, 630px);
  padding: clamp(28px, 4.1vw, 68px);
  border-radius: clamp(14px, 1.5vw, 24px);
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}
.hero-photo, .hero::after { position: absolute; z-index: -1; inset: 0; height: 100%; }
.hero-photo { object-position: center 57%; }
.hero-gear .hero-photo { object-position: center 61%; }
.hero::after {
  content: "";
  background: linear-gradient(90deg, rgba(12, 21, 17, .83), rgba(12, 21, 17, .42) 42%, transparent 75%);
}
.hero h1 {
  font-weight: 900;
  font-size: clamp(76px, 9vw, 142px);
  line-height: .83;
  letter-spacing: -.043em;
}
.hero-gear h1 { font-size: clamp(58px, 7.4vw, 114px); }
.hero p {
  margin: 24px 0 29px;
  max-width: 30ch;
  font-size: clamp(17px, 2.05vw, 27px);
  line-height: 1.22;
  letter-spacing: -.025em;
}
.hero-location {
  position: absolute;
  bottom: clamp(15px, 2.2vw, 30px);
  right: clamp(15px, 2.2vw, 30px);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 11px;
  background: #151c17df;
  border-radius: 5px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 770;
  line-height: 1.2;
  transition: background .16s, border-color .16s, color .16s;
}
.accent { background: var(--accent); color: var(--ink); }
.accent:hover:not(:disabled) { background: #cfe742; }
.dark { background: var(--ink); color: var(--white); }
.dark:hover:not(:disabled) { background: #344336; }
.outline { background: transparent; color: inherit; border-color: var(--line); }
.outline:hover:not(:disabled) { border-color: currentColor; }
.hero .button { padding: 15px 21px; min-height: 54px; font-size: clamp(15px, 1.5vw, 20px); }

.catalog { padding-block: clamp(41px, 5vw, 78px); scroll-margin-top: 12px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.section-heading h2, .admin-main h1, .contacts h2 {
  font-size: clamp(42px, 6.2vw, 94px);
  line-height: .94;
  font-weight: 900;
  letter-spacing: -.045em;
}
.section-heading p { margin-top: 11px; color: var(--muted); font-size: clamp(15px, 1.4vw, 19px); }
.catalog-count { color: var(--muted); white-space: nowrap; font-size: 13px; }
.filters { margin-block: 25px 21px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chips button {
  border: 1px solid #bdbeb4;
  border-radius: 100px;
  background: transparent;
  color: inherit;
  min-height: 44px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 720;
}
.chips button:hover { border-color: var(--ink); }
.chips button[aria-pressed=true] { background: var(--accent); border-color: var(--accent); }
.sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.sort select { color: var(--ink); background: transparent; border: 1px solid #bdbeb4; border-radius: 8px; min-height: 44px; padding: 8px; max-width: 100%; }
#sort {
  appearance: none;
  padding-inline: 12px 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='m5 8 5 5 5-5' stroke='%23214733' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 18px 18px;
  background-position: right 12px center;
}
@media (forced-colors: active) {
  #sort { appearance: auto; background-image: none; padding-inline-end: 12px; }
}


.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.55vw, 23px); }
.product-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid #e5e4db;
  overflow: hidden;
}
.product-media { overflow: hidden; background: var(--soft); }
.product-media img { aspect-ratio: 1.56; height: auto; object-position: center 54%; transition: transform .36s ease-out; }
.product-card:hover .product-media img { transform: scale(1.035); }
.product-body { flex: 1; display: flex; flex-direction: column; padding: clamp(13px, 1.5vw, 23px); }
.product-category { margin-bottom: 5px; font-size: 11px; font-weight: 790; color: var(--muted); text-transform: uppercase; letter-spacing: .075em; }
.product-body h3 { font-size: clamp(20px, 2.2vw, 32px); letter-spacing: -.04em; line-height: 1.05; font-weight: 860; overflow-wrap: anywhere; }
.product-details { margin-top: 8px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.product-bottom { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 17px; }
.product-price { line-height: 1.1; }
.product-price strong { font-size: clamp(20px, 2.05vw, 30px); font-weight: 850; letter-spacing: -.055em; }
.product-price span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.empty { padding: 20px 0; grid-column: 1 / -1; color: var(--muted); }

.contacts {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding: clamp(24px, 5vw, 72px);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
}
.contacts h2 { font-size: clamp(34px, 5.3vw, 80px); }
.contacts p { margin-top: 15px; color: #d5d9cc; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.contacts .outline { border-color: #7e897e; }
.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-block: 25px; font-size: 13px; color: var(--muted); }
.footer .logo { color: var(--ink); font-size: 17px; }
.footer .logo svg { width: 24px; height: 24px; }
.footer > a:last-child { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }

.dialog { border: 0; border-radius: var(--radius); padding: 0; width: min(560px, 100% - 24px); max-height: calc(100dvh - 24px); color: var(--ink); background: #faf9f3; box-shadow: 0 16px 60px #10171245; }
.dialog::backdrop { background: #101813a8; }
.dialog-inner { padding: clamp(16px, 3vw, 30px); }
.dialog-heading { display: flex; justify-content: space-between; align-items: start; gap: 8px; margin-bottom: 15px; }
.dialog-heading h2 { margin-top: 3px; font-size: clamp(27px, 4vw, 44px); font-weight: 900; letter-spacing: -.045em; line-height: 1; }
.icon-button { width: 44px; height: 44px; flex: none; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--ink); font-size: 25px; }
.icon-button:hover { background: var(--soft); }
.rental-product { display: grid; grid-template-columns: 128px 1fr; align-items: center; gap: 13px; margin-bottom: 14px; }
.rental-product img { aspect-ratio: 1.55; border-radius: 8px; }
.rental-product h3 { font-size: 22px; letter-spacing: -.04em; line-height: 1.1; overflow-wrap: anywhere; }
.rental-product p, .form-note { color: var(--muted); font-size: 13px; margin-top: 4px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.form-grid label { display: grid; min-width: 0; align-content: end; gap: 5px; font-size: 13px; font-weight: 720; }
.form-grid input, .form-grid select {
  width: 100%;
  min-width: 0;
  min-height: 45px;
  border: 1px solid #bcbfb1;
  border-radius: 7px;
  padding: 7px 8px;
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  font-weight: 450;
}
.step-field { display: grid; align-content: end; gap: 5px; min-width: 0; }
.stepper { display: grid; grid-template-columns: 43px minmax(0, 1fr) 43px; border: 1px solid #bcbfb1; border-radius: 7px; background: var(--white); }
.stepper button { border: 0; background: transparent; color: var(--ink); min-height: 43px; font-size: 20px; }
.stepper button:hover:not(:disabled) { background: var(--soft); }
.stepper input { appearance: textfield; text-align: center; border: 0; padding-inline: 2px; min-height: 43px; }
.stepper input::-webkit-inner-spin-button { appearance: none; }
.span-full { grid-column: 1 / -1; }
.quote { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 3px 8px; margin-block: 12px 8px; background: var(--soft); padding: 11px 13px; border-radius: 9px; }
.quote span { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.quote output { text-align: right; font-size: 28px; line-height: 1; font-weight: 880; letter-spacing: -.04em; }
.form-error { margin-top: 8px; color: #902a26; font-size: 14px; font-weight: 650; }
.full-button { display: flex; width: 100%; min-height: 48px; margin-top: 10px; }
.confirmation { display: grid; justify-items: center; padding-block: 16px 0; text-align: center; gap: 10px; }
.confirmation h3 { font-size: 25px; letter-spacing: -.04em; }
.confirmation p { color: var(--muted); }
.success-icon { display: grid; place-items: center; width: 54px; aspect-ratio: 1; border-radius: 50%; background: var(--accent); font-size: 29px; }

.admin-header { background: var(--ink); color: var(--white); }
.admin-header .masthead { grid-template-columns: 1fr auto; }
.admin-header .brand-slash { color: var(--accent); }
.admin-header .contact-link:hover { background: #354137; }
.admin-main { padding-block: clamp(24px, 4.5vw, 68px); }
.admin-main h1 { font-size: clamp(37px, 5.7vw, 77px); }
.admin-toolbar { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin: 23px 0 12px; }
.admin-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(12px, 2vw, 26px); margin-top: 14px; }
.admin-panel h2 { font-size: clamp(24px, 3vw, 37px); line-height: 1; letter-spacing: -.04em; font-weight: 850; margin-bottom: 15px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
thead { background: var(--soft); }
thead th { font-weight: 760; white-space: nowrap; }
th, td { padding: 8px 11px; }
tbody tr + tr { border-top: 1px solid var(--line); }
.admin-item { display: flex; gap: 9px; align-items: center; min-width: 167px; line-height: 1.2; }
.admin-item img { width: 56px; height: 41px; border-radius: 6px; }
.admin-item small { display: block; font-weight: 450; color: var(--muted); margin-top: 3px; }
.visibility { display: inline-block; background: var(--soft); color: var(--muted); padding: 4px 8px; border-radius: 4px; font-size: 12px; }
.visibility.visible { background: #e6efda; color: #304827; }
.row-actions { display: flex; gap: 5px; }
.row-actions .button { font-size: 12px; }
.admin-status:not(:empty) { color: #31582d; font-size: 14px; margin-top: 14px; }
.checkbox { display: flex; align-items: center; gap: 7px; margin-top: 12px; min-height: 30px; font-size: 14px; }
.checkbox input { width: 18px; height: 18px; accent-color: #527a36; }
.form-actions { display: flex; justify-content: end; gap: 8px; margin-top: 11px; }
.danger { background: #f5e7e2; color: #852820; }
.danger:hover { background: #edd6cf; }
.delete-confirm { margin-top: 12px; padding: 12px; border: 1px solid #c4968f; border-radius: 8px; }
.delete-confirm p { margin-bottom: 8px; }
.calendar-name { font-size: 19px; font-weight: 750; }
#calendar-form { margin-top: 12px; }
.overrides { margin-top: 15px; }
.overrides h3 { font-size: 16px; }
.override { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-block: 5px; border-bottom: 1px solid var(--line); font-size: 13px; }
.override button { font-size: 12px; }

@media (max-width: 970px) {
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .masthead { height: auto; min-height: 62px; grid-template-columns: 1fr auto; gap: 2px 8px; padding-block: 8px 10px; }
  .logo svg { width: 29px; height: 29px; }
  .main-nav { grid-row: 2; grid-column: 1 / -1; gap: 5px; align-items: stretch; }
  .main-nav a { flex: 1; min-width: 0; padding-inline: 8px; border: 1px solid var(--line); }
  .main-nav a[aria-current] { border-color: var(--accent); }
  .contact-link { padding-inline: 7px; font-size: 13px; }
  .hero { align-items: end; min-height: clamp(360px, 102vw, 465px); padding: 24px 18px 50px; }
  .hero-photo { object-position: 67% 54%; }
  .hero::after { background: linear-gradient(0deg, #0b1512ec, #0b151270 57%, transparent 96%); }
  .hero h1 { font-size: clamp(64px, 13vw, 88px); }
  .hero-gear h1 { font-size: clamp(43px, 10.8vw, 76px); }
  .hero p { margin: 14px 0 16px; }
  .hero .button { min-height: 47px; padding: 10px 13px; }
  .hero-location { font-size: 11px; bottom: 9px; right: 9px; }
  .contacts { flex-direction: column; align-items: start; }
  .inventory-table, .inventory-table tbody { display: block; }
  .inventory-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .inventory-table tr { display: grid; grid-template-columns: auto auto 1fr; gap: 9px; align-items: center; padding: 12px 0; }
  .inventory-table th, .inventory-table td { padding: 0; }
  .inventory-table tbody th, .inventory-table td:last-child { grid-column: 1 / -1; }
  .inventory-table .row-actions .button { flex: 1; }
  .inventory-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 650;
  }
  .inventory-table td:nth-child(4) { justify-self: end; }
  .orders-table th, .orders-table td { min-width: 78px; }
}
@media (max-width: 520px) {
  .section-heading { flex-wrap: wrap; gap: 8px; }
  .filters { margin-block: 14px; }
  .chips button { padding-inline: 11px; font-size: 13px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .rental-product { grid-template-columns: 86px 1fr; }
}
@media (max-width: 355px) {
  .hero-gear h1 { font-size: 42px; }
  .section-heading h2 { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.checkout-dialog:has(#rental-form:not([hidden])) { width: min(880px, 100% - 24px); }
.checkout-layout { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.checkout-calendar { min-width: 0; padding: 14px; border: 1px solid #ced8cb; border-radius: 12px; background: var(--white); }
.checkout-calendar h3 { font-size: 17px; font-weight: 820; letter-spacing: -.025em; }
.checkout-month-bar { position: relative; z-index: 1; display: flex; justify-content: space-between; margin: 10px 0 -44px; pointer-events: none; }
.checkout-month-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.checkout-months { display: grid; grid-template-columns: minmax(0, 1fr); gap: 13px; }
.checkout-month-panel { min-width: 0; }
.checkout-month-panel h4 { display: grid; place-items: center; min-height: 44px; margin: 0 0 6px; padding-inline: 45px; text-align: center; font-size: 15px; font-weight: 780; text-transform: capitalize; }
.checkout-month-bar .icon-button { pointer-events: auto; display: grid; place-items: center; font-size: 16px; color: #214733; }
.checkout-month-bar svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.checkout-weekdays, .checkout-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.checkout-weekdays { margin-bottom: 5px; color: #4d5f51; font-size: 11px; font-weight: 760; text-align: center; }
.checkout-day {
  display: grid; place-items: center; width: 100%; min-width: 0; min-height: 39px; padding: 0; border: 1px solid #b2d0b7;
  border-radius: 6px; color: #17462d; background: #def0e0; font-size: 13px; font-weight: 780; font-variant-numeric: tabular-nums;
  transition: background-color 160ms ease-out, border-color 160ms ease-out;
}
.checkout-day:disabled { opacity: 1; color: #666d64; background: #eeefeb; border-color: #e2e5df; cursor: default; }
.checkout-day:enabled:hover { background: #c5e5c9; }
.checkout-day[data-return-only="true"] { background: #f3faf4; border-style: dashed; border-color: #569067; }
.checkout-day[data-preview]:enabled {
  background: #b4dfba;
  border-color: #8bbd94;
  transition-delay: var(--fill-delay);
}
.checkout-day[data-preview-edge]:enabled { background: #8fc99d; border-color: #569067; }
.checkout-day[data-range="true"]:enabled { --fill-color: #a9d7ae; background: var(--fill-color); border-color: #8dbb91; }
.checkout-day[data-edge]:not([data-edge=""]) { --fill-color: #204732; background: var(--fill-color); color: #fff; border-color: #204732; }
.checkout-day[data-fill] { animation: checkout-fill 200ms ease-out var(--fill-delay) both; }
@keyframes checkout-fill {
  from { background-color: #e1f3e1; color: #17462d; }
  to { background-color: var(--fill-color); }
}
@media (prefers-reduced-motion: reduce) {
  .checkout-day[data-fill] { animation: none; }
}
#checkout-instruction { font-size: 13px; color: #475b4c; margin-top: 2px; }
.checkout-day:focus-visible { outline-offset: 1px; position: relative; z-index: 1; }
.checkout-legend { display: flex; flex-wrap: wrap; gap: 7px 13px; list-style: none; margin: 11px 0 0; padding: 0; color: #475b4c; font-size: 12px; font-weight: 710; }
.checkout-legend li { display: flex; align-items: center; gap: 5px; }
.checkout-legend li::before { content: ""; width: 11px; height: 11px; border-radius: 3px; background: #def0e0; border: 1px solid #60996a; }
.checkout-legend li:last-child::before { background: #e9eae6; border-color: #7c8477; }
@media (max-width: 700px) {
  .checkout-dialog:has(#rental-form:not([hidden])) { width: min(480px, 100% - 24px); }
  .checkout-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .checkout-calendar { padding: 10px; }
  .checkout-day { min-height: 36px; }
}

@media (min-width: 760px) {
  .checkout-dialog:has(#rental-form:not([hidden])) { width: min(1160px, 100% - 24px); }
  .checkout-layout { grid-template-columns: minmax(0, 1fr); }
  .checkout-months { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checkout-month-panel + .checkout-month-panel { border-left: 1px solid #dce5da; padding-left: 13px; }
}
@media (min-width: 980px) {
  .checkout-layout { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); }
}

.product-media img[src$="/fleet-jimny-silver.webp"] { object-position: center bottom; }
