/* Design tokens from Figma */
:root {
  --color-primary: #fc6d1d;
  --color-accent: #fe8b2b;
  --color-pill: #d9d9d9;
  --color-pill-active: #b8b8b8;
  --color-text: #000000;
  --color-text-muted: rgba(0, 0, 0, 0.31);
  --color-white: #ffffff;
  --color-footer-brand: #f25902;
  --color-search-placeholder: rgba(0, 0, 0, 0.3);

  --font-primary: 'Montserrat', sans-serif;
  --font-banner: 'Montserrat Alternates', sans-serif;
  --font-secondary: 'Inter', sans-serif;

  --max-width: 1170px;
  --radius-banner: 30px;
  --radius-pill: 11px;
  --radius-product: 70px;
}

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

body {
  margin: 0;
  font-family: var(--font-primary);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.4;
}

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.header {
  padding-top: 34px;
}

.header__top {
  display: grid;
  grid-template-columns: 200px minmax(180px, 240px) 1fr;
  align-items: center;
  gap: 24px 32px;
}

.logo {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.logo__icon {
  position: relative;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}

.logo__circle {
  width: 100px;
  height: 100px;
}

.logo__photo {
  position: absolute;
  top: 6px;
  left: 8px;
  width: 78px;
  height: 73px;
  transform: rotate(51deg);
  object-fit: cover;
}

.logo__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 2px;
}

.logo__trout {
  width: 91px;
  height: auto;
}

.logo__sause {
  width: 80px;
  height: auto;
  margin-left: 24px;
}

.search {
  position: relative;
  width: 100%;
}

.search__label {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: flex;
  pointer-events: none;
}

.search__icon {
  width: 14px;
  height: 14px;
}

.search__input {
  width: 100%;
  height: 30px;
  padding: 0 12px 0 32px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-family: var(--font-primary);
  font-size: 17px;
  color: var(--color-text);
  background: url('../assets/icons/search-bg.png') center / cover no-repeat, var(--color-white);
}

.search__input::placeholder {
  color: var(--color-search-placeholder);
}

.search__input:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}

.header__utilities {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 16px 24px;
}

.header__links {
  display: flex;
  gap: 24px;
}

.header__links a {
  font-size: 16px;
  transition: color 0.2s;
}

.header__links a:hover {
  color: var(--color-primary);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__action {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.header__action:hover {
  opacity: 0.7;
}

.header__action img {
  height: 28px;
  width: auto;
}

.header__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  white-space: nowrap;
}

.header__phone-icon {
  width: 23px;
  height: 23px;
}

.header__nav {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

.header__nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 60px;
}

.header__nav-link {
  font-size: 26px;
  font-weight: 500;
  transition: color 0.2s;
}

.header__nav-link:hover {
  color: var(--color-primary);
}

.header__nav-link--active {
  color: var(--color-primary);
}

/* Main */
.main {
  margin-top: 24px;
}

.section-title {
  margin: 0 0 16px;
  font-size: 26px;
  font-weight: 500;
}

/* Hero */
.hero {
  margin-bottom: 48px;
}

.hero__banner {
  position: relative;
  border-radius: var(--radius-banner);
  overflow: hidden;
  height: 354px;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__promo {
  position: absolute;
  top: 16px;
  left: 24px;
  max-width: 420px;
}

.hero__title {
  margin: 0 0 12px;
  padding: 8px 16px;
  background: var(--color-accent);
  border-radius: var(--radius-banner);
  font-family: var(--font-banner);
  font-size: 25px;
  font-weight: 500;
  color: var(--color-white);
  line-height: 1.2;
}

.hero__sets {
  padding: 12px 16px;
  background: var(--color-accent);
  border-radius: var(--radius-banner);
}

.hero__set {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
  font-family: var(--font-banner);
  font-size: 20px;
  font-weight: 500;
  color: var(--color-white);
}

.hero__set-old {
  text-decoration: line-through;
  opacity: 0.85;
}

.hero__set-price {
  font-weight: 500;
}

.hero__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.hero__dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--color-pill);
}

.hero__dot--active {
  background: var(--color-primary);
}

/* Add-ons */
.addons {
  margin-bottom: 48px;
}

.addons__list {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 59px;
}

.addon-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 214px;
}

.addon-card__name {
  margin: 0 0 8px;
  font-family: var(--font-secondary);
  font-size: 20px;
  font-weight: 400;
}

.addon-card__price {
  margin: 0;
  font-size: 17px;
  font-weight: 300;
}

.addon-card__add {
  flex-shrink: 0;
  transition: transform 0.2s;
}

.addon-card__add:hover {
  transform: scale(1.05);
}

.addon-card__add img {
  width: 45px;
  height: 40px;
}

/* Rolls */
.rolls {
  margin-bottom: 64px;
}

.rolls__filters {
  margin-bottom: 24px;
}

.rolls__filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.rolls__filter {
  padding: 7px 12px;
  min-height: 32px;
  background: var(--color-pill);
  border-radius: var(--radius-pill);
  font-family: var(--font-primary);
  font-size: 15px;
  color: var(--color-text);
  transition: background-color 0.2s;
}

.rolls__filter:hover {
  background: var(--color-pill-active);
}

.rolls__filter--active {
  background: var(--color-pill-active);
}

.rolls__category-title {
  margin: 0 0 23px;
  font-size: 23px;
  font-weight: 500;
}

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

.product-card {
  display: flex;
  flex-direction: column;
}

.product-card__image {
  width: 100%;
  height: 252px;
  object-fit: cover;
  border-radius: var(--radius-product);
  margin-bottom: 14px;
}

.product-card__name {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
}

.product-card__description {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  line-height: 1.4;
  flex-grow: 1;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-card__price {
  margin: 0;
  font-size: 17px;
  font-weight: 400;
}

.product-card__add {
  flex-shrink: 0;
  transition: transform 0.2s;
}

.product-card__add:hover {
  transform: scale(1.05);
}

.product-card__add img {
  width: 45px;
  height: 41px;
}

/* Footer */
.footer {
  background: var(--color-accent);
  padding: 60px 16px 48px;
  margin-top: 32px;
}

.footer__content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 32px;
}

.footer__heading {
  margin: 0 0 12px;
  font-size: 25px;
  font-weight: 600;
  color: var(--color-white);
}

.footer__heading--dark {
  color: var(--color-text);
}

.footer__text {
  margin: 0;
  font-size: 25px;
  font-weight: 600;
  color: var(--color-white);
}

.footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.footer__nav-list a {
  font-size: 25px;
  font-weight: 600;
  color: var(--color-white);
  transition: opacity 0.2s;
}

.footer__nav-list a:hover {
  opacity: 0.8;
}

.footer__social {
  display: flex;
  gap: 16px;
}

.footer__social a {
  display: flex;
  transition: opacity 0.2s;
}

.footer__social a:hover {
  opacity: 0.8;
}

.footer__social img {
  width: 36px;
  height: 36px;
}

.footer__payments {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.footer__payments img {
  height: 40px;
  width: auto;
}

.footer__phones {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__phones a {
  font-size: 25px;
  font-weight: 600;
  color: var(--color-white);
}

.footer__phones a:hover {
  text-decoration: underline;
}

.footer__logo {
  grid-column: 3 / 5;
  justify-self: end;
  align-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__logo-icon {
  position: relative;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
}

.footer__logo-circle {
  width: 110px;
  height: auto;
}

.footer__logo-photo {
  position: absolute;
  top: 8px;
  left: 4px;
  width: 86px;
  height: 86px;
  transform: rotate(49deg);
  object-fit: cover;
  border-radius: 66px;
}

.footer__logo-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__logo-trout {
  font-size: 25px;
  font-weight: 800;
  color: var(--color-footer-brand);
}

.footer__logo-sause {
  font-size: 23px;
  font-weight: 800;
  color: var(--color-text);
  margin-left: 28px;
}

/* Responsive */
@media (max-width: 1024px) {
  .header__top {
    grid-template-columns: 1fr 1fr;
  }

  .logo {
    grid-column: 1;
  }

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

  .header__utilities {
    grid-column: 2;
    justify-content: flex-end;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }

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

  .footer__logo {
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: 16px;
  }
}

@media (max-width: 640px) {
  .header__top {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .header__utilities {
    flex-direction: column;
    align-items: flex-start;
  }

  .header__nav-list {
    gap: 12px 24px;
  }

  .header__nav-link {
    font-size: 20px;
  }

  .hero__banner {
    height: 280px;
  }

  .hero__promo {
    left: 12px;
    right: 12px;
    max-width: none;
  }

  .hero__title {
    font-size: 18px;
  }

  .hero__set {
    font-size: 16px;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
  }

  .addons__list {
    flex-direction: column;
  }

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

  .product-card__image {
    height: 220px;
    border-radius: 45px;
  }

  .footer__content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__nav-list,
  .footer__phones {
    align-items: center;
  }

  .footer__social,
  .footer__payments {
    justify-content: center;
  }

  .footer__logo {
    flex-direction: column;
  }
}
