:root {
  --accent: #d20f17;
  --accent-dark: #ab070d;
  --text: #111111;
  --muted: #555555;
  --line: #e9e9e9;
  --soft: #f7f7f7;
  --footer: #1e1e1e;
  --map-visible-height: 300px;
  --map-inner-height: 520px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #ffffff;
  font-family: "Golos Text", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 72px, 1100px);
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 5;
  padding: 18px 0 5px;
  background: #ffffff;
}

@media (min-width: 881px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  }

  #catalog,
  #partners,
  #contacts {
    scroll-margin-top: 86px;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: 154px;
  height: auto;
}

.main-nav,
.footer-nav {
  display: flex;
  align-items: center;
}

.main-nav {
  gap: 42px;
  margin-left: 24px;
  font-size: 14px;
  font-weight: 700;
}

.main-nav a,
.footer-nav a {
  transition: color 0.2s ease;
}

.main-nav a:hover,
.footer-nav a:hover {
  color: var(--accent);
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.phone-link svg {
  width: 22px;
  height: 22px;
  fill: #000000;
}

.hero {
  overflow: hidden;
  padding: 14px 0 32px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 470px minmax(0, 1fr);
  align-items: center;
  min-height: 500px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero h1 {
  max-width: 500px;
  margin: 0 0 17px;
  font-size: 32px;
  line-height: 1.24;
  font-weight: 800;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  max-width: 388px;
  margin: 0 0 28px;
  color: #303030;
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.market-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 205px;
  min-height: 46px;
  gap: 10px;
  padding: 0 26px;
  border-radius: 6px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 10px 22px rgba(210, 15, 23, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.market-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 25px rgba(210, 15, 23, 0.22);
}

.market-icon {
  display: inline-grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
}

.market-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
}

.ozon-btn .market-icon img {
  transform: scale(1.22);
}

.wb-btn {
  background: var(--accent);
}

.ozon-btn {
  background: #222222;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

.wb-btn:hover {
  background: var(--accent-dark);
}

.ozon-btn:hover {
  background: #111111;
  box-shadow: 0 13px 25px rgba(0, 0, 0, 0.18);
}

.hero-media {
  position: relative;
  min-height: 500px;
}

.hero-media img {
  position: absolute;
  top: 0;
  right: -95px;
  z-index: 2;
  width: 520px;
  max-width: none;
}

.hero-spot {
  position: absolute;
  top: 45px;
  right: -18px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle at 62% 42%, #e5111a 0 52%, var(--accent) 53% 100%);
}

.features {
  padding: 9px 0 30px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.feature-card,
.product-card {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
}

.feature-card {
  min-height: 236px;
  padding: 20px 14px 16px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.025);
}

.feature-icon {
  width: 49px;
  height: 49px;
  margin: 0 auto 14px;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  margin: 0 0 12px;
  font-size: 16.25px;
  line-height: 1.25;
  font-weight: 800;
}

.feature-card p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: #202020;
}

.catalog {
  padding: 0 0 18px;
}

.section-heading {
  margin-bottom: 14px;
  text-align: center;
}

.section-heading h2,
.partners h2,
.contacts h2 {
  margin: 0;
  font-weight: 800;
}

.section-heading h2 {
  font-size: 30px;
  line-height: 1.2;
}

.section-heading p {
  margin: 5px 0 0;
  color: #303030;
  font-size: 17px;
}

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

.product-card {
  display: flex;
  min-height: 228px;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 12px 22px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(210, 15, 23, 0.35);
  box-shadow: 0 15px 28px rgba(0, 0, 0, 0.08);
}

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

.product-card h3 {
  margin: 12px 0 0;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 800;
}

.trust-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  color: #222222;
  font-size: 18px;
}

.trust-line svg {
  width: 31px;
  height: 31px;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.partners {
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 100%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(90deg, var(--accent-dark), var(--accent) 46%, #c9070e);
  color: #ffffff;
}

.partners-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 36px;
  min-height: 0;
  padding: 23px 0 18px;
}

.partners-copy {
  position: relative;
  min-height: 250px;
}

.partners h2 {
  max-width: 435px;
  font-size: 27px;
  line-height: 1.18;
}

.partners-copy > p {
  max-width: 470px;
  margin: 13px 0 15px;
  font-size: 17.5px;
  line-height: 1.55;
}

.partners-list {
  display: grid;
  gap: 8px;
  max-width: 300px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16.25px;
  font-weight: 700;
}

.partners-list li {
  position: relative;
  padding-left: 29px;
}

.partners-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border: 2px solid #ffffff;
  border-radius: 50%;
  content: "✓";
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.partners-image {
  position: absolute;
  right: -6px;
  bottom: -52px;
  width: 288px;
  max-width: none;
  filter: drop-shadow(0 20px 24px rgba(80, 0, 0, 0.32));
}

.partner-form {
  align-self: center;
}

.partner-form,
.partner-form label {
  display: grid;
  gap: 8px;
}

.partner-form {
  gap: 8px;
}

.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px !important;
  height: 1px !important;
  opacity: 0;
}

.partner-form label span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.partner-form input,
.partner-form textarea {
  width: 100%;
  border: 0;
  border-radius: 5px;
  background: #ffffff;
  color: #111111;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.partner-form input {
  height: 38px;
  padding: 0 18px;
}

.partner-form textarea {
  height: 74px;
  resize: vertical;
  padding: 15px 18px;
}

.partner-form input::placeholder,
.partner-form textarea::placeholder {
  color: #7d7d7d;
}

.partner-form button {
  min-height: 42px;
  border: 0;
  border-radius: 5px;
  background: #222222;
  color: #ffffff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  transition: background 0.2s ease, transform 0.2s ease;
}

.partner-form button:hover {
  background: #111111;
  transform: translateY(-1px);
}

.privacy {
  margin: 2px 0 0;
  text-align: center;
  font-size: 11px;
}

.privacy a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.privacy-check {
  display: flex !important;
  align-items: flex-start;
  gap: 8px !important;
  margin: 2px 0 0;
  color: #ffffff;
  text-align: left;
  font-size: 10px;
  line-height: 1.35;
}

.partner-form .privacy-check span {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
}

.partner-form .privacy-check input {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin: 1px 0 0;
  padding: 0;
  accent-color: var(--accent);
  box-shadow: none;
}

.contacts {
  padding: 27px 0 30px;
  background: #ffffff;
}

.contacts-inner {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.contacts-copy,
.map-card {
  min-width: 0;
}

.contacts h2 {
  margin-bottom: 23px;
  font-size: 31px;
  line-height: 1.1;
}

.contacts address {
  display: grid;
  gap: 19px;
  font-style: normal;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
}

.contact-item p {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.contact-icon {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
}

.contact-icon svg {
  width: 25px;
  height: 25px;
  color: #ffffff;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-card {
  position: relative;
  width: 100%;
  height: var(--map-visible-height);
  min-height: 0;
  overflow: hidden;
  border-radius: 7px;
  background:
    linear-gradient(26deg, transparent 48%, rgba(110, 190, 95, 0.2) 49% 54%, transparent 55%),
    linear-gradient(158deg, transparent 44%, rgba(255, 206, 86, 0.35) 45% 49%, transparent 50%),
    linear-gradient(90deg, #f3f7ef, #eef5e8);
}

.map-card > iframe,
.map-card > ymaps,
.map-card > div:not(.map-fallback),
.map-card > div:not(.map-fallback) iframe {
  position: absolute !important;
  top: 0 !important;
  right: auto !important;
  bottom: auto !important;
  left: 0 !important;
  z-index: 2;
  width: 100% !important;
  height: var(--map-inner-height) !important;
  border: 0;
}

.map-card:has(> iframe) .map-fallback,
.map-card:has(> ymaps) .map-fallback,
.map-card:has(> div:not(.map-fallback)) .map-fallback {
  display: none;
}

.map-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #141414;
  font-size: 15px;
}

.map-fallback::before,
.map-fallback::after {
  position: absolute;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 198, 0, 0.7);
  content: "";
  transform: rotate(-16deg);
}

.map-fallback::before {
  top: 44%;
  left: -8%;
  width: 118%;
}

.map-fallback::after {
  top: 66%;
  left: 24%;
  width: 74%;
  transform: rotate(12deg);
}

.map-pin {
  position: relative;
  z-index: 1;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.16);
}

.map-pin svg {
  width: 35px;
  height: 35px;
  color: var(--accent);
  fill: currentColor;
}

.map-fallback strong,
.map-fallback > span:not(.map-pin) {
  position: relative;
  z-index: 1;
}

.site-footer {
  padding: 23px 0 19px;
  background:
    radial-gradient(circle at 0 100%, rgba(255, 255, 255, 0.08), transparent 30%),
    linear-gradient(90deg, #202020, #282828 48%, #181818);
  color: #ffffff;
}

.footer-inner {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}

.footer-brand img {
  width: 166px;
}

.footer-brand p {
  max-width: 240px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.77);
  font-size: 14px;
  line-height: 1.55;
}

.footer-nav {
  justify-content: center;
  gap: 38px;
  padding-top: 28px;
  font-size: 14px;
}

.footer-contacts {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding-top: 9px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
}

.footer-contacts a,
.footer-contacts span {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-contacts svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  color: #ffffff;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px 22px;
  width: min(100% - 72px, 1100px);
  margin: 18px auto 0;
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.64);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: #ffffff;
}

.copyright {
  margin: 6px 0 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner {
  position: fixed;
  z-index: 100;
  bottom: 18px;
  left: 50%;
  width: min(230px, calc(100% - 32px));
  padding: 10px 12px 9px;
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  color: #333333;
  font-size: 10px;
  line-height: 1.3;
  transform: translateX(-50%);
}

.cookie-banner p {
  margin: 0 0 8px;
}

.cookie-banner a {
  color: #d85f0b;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner button {
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid #b8b8b8;
  border-radius: 2px;
  background: #ffffff;
  color: #d85f0b;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.cookie-banner button:hover {
  border-color: #d85f0b;
  background: #fff7f0;
}

@media (max-width: 880px) {
  .container {
    width: calc(100% - 52px);
    max-width: 1100px;
  }

  .header-inner > *,
  .hero-inner > *,
  .partners-inner > *,
  .contacts-inner > *,
  .footer-inner > * {
    min-width: 0;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }

  .hero-inner {
    grid-template-columns: 390px minmax(0, 1fr);
    min-height: 450px;
  }

  .hero-media {
    min-height: 450px;
  }

  .hero-media img {
    top: 0;
    right: -70px;
    width: 450px;
  }

  .features-grid,
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .partners-inner {
    grid-template-columns: 1fr;
  }

  .partner-form {
    max-width: 620px;
  }
}

@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .container {
    width: calc(100% - 32px);
    max-width: 1100px;
  }

  .site-header {
    padding-top: 16px;
  }

  .header-inner,
  .header-contacts,
  .main-nav {
    justify-content: center;
  }

  .brand img {
    width: 158px;
  }

  .header-contacts {
    flex-wrap: wrap;
    gap: 14px;
    width: 100%;
  }

  .main-nav {
    gap: 26px;
    max-width: 100%;
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 22px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: 0;
  }

  .hero h1 {
    width: 100%;
    max-width: 560px;
    font-size: 32px;
    overflow-wrap: break-word;
  }

  .hero p {
    width: 100%;
    max-width: 530px;
    overflow-wrap: break-word;
  }

  .hero-media {
    display: none;
  }

  .features-grid,
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partners h2,
  .section-heading h2,
  .contacts h2 {
    font-size: 27px;
  }

  .partners-copy {
    min-height: 0;
  }

  .partners-image {
    display: none;
  }

  .contacts-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .map-card {
    --map-visible-height: 260px;
    --map-inner-height: 470px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }

  .footer-brand img {
    margin: 0 auto;
  }

  .footer-brand p {
    margin-right: auto;
    margin-left: auto;
  }

  .footer-nav {
    padding-top: 0;
  }

  .footer-contacts {
    justify-items: center;
    padding-top: 0;
  }

  .footer-legal {
    width: calc(100% - 52px);
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 29px;
  }

  .hero-actions,
  .market-btn {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .features-grid,
  .catalog-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
  }

  .product-card {
    min-height: 218px;
  }

  .trust-line {
    align-items: flex-start;
    font-size: 16px;
    text-align: left;
  }

  .partners-copy {
    min-height: 0;
  }

  .contact-item {
    align-items: flex-start;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 18px 28px;
  }

  .footer-legal {
    flex-direction: column;
    align-items: center;
    width: calc(100% - 32px);
    gap: 8px;
  }

  .cookie-banner {
    bottom: 14px;
    left: 50%;
    width: min(230px, calc(100% - 28px));
    padding: 10px 12px 9px;
    font-size: 10px;
  }
}
