:root {
  --bg: #f5f6fa;
  --card: #ffffff;
  --ink: #20242d;
  --muted: #6b7280;
  --line: #e7eaf0;
  --red: #f14850;
  --red-dark: #d72f39;
  --rose: #ffe1e3;
  --green: #1f765f;
  --mint: #d9f2ea;
  --gold: #ffcf56;
  --gold-soft: #fff1bd;
  --blue: #4b76d8;
  --blue-soft: #e3ecff;
  --shadow: 0 14px 36px rgba(30, 36, 48, 0.11);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: 0;
}

body,
button,
input {
  font: inherit;
  letter-spacing: 0;
}

a,
button,
input,
label,
p,
span,
small,
h3,
.label,
.rating,
.badges,
.phone,
.worktime,
.factory-mark,
.category-tabs {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 12ch;
  font-family: "Philosopher", Georgia, Serif;
  font-size: clamp(2.25rem, 5vw, 5.35rem);
  line-height: 70px;
  font-weight: 700;
}

h2 {
  max-width: 100%;
  font-family: "Philosopher", Georgia, Serif;
  font-size: clamp(1.75rem, 2.6vw, 3rem);
  line-height: 44px;
  font-weight: 700;
}

h3 {
  font-size: 1rem;
  line-height: 1.28;
  font-weight: 800;
  text-align: center;
}

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

.topline {
  position: relative;
  color: #596070;
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
}

.topline__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 40px;
  padding: 8px 0 6px;
}

.topline-contacts {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
}

.city {
  position: relative;
  padding-left: 18px;
  font-weight: 700;
}

.city::before {
  position: absolute;
  top: 0.28rem;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--red);
  border-radius: 999px 999px 999px 2px;
  transform: rotate(-45deg);
  content: "";
}

.topline__nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-right: auto;
}

.phone {
  color: #000;
  font-weight: 600;
  white-space: nowrap;
}

.worktime {
  color: #000;
  font-weight: 400;
  white-space: nowrap;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 246, 250, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header__inner {
  display: grid;
  grid-template-columns: 160px auto minmax(280px, 1fr) 48px;
  gap: 14px;
  align-items: center;
  padding: 16px 0 12px;
}

.logo {
  display: flex;
  align-items: center;
  min-width: 0;
}

.logo img {
  width: 148px;
  height: auto;
}

.catalog-button,
.search button,
.product-card__bottom button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  font-weight: 850;
}

.catalog-button {
  padding: 0 22px;
  color: #fff;
  background: var(--red);
  box-shadow: 0 10px 18px rgba(241, 72, 80, 0.2);
}

.factory-mark {
  display: block;
  align-self: center;
  color: #000;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 18px;
  line-height: 1;
  font-weight: 600;
}

.factory-mark strong,
.factory-mark span {
  display: block;
  white-space: nowrap;
}

.factory-mark span {
  font-size: 0.82rem;
}

.catalog-button:hover,
.search button:hover,
.product-card__bottom button:hover {
  background: var(--red-dark);
}

.search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  align-items: stretch;
  min-width: 0;
  max-width: 100%;
  height: 48px;
  padding: 2px;
  overflow: hidden;
  background: var(--card);
  border: 2px solid var(--red);
  border-radius: 999px;
}

.search label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.search input {
  min-width: 0;
  height: 40px;
  padding: 0 18px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.search input::placeholder {
  color: #9298a6;
}

.search button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  min-height: 40px;
  height: 40px;
  padding: 0 18px;
  color: #fff;
  background: var(--red);
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.cart-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #2a2f38;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  position: relative;
}

.cart-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.category-tabs {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 0 0 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tabs a {
  flex: 0 0 auto;
  padding: 10px 16px;
  color: #3c4350;
  background: #fff;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 780;
  box-shadow: 0 1px 0 rgba(30, 36, 48, 0.04);
}

.topline,
.header {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

.factory-mark strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.15;
}

.phone {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.worktime {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
}

.catalog-button,
.search button {
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}

.search input {
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
}

.category-tabs a {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

.category-tabs a:hover,
.cart-icon:hover,
.service-tile:hover,
.category-card:hover,
.product-card:hover,
.service-card:hover {
  transform: translateY(-2px);
}

.topline,
.category-tabs,
.header-actions,
.search,
.label,
.rating,
small {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

main {
  display: grid;
  gap: 70px;
  padding: 24px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: stretch;
}

.hero-banner {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(310px, 0.96fr) minmax(330px, 0.8fr);
  min-height: 426px;
  overflow: hidden;
  color: var(--red);
  background: #fff url("hero-samovar-banner.png") center / cover no-repeat;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-banner__slides,
.hero-banner__slide {
  position: absolute;
  inset: 0;
}

.hero-banner__slides {
  z-index: 0;
  pointer-events: none;
}

.hero-banner__slide {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 700ms ease;
}

.hero-banner__slide.is-active {
  opacity: 1;
}

.hero-banner__dots {
  position: absolute;
  right: 28px;
  bottom: 24px;
  z-index: 2;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(30, 36, 48, 0.12);
  backdrop-filter: blur(12px);
}

.hero-banner__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  background: rgba(32, 36, 45, 0.32);
  border: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(32, 36, 45, 0.16);
  transition: transform 160ms ease, background 160ms ease;
}

.hero-banner__dot.is-active {
  background: var(--red);
  transform: scale(1.25);
}

.hero-banner__dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.hero-banner__copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 24px;
  max-width: 820px;
  padding: 44px 20px 44px 50px;
}

.label {
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-banner .label {
  color: #000;
}

.hero-banner__copy p:not(.label) {
  max-width: 500px;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  opacity: 0.94;
}

.hero-banner h1 {
  max-width: 8ch;
  color: var(--red);
}
 
@media (max-width: 1000px) {
.hero-banner h1 {
  line-height: 100%;
}
  
}

.hero-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-grid;
  place-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 860;
}

.button--light {
  color: var(--red-dark);
  background: #fff;
}

.button--ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.58);
}

.hero-banner__media {
  display: none;
}

.hero-banner__media img {
  width: min(96%, 430px);
  max-height: 410px;
  object-fit: contain;
  filter: drop-shadow(0 30px 32px rgba(90, 22, 25, 0.23));
}

.hero-promo {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
}

.promo-card {
  position: relative;
  display: grid;
  align-content: end;
  gap: 8px;
  min-height: 196px;
  padding: 24px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.promo-card::before {
  position: absolute;
  top: -60px;
  right: -46px;
  width: 176px;
  height: 176px;
  background: rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  content: "";
}

.promo-card span,
.promo-card strong,
.promo-card small {
  position: relative;
  z-index: 1;
}

.promo-card span {
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.promo-card strong {
  max-width: 12ch;
  font-size: 1.55rem;
  line-height: 1.05;
}

.promo-card small {
  color: rgba(32, 36, 45, 0.74);
  font-size: 0.92rem;
}

.promo-card--gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft)), url(22.jpg);
}

.promo-card--green {
  background: linear-gradient(135deg, var(--mint), #ffffff);
}

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

.service-tile {
  display: grid;
  gap: 7px;
  min-height: 120px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 6px 22px rgba(30, 36, 48, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.service-tile span {
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 900;
}

.service-tile strong {
  line-height: 1.18;
}

.service-tile small,
.category-card span,
.rating,
.service-card span,
.footer p,
.footer span {
  color: var(--muted);
}

.section-block {
  display: grid;
  gap: 18px;
}

.section-head {
  display: flex;
  gap: 18px;
  align-items: end;
  justify-content: space-between;
}

.section-head a {
  color: var(--red);
  font-weight: 820;
  white-space: nowrap;
}

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

.category-card {
  display: grid;
  grid-template-rows: 155px auto auto;
  gap: 10px;
  min-height: 270px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 6px 22px rgba(30, 36, 48, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.category-card img {
  width: 100%;
  height: 155px;
  object-fit: contain;
}

.category-card strong {
  font-size: 1.15rem;
  line-height: 1.18;
}

.category-card--sale {
  background: linear-gradient(135deg, #ffffff, #fff0f1);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter-chips button {
  min-height: 38px;
  padding: 0 16px;
  color: #424957;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 780;
}

.filter-chips .is-active {
  color: #fff;
  background: #2a2f38;
  border-color: #2a2f38;
}

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

.product-card {
  position: relative;
  display: grid;
  grid-template-rows: 450px auto auto;
  gap: 12px;
  min-width: 0;
  min-height: 462px;
  overflow: hidden;
  padding: 14px;
  background: #fff;
  border-radius: var(--radius-md);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.product-card__photo {
  position: relative;
  display: grid;
  place-items: center;
  height: 450px;
  padding: 14px;
  overflow: hidden;
  background: #f7f8fb;
  border-radius: var(--radius-sm);
}

.product-card__photo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 24px;
}

.badges span {
  display: inline-grid;
  place-items: center;
  min-height: 24px;
  padding: 0 9px;
  color: var(--red-dark);
  background: var(--rose);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 850;
}

.rating {
  font-size: 0.9rem;
}

.product-card__bottom {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  justify-content: center;
}

.product-card__bottom strong {
  white-space: nowrap;
  font: normal 16px / 1.5 'PT Sans', Arial, Serif;
  font-size: 1.5em;
  font-weight: bold;
  line-height: 1;
}

.product-card__bottom button {
  min-height: 40px;
  padding: 0 14px;
  color: #fff;
  background: var(--red);
  font-size: 0.88rem;
}

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

.wide-promo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 18px;
  align-items: center;
  min-height: 250px;
  padding: 30px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.wide-promo h2 {
  max-width: 12ch;
  margin: 8px 0 10px;
}

.wide-promo p:not(.label) {
  max-width: 360px;
}

.wide-promo img {
  width: 190px;
  max-height: 190px;
  object-fit: contain;
}

.wide-promo--red {
  color: #fff;
  background: linear-gradient(135deg, #e83645, #fb6870);
}

.wide-promo--red .label {
  color: #fff;
}

.wide-promo--blue {
  background: linear-gradient(135deg, var(--blue-soft), #fff);
}

.factory {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr);
  gap: 24px;
  align-items: stretch;
  padding: 34px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--blue-soft), #fff);
  box-shadow: var(--shadow);
}

.factory__copy {
  display: grid;
  align-content: center;
  gap: 14px;
}

.factory__copy p:not(.label) {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.05rem;
}

.factory__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.factory__stats div {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 168px;
  padding: 18px;
  background: white;
  border-radius: var(--radius-md);
}

.factory__stats strong {
  color: var(--red);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.factory__stats span {
  color: #4b5260;
  font-weight: 760;
}

.service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-grid .section-head {
  grid-column: 1 / -1;
}

.service-card {
  display: grid;
  align-content: space-between;
  gap: 24px;
  min-height: 180px;
  padding: 20px;
  color: #fff;
  background: #2a2f38;
  border-radius: var(--radius-md);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.service-card:nth-of-type(2) {
  background: var(--green);
}

.service-card:nth-of-type(3) {
  color: var(--ink);
  background: var(--gold-soft);
}

.service-card:nth-of-type(4) {
  color: var(--ink);
  background: var(--blue-soft);
}

.service-card span {
  color: inherit;
  opacity: 0.76;
}

.footer {
  padding: 40px 0 44px;
  background: #20242d;
  color: #fff;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(280px, 1.25fr) minmax(190px, 0.75fr) minmax(220px, 0.85fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.footer__inner > div:first-child {
  display: grid;
  gap: 8px;
}

.footer img {
  width: 168px;
  margin-bottom: 8px;
  filter: brightness(0) invert(1);
}

.footer p {
  max-width: 340px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.45;
}

.footer nav {
  display: grid;
  gap: 10px;
  justify-items: start;
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.35;
}

.footer__contacts {
  display: grid;
  gap: 10px;
  justify-items: start;
  text-align: left;
}

.footer__contacts a {
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.35;
}

.footer a {
  color: #fff;
}

.footer a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer .vk-link {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.footer .vk-link svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.footer .vk-link:hover {
  text-decoration: none;
}

@media (max-width: 1180px) {
  .header__inner {
    grid-template-columns: 142px auto minmax(240px, 1fr) 48px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-promo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .services,
  .popular-grid,
  .product-grid,
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .shell {
    width: min(100% - 20px, 680px);
  }

  .topline__inner {
    gap: 8px 14px;
    padding: 8px 0;
    flex-wrap: wrap;
    display: flex;
    justify-content: space-between;
  }

  .topline-contacts {
    gap: 10px;
  }

  .topline__nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }

  .header {
    position: static;
  }

  .header__inner {
    grid-template-columns: 1fr auto auto;
    gap: 10px;
  }

  .logo img {
    width: 134px;
  }

  .catalog-button {
    min-height: 40px;
    padding: 0 16px;
  }

  .search {
    grid-column: 1 / -1;
  }

  .header-actions {
    grid-column: 3;
    grid-row: 1;
  }

  .category-tabs {
    padding-bottom: 10px;
  }

  main {
    gap: 28px;
    padding-top: 14px;
  }

  .hero-banner {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-banner__copy {
    padding: 30px 24px 70px;
  }

  .hero-banner__dots {
    right: 20px;
    bottom: 20px;
  }

  .hero-banner__media {
    padding: 0 24px 0;
    place-items: center;
  }

  .hero-banner__media img {
    max-height: 300px;
  }

  .hero-promo,
  .services,
  .popular-grid,
  .split-promos,
  .factory,
  .service-grid,
  .footer__inner {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: grid;
    align-items: start;
  }

  .filter-chips {
    justify-content: flex-start;
  }

  .wide-promo {
    grid-template-columns: 1fr;
  }

  .wide-promo img {
    justify-self: end;
  }

  .factory__stats {
    grid-template-columns: 1fr;
  }

  .footer__contacts {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .header-actions {
    grid-column: 3;
    grid-row: 1;
  }

  .search {
    height: auto;
    grid-template-columns: 1fr;
    border-radius: var(--radius-md);
  }

  .search input {
    height: 44px;
  }

  .search button {
    width: 100%;
  }

  .hero-banner__actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .product-card {
    grid-template-rows: auto auto auto;
    min-height: 440px;
  }

  .product-card__photo {
    height: fit-content;
  }

  .product-card__bottom {
    display: grid;
    justify-items: center;
  }

  .product-card__bottom button {
    width: 100%;
  }
}

.product-card__old-price {
  position: relative;
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
  width: fit-content;
}

.product-card__old-price::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #f02807;
    transform: rotate(-7deg);
}

.header-basket-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 25px;
    padding: 0px 5px;
    height: 25px;
    display: flex;
    justify-content: center;
    background: white;
    border-radius: 50px;
    border: 1px solid var(--line);
    line-height: 1;
    align-items: center;
}