:root {
  --blue: #2f6f91;
  --blue-dark: #254b62;
  --blue-light: #dff3fb;
  --cyan: #58c7e8;
  --red: #ef4f4f;
  --text: #2a2a2a;
  --muted: #777;
  --border: #d9edf4;
  --shadow: 0 10px 28px rgba(28, 82, 114, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.45;
}

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

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

.container {
  width: min(1270px, calc(100% - 30px));
  margin: 0 auto;
}

.header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header__top {
  display: flex;
  align-items: center;
  min-height: 116px;
  gap: 28px;
}

.logo {
  flex: 0 0 260px;
}

.logo img {
  width: 238px;
}

.header__main {
  flex: 1;
}

.header__line {
  display: grid;
  grid-template-columns: 125px minmax(240px, 1fr) 230px 170px;
  gap: 18px;
  align-items: center;
}

.city,
.cart,
.search,
.header__contacts {
  min-height: 46px;
}

.city {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 17px;
  cursor: default;
}

.pin {
  color: var(--red);
  font-weight: 700;
}

.search {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.search input {
  border: 0;
  flex: 1;
  min-width: 0;
  padding: 0 16px;
  font-size: 15px;
  outline: 0;
}

.search button {
  width: 54px;
  border: 0;
  background: var(--cyan);
  color: #fff;
  font-size: 25px;
  cursor: pointer;
}

.header__contacts {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
}

.phone {
  color: var(--blue);
  font-size: 20px;
  font-weight: 700;
}

.cart {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--blue-dark);
  font-weight: 700;
}

.nav {
  background: var(--blue-dark);
}

.nav__inner,
.footer__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.nav a {
  color: #fff;
  padding: 18px 20px;
  font-size: 15px;
  text-transform: uppercase;
}

.nav a:hover {
  background: #33677f;
}

.hero {
  padding: 28px 0 10px;
}

.slider {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: var(--blue-light);
}

.slide {
  display: none;
}

.slide.is-active {
  display: block;
}

.slide img {
  width: 100%;
}

.slider__dots {
  position: absolute;
  inset: auto 0 14px;
  display: flex;
  justify-content: center;
  gap: 9px;
}

.slider__dots button {
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  cursor: pointer;
}

.slider__dots button.is-active {
  background: var(--red);
}

.section {
  padding: 34px 0;
}

h1,
h2,
h3 {
  margin: 0 0 20px;
  line-height: 1.2;
  font-weight: 500;
  color: #343434;
}

h1 {
  text-align: center;
  font-size: 32px;
}

h2 {
  text-align: center;
  font-size: 28px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.category {
  display: block;
  text-align: center;
  color: var(--blue-dark);
  font-size: 19px;
  font-weight: 700;
}

.category__image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 158px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  transition: box-shadow .2s, transform .2s;
}

.category:hover .category__image {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.products {
  background: #f5fbfe;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.product {
  display: grid;
  grid-template-columns: 46% 54%;
  min-height: 228px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  box-shadow: var(--shadow);
}

.product__image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.product__info {
  padding: 28px 20px 22px;
}

.product h3 {
  margin-bottom: 14px;
  color: var(--blue-dark);
  font-size: 20px;
}

.price {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 22px;
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 0 22px;
  border: 1px solid var(--cyan);
  border-radius: 4px;
  background: var(--cyan);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.btn--ghost {
  background: #fff;
  color: var(--blue);
}

.btn--light {
  background: #fff;
  color: var(--blue);
  border-color: #fff;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.brand {
  display: flex;
  min-height: 180px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  color: var(--blue-dark);
  font-weight: 700;
  box-shadow: var(--shadow);
}

.brand img {
  max-height: 76px;
  width: auto;
}

.about {
  padding: 50px 0;
  background: var(--blue-light);
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 38px;
  align-items: start;
}

.about h2,
.about h3 {
  text-align: left;
}

.eyebrow {
  margin-top: 0;
  color: var(--blue);
  font-size: 20px;
  font-weight: 700;
}

.about__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.order {
  padding: 28px;
  border-radius: 4px;
  background: var(--blue-dark);
  color: #fff;
  box-shadow: var(--shadow);
}

.order h2 {
  text-align: left;
  color: #fff;
}

.order label {
  display: block;
  margin-bottom: 14px;
  font-weight: 700;
}

.order input,
.order textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 12px;
  border: 0;
  border-radius: 4px;
  font: inherit;
}

.order textarea {
  min-height: 94px;
  resize: vertical;
}

.order__note {
  margin: 12px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, .8);
}

.info__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.info article {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
}

.info h2 {
  text-align: left;
  font-size: 22px;
}

.contacts {
  padding: 46px 0;
}

.contacts__grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 28px;
}

.contacts h2 {
  text-align: left;
}

.address {
  font-size: 18px;
}

.phone--large {
  font-size: 26px;
}

table {
  border-collapse: collapse;
}

th,
td {
  padding: 8px 18px 8px 0;
  text-align: left;
}

.map {
  min-height: 290px;
  border: 1px solid #c7dce7;
  border-radius: 4px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.48) 49px, transparent 50px),
    linear-gradient(rgba(255,255,255,.48) 49px, transparent 50px),
    #d8ece0;
  background-size: 50px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--blue-dark);
  text-align: center;
  box-shadow: inset 0 0 0 999px rgba(209, 232, 236, .22);
}

.map__pin {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 28px;
}

.legal {
  padding: 44px 0;
  background: #f4fbff;
}

.legal__grid {
  display: grid;
  grid-template-columns: 430px 1fr;
  gap: 30px;
}

.requisites {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.requisites div {
  display: grid;
  grid-template-columns: 150px 1fr;
  border-bottom: 1px solid var(--border);
}

.requisites div:last-child {
  border-bottom: 0;
}

.requisites dt,
.requisites dd {
  margin: 0;
  padding: 13px 16px;
}

.requisites dt {
  color: var(--muted);
  background: #f8fdff;
}

.policy {
  padding: 24px;
  border-radius: 4px;
  background: #fff;
  box-shadow: var(--shadow);
}

.policy h3 {
  color: var(--blue-dark);
}

.footer {
  background: var(--blue-dark);
  color: #d7edf6;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 0;
}

.footer__nav {
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  color: #fff;
}

.hotlog {
  max-width: 88px;
}

.attention {
  padding: 14px;
  background: #203f52;
  color: #fff;
  text-align: center;
  font-weight: 700;
}

.cookie {
  position: fixed;
  z-index: 40;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 14px;
}

.cookie.is-hidden {
  display: none;
}

@media (max-width: 1050px) {
  .header__top {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .logo {
    flex-basis: auto;
  }

  .header__main {
    width: 100%;
  }

  .header__line {
    grid-template-columns: 120px minmax(220px, 1fr) 220px;
  }

  .cart {
    display: none;
  }

  .product-grid,
  .about__grid,
  .contacts__grid,
  .legal__grid {
    grid-template-columns: 1fr;
  }

  .info__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .header {
    position: static;
  }

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

  .header__contacts {
    min-height: auto;
  }

  .nav__inner {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .nav a {
    flex: 0 0 auto;
    padding: 14px 13px;
    font-size: 13px;
  }

  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 24px;
  }

  .category-grid,
  .brand-grid,
  .info__grid {
    grid-template-columns: 1fr;
  }

  .product {
    grid-template-columns: 150px 1fr;
  }

  .about__actions,
  .cookie {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 20px, 1270px);
  }

  .logo img {
    width: 210px;
  }

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

  .product__image img {
    max-height: 190px;
    width: auto;
  }

  .requisites div {
    grid-template-columns: 1fr;
  }
}
