.hero-slider {
  position: relative;
  width: 100%;
  height: min(690px, 72vw);
  min-height: 560px;
  overflow: hidden;
  background: #0d3c45;
}

.logo-image {
  display: block;
  width: 218px;
  height: auto;
}

.site-footer .logo-image {
  filter: drop-shadow(0 0 0 transparent);
}

@media (max-width: 420px) {
  .logo-image {
    width: 184px;
  }
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s ease, visibility .8s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 38, 45, .83) 0%, rgba(5, 38, 45, .48) 42%, rgba(5, 38, 45, .04) 72%);
}

.hero-shade.shade-right {
  background: linear-gradient(270deg, rgba(5, 38, 45, .84) 0%, rgba(5, 38, 45, .51) 42%, rgba(5, 38, 45, .05) 72%);
}

.slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.slide-content.align-right {
  justify-content: flex-end;
  text-align: left;
}

.slide-panel {
  max-width: 680px;
  color: #fff;
  padding: 48px 0;
  transform: translateY(18px);
  opacity: 0;
  transition: transform .7s .25s ease, opacity .7s .25s ease;
}

.hero-slide.active .slide-panel {
  transform: translateY(0);
  opacity: 1;
}

.slide-panel h1,
.slide-panel h2 {
  max-width: 680px;
  margin: 16px 0 20px;
  font-size: clamp(43px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -3px;
  text-shadow: 0 3px 25px rgba(0, 0, 0, .22);
}

.slide-panel p {
  max-width: 590px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, .87);
  font-size: 18px;
}

.opening-panel h2 {
  color: #fff;
}

.slider-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  color: #fff;
  background: rgba(7, 54, 62, .28);
  backdrop-filter: blur(8px);
  font: 36px/1 Georgia, serif;
  cursor: pointer;
  transform: translateY(-50%);
  transition: .2s;
}

.slider-arrow:hover {
  background: var(--coral);
  border-color: var(--coral);
}

.slider-prev { left: 24px; }
.slider-next { right: 24px; }

.slider-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 24px;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

.slider-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: .25s;
}

.slider-dots button.active {
  width: 32px;
  border-radius: 99px;
  background: #fff;
}

.article-art {
  display: block;
  width: 100%;
  height: 205px;
  margin-bottom: 20px;
  border-radius: 16px;
  object-fit: cover;
}

.article-cover {
  display: block;
  width: 100%;
  max-height: 520px;
  margin: 0 0 42px;
  border-radius: 26px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.category-image {
  display: block;
  width: calc(100% + 50px);
  max-width: none;
  height: auto;
  aspect-ratio: 3 / 2;
  margin: -25px -25px 22px;
  border-radius: 20px 20px 12px 12px;
  object-fit: cover;
  object-position: center;
}

.category-grid article {
  overflow: hidden;
}

#request {
  scroll-margin-top: 96px;
}

.cookie-notice {
  position: fixed;
  z-index: 1000;
  right: 24px;
  bottom: 24px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  width: min(680px, calc(100% - 48px));
  padding: 17px 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  color: #fff;
  background: rgba(12, 48, 55, .97);
  box-shadow: 0 20px 60px rgba(2, 25, 29, .28);
  transform: translateY(24px);
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
}

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

.cookie-notice__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--sea);
  font-size: 26px;
}

.cookie-notice__text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.cookie-notice__text b {
  margin-bottom: 3px;
  font-size: 14px;
}

.cookie-notice__text span {
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
}

.cookie-notice__text a {
  color: #9ee8e1;
  text-decoration: underline;
}

.cookie-notice__button {
  padding: 10px 16px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: var(--coral);
  font-weight: 750;
  cursor: pointer;
}

.self-search-section {
  padding: 54px 0 0;
}

.self-search-card {
  position: relative;
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 390px;
  overflow: hidden;
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(circle at 15% 10%, rgba(108, 221, 211, .24), transparent 34%),
    linear-gradient(135deg, #075e68, #0e3037);
  box-shadow: 0 28px 70px rgba(7, 94, 104, .2);
}

.self-search-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 54px 64px 54px 30px;
}

.self-search-copy h2 {
  max-width: 690px;
  margin: 12px 0 16px;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: -2px;
}

.self-search-copy p {
  max-width: 690px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, .74);
  font-size: 16px;
}

.self-search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.self-search-tags span {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 999px;
  color: rgba(255, 255, 255, .78);
  background: rgba(255, 255, 255, .07);
  font-size: 11px;
  font-weight: 700;
}

.self-search-visual {
  position: relative;
  min-height: 390px;
}

.self-search-ring {
  position: absolute;
  left: 70px;
  top: 72px;
  width: 165px;
  height: 165px;
  border: 18px solid #fff;
  border-radius: 50%;
  box-shadow: 0 20px 55px rgba(0, 0, 0, .15);
}

.self-search-ring::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -45px;
  width: 90px;
  height: 18px;
  border-radius: 10px;
  background: #fff;
  transform: rotate(45deg);
  transform-origin: left center;
}

.self-search-part {
  position: absolute;
  left: 111px;
  top: 104px;
  color: var(--coral);
  font-size: 90px;
  line-height: 1;
}

.self-search-wave {
  position: absolute;
  left: 25px;
  bottom: -72px;
  color: rgba(255, 255, 255, .08);
  font: 260px Georgia, serif;
  transform: rotate(-8deg);
}

.maintenance-products {
  background: #fff;
}

.maintenance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.maintenance-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 45px rgba(13, 78, 86, .07);
  transition: transform .2s ease, box-shadow .2s ease;
}

.maintenance-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.maintenance-photo {
  height: 210px;
  padding: 18px;
  background: linear-gradient(145deg, #f4fbfa, #fff);
}

.maintenance-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.maintenance-category {
  margin: 20px 20px 6px;
  color: var(--sea);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.maintenance-card h3 {
  margin: 0 20px 18px;
  font-size: 16px;
  line-height: 1.35;
}

.maintenance-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding: 17px 20px 20px;
  border-top: 1px solid var(--line);
}

.maintenance-bottom strong {
  color: var(--sea);
  font-size: 22px;
  white-space: nowrap;
}

.maintenance-bottom .button {
  padding: 10px 14px;
  border-radius: 11px;
  font-size: 13px;
}

.top-order-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 20px;
}

.top-order-modal[hidden] {
  display: none;
}

.top-order-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 35, 40, .74);
  backdrop-filter: blur(5px);
}

.top-order-dialog {
  position: relative;
  width: min(610px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 34px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .3);
}

.top-order-dialog h2 {
  margin: 8px 40px 14px 0;
  font-size: 31px;
  line-height: 1.15;
}

.top-order-close {
  position: absolute;
  right: 18px;
  top: 16px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--foam);
  font-size: 25px;
  cursor: pointer;
}

.top-order-product {
  margin-bottom: 20px;
  padding: 15px 17px;
  border-left: 3px solid var(--sea);
  border-radius: 0 12px 12px 0;
  background: var(--foam);
  font-size: 13px;
}

.top-order-product b,
.top-order-product span {
  display: block;
}

.top-order-product b {
  margin-bottom: 3px;
}

.top-order-product strong,
.top-order-total strong {
  color: var(--sea);
}

.top-order-dialog form > label,
.top-order-row label {
  display: block;
  margin-bottom: 13px;
  font-size: 12px;
  font-weight: 750;
}

.top-order-dialog input,
.top-order-dialog textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  color: var(--ink);
  background: #fbfdfd;
  font: inherit;
  font-size: 14px;
}

.top-order-dialog input:focus,
.top-order-dialog textarea:focus {
  border-color: var(--sea);
  box-shadow: 0 0 0 3px rgba(8, 127, 140, .1);
}

.top-order-row {
  display: grid;
  grid-template-columns: 135px 1fr;
  align-items: center;
  gap: 16px;
}

.top-order-total {
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff8ef;
}

.top-order-total span {
  color: var(--muted);
  font-size: 11px;
}

.top-order-total strong {
  font-size: 22px;
}

.top-order-dialog .check {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-weight: 400;
}

.top-order-dialog .check input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
}

.top-order-dialog .check a {
  color: var(--sea);
  text-decoration: underline;
}

.top-order-submit {
  width: 100%;
}

body.top-order-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .hero-slider {
    height: 650px;
    min-height: 650px;
  }

  .hero-slide > img {
    object-position: 60% center;
  }

  .hero-slide:nth-child(2) > img {
    object-position: 35% center;
  }

  .hero-shade,
  .hero-shade.shade-right {
    background: linear-gradient(0deg, rgba(5, 38, 45, .88) 0%, rgba(5, 38, 45, .55) 55%, rgba(5, 38, 45, .15) 100%);
  }

  .slide-content,
  .slide-content.align-right {
    align-items: flex-end;
    justify-content: flex-start;
    padding-bottom: 70px;
  }

  .slide-panel {
    padding: 0;
  }

  .slide-panel h1,
  .slide-panel h2 {
    margin: 12px 0 17px;
    font-size: 42px;
    letter-spacing: -2px;
  }

  .slide-panel p {
    margin-bottom: 23px;
    font-size: 16px;
  }

  .slider-arrow {
    display: none;
  }
  .article-art { height: 210px; }
  .article-cover { border-radius: 18px; margin-bottom: 30px; }
  .category-image { height: auto; }

  #request {
    scroll-margin-top: 88px;
  }

  .cookie-notice {
    right: 12px;
    bottom: 12px;
    grid-template-columns: 34px 1fr;
    width: calc(100% - 24px);
    padding: 14px;
  }

  .cookie-notice__icon {
    width: 34px;
    height: 34px;
    font-size: 22px;
  }

  .cookie-notice__button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .self-search-section {
    padding-top: 28px;
  }

  .self-search-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .self-search-visual {
    min-height: 210px;
  }

  .self-search-ring {
    left: 50%;
    top: 34px;
    width: 115px;
    height: 115px;
    border-width: 13px;
    transform: translateX(-58%);
  }

  .self-search-ring::after {
    right: -52px;
    bottom: -34px;
    width: 68px;
    height: 13px;
  }

  .self-search-part {
    left: calc(50% - 44px);
    top: 58px;
    font-size: 66px;
  }

  .self-search-copy {
    padding: 15px 23px 34px;
  }

  .self-search-copy h2 {
    font-size: 34px;
  }

  .self-search-copy .button {
    width: 100%;
  }

  .maintenance-grid {
    display: flex;
    gap: 14px;
    margin-right: -14px;
    padding: 0 14px 12px 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .maintenance-card {
    flex: 0 0 82vw;
    scroll-snap-align: start;
  }

  .maintenance-photo {
    height: 230px;
  }

  .top-order-modal {
    padding: 10px;
  }

  .top-order-dialog {
    max-height: calc(100vh - 20px);
    padding: 27px 18px;
  }

  .top-order-row {
    grid-template-columns: 115px 1fr;
  }
}

@media (min-width: 761px) and (max-width: 1050px) {
  .maintenance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.nav a[href="/catalog.html"] {
  padding: 7px 5px 5px;
  border-radius: 0;
  border-bottom: 2px solid rgba(8, 127, 140, .28);
  background: transparent;
  color: var(--sea);
  box-shadow: none;
  font-weight: 800;
}

.nav a[href="/catalog.html"]:before {
  width: 7px;
  height: 7px;
  background: var(--coral);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .24);
}

.nav a[href="/catalog.html"]:hover {
  border-bottom-color: var(--sea);
  background: transparent;
  color: var(--sea-dark);
  box-shadow: none;
}

.header-mobile-actions {
  display: flex;
  align-items: center;
}

.header-telegram {
  display: none;
}

@media (max-width: 980px) {
  .nav {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    padding: 25px 20px;
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transform-origin: top;
    transition: opacity .24s ease, transform .24s ease, visibility 0s linear .24s;
  }

  .nav.open {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity .24s ease, transform .24s ease, visibility 0s;
  }

  .menu-button {
    display: block;
  }

  .telegram-link {
    width: auto;
    height: auto;
    display: inline-flex !important;
    padding: 7px 13px 7px 8px;
    gap: 9px;
    border-radius: 999px;
    background: #eef8fc;
  }

  .telegram-link img {
    width: 30px;
    height: 30px;
  }

  .telegram-link span {
    display: inline;
    color: #147ca8;
    font-weight: 800;
  }

  .nav a[href="/catalog.html"] {
    width: auto;
    justify-content: flex-start;
    padding: 7px 5px 5px;
    border: 0;
    border-bottom: 2px solid rgba(8, 127, 140, .28);
    border-radius: 0;
    background: transparent;
    color: var(--sea);
    box-shadow: none;
  }

  .nav a[href="/catalog.html"]:hover {
    border-bottom-color: var(--sea);
    background: transparent;
    color: var(--sea-dark);
    box-shadow: none;
  }

  .nav .telegram-link {
    display: none !important;
  }

  .header-mobile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
  }

  .header-telegram {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    box-shadow: 0 7px 18px rgba(34, 158, 217, .2);
  }

  .header-telegram img {
    width: 36px;
    height: 36px;
  }

  .menu-button {
    position: relative;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 10px;
    cursor: pointer;
  }

  .menu-icon,
  .menu-icon:before,
  .menu-icon:after {
    position: absolute;
    left: 8px;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .24s ease, top .24s ease, opacity .18s ease, background-color .18s ease;
  }

  .menu-icon {
    top: 18px;
  }

  .menu-icon:before,
  .menu-icon:after {
    content: "";
    left: 0;
  }

  .menu-icon:before {
    top: -7px;
  }

  .menu-icon:after {
    top: 7px;
  }

  .menu-button[aria-expanded="true"] .menu-icon {
    background: transparent;
  }

  .menu-button[aria-expanded="true"] .menu-icon:before {
    top: 0;
    transform: rotate(45deg);
  }

  .menu-button[aria-expanded="true"] .menu-icon:after {
    top: 0;
    transform: rotate(-45deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .slide-panel,
  .nav,
  .menu-icon,
  .menu-icon:before,
  .menu-icon:after {
    transition: none;
  }
}
