:root {
  --primary-text: #030c01;
  --primary-bg: #ffffff;
  --secondary-bg: #f8f9f8;
  --primary-button-bg: linear-gradient(90deg, #e8e81c 0%, #42ed13 100%);
  --primary-button-hover-bg: linear-gradient(90deg, #f3f38d 0%, #a0f689 100%);
  --primary-button-active-bg: #4a4f46;
  --primary-button-disabled-bg: linear-gradient(
    90deg,
    #fbfbdb 0%,
    #ddfbd6 100%
  );
  --primary-button-text: #030c01;
  --font-primary: "Roboto", sans-serif;
  --font-heading: "Hanuman", serif;
  --size-hero: 36px;
  --size-h2: 48px;
  --size-h3: 40px;
  --size-text: 18px;
  --weight-hero: 400;
  --weight-h2: 400;
  --weight-h3: 400;
  --weight-text: 400;
  --lh-heading: 1.2;
  --lh-text: 1.5;
}

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

html {
  scroll-behavior: smooth;
}

html:has(body.menu-open) {
  overflow: hidden;
}

body {
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin-top: 0;
  margin-bottom: 0;
}

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

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

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

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

body {
  font-family: var(--font-primary);
  color: var(--primary-text);
  background-color: var(--primary-bg);
  font-size: var(--size-text);
  line-height: var(--lh-text);
  overflow-x: hidden;
}

.section-wrapper {
  padding: 64px 0;
}

.container {
  box-sizing: border-box;
  max-width: 375px;
  padding: 0 20px;
  margin: 0 auto;
}

.text {
  font-size: var(--size-text);
  line-height: var(--lh-text);
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 34px;
  line-height: var(--lh-heading);
  margin-bottom: 24px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  border-radius: 100px;
  border: none;
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: var(--lh-text);
  color: var(--primary-button-text);
  background: var(--primary-button-bg);
  padding: 8px 20px;
  transition:
    opacity 250ms cubic-bezier(0.4, 0, 0.2, 1),
    background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.primary-button:hover,
.primary-button:focus-visible {
  opacity: 0.5;
}

.primary-button:active {
  background: #4e544d;
  color: #ffffff;
  opacity: 1;
  transform: scale(0.98);
}

.primary-button:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

.general-link {
  transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.general-link:hover,
.general-link:focus-visible {
  opacity: 0.7;
}

/* Header */
.header {
  padding: 12px 0;
  position: relative;
  z-index: 20;
  background-color: var(--primary-bg);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo-link {
  display: flex;
}

.navigation-list {
  display: none;
}

.header-button {
  display: none;
}

.menu-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--primary-text);
}

.menu-button::before,
.menu-button::after {
  position: absolute;
  left: 14px;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background-color: currentColor;
  content: "";
  transition:
    top 250ms cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-button::before {
  top: 16px;
  box-shadow:
    0 7px 0 currentColor,
    0 14px 0 currentColor;
}

.menu-button::after {
  top: 23px;
  opacity: 0;
}

.menu-button.is-open::before {
  top: 23px;
  box-shadow: none;
  transform: rotate(45deg);
}

.menu-button.is-open::after {
  opacity: 1;
  transform: rotate(-45deg);
}

.menu-icon {
  display: none;
}

.menu-icon__burger,
.menu-icon__close {
  fill: currentColor;
}

.menu-icon__close {
  display: none;
}

.menu-button.is-open .menu-icon__close {
  display: inline;
}

.menu-button.is-open .menu-icon__burger {
  display: none;
}

/* Hero Section */
.hero-section {
  position: relative;
  z-index: 1;
  padding: 0;
}

.hero-section .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
}

.hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: calc(50% - 30px) center;
}

.hero-content {
  text-align: left;
  padding: 48px 0;
  width: 100%;
}

.hero-content .primary-button {
  max-width: 334px;
  width: 100%;
  padding: 10px 24px;
}

.hero-section .hero-title {
  font-family: var(--font-heading);
  font-size: var(--size-hero);
  font-weight: var(--weight-hero);
  line-height: var(--lh-heading);
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  max-width: 243px;
}

.hero-text {
  margin-bottom: 32px;
  max-width: 247px;
}

/* About Section */
.about-block {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-content-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-description {
  flex: 1;
}

.about-image {
  flex: 1;
}

.about-image-img {
  border-radius: 16px;
  width: 100%;
  height: 428px;
  object-fit: cover;
  object-position: center;
}

/* Bestsellers Section (Slider) */
.bestsellers-section .section-title {
  font-size: 32px;
  margin-bottom: 32px;
}

.bestsellers-slider-wrapper {
  position: relative;
  overflow: hidden;
  margin-bottom: 32px;
}

.bestsellers-list {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 24px;
}

.bestsellers-list::-webkit-scrollbar {
  display: none;
}

.bestsellers-item {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.bestsellers-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 16px;
}

.bestsellers-item-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  line-height: var(--lh-heading);
  margin-bottom: 0;
}

.bestsellers-item-text {
  font-size: 14px;
  line-height: var(--lh-text);
}

.bestsellers-item-price {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 20px;
  margin-top: 8px;
}

.bestsellers-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 53px;
}

.pagination-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #d9d9d9;
}

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

.pagination-buttons {
  display: flex;
  gap: 16px;
}

.slider-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: transparent;
  border: 1px solid #d9d9d9;
  cursor: pointer;
  color: var(--primary-text);
  transition:
    border-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
    background 250ms cubic-bezier(0.4, 0, 0.2, 1),
    background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
    color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.slider-btn:disabled {
  border-color: #f0f0f0;
  color: #d3d3d3;
  cursor: not-allowed;
}

.slider-btn:not(:disabled):hover,
.slider-btn:not(:disabled):focus-visible {
  background-color: rgba(66, 237, 19, 0.3);
  border-color: transparent;
  color: var(--primary-text);
}

.slider-btn:not(:disabled):active {
  background: var(--primary-button-bg);
  border-color: transparent;
  color: var(--primary-text);
}

/* Catalog (Bouquets) */
.bouquets-section .section-title {
  text-align: center;
  margin-bottom: 8px;
}

.title-text {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 400;
  line-height: var(--lh-heading);
  text-align: center;
  margin-bottom: 32px;
}

.bouquets-section .text {
  text-align: center;
}

.catalogue-img {
  width: 100%;
  height: 296px;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
}

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

.catalogue-item-title {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 600;
  line-height: var(--lh-heading);
  text-align: center;
  margin-bottom: 8px;
  margin-top: 16px;
}

.catalogue-item-price {
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 600;
  line-height: var(--lh-heading);
  text-align: center;
  margin-top: 8px;
}

.bouquets-section .primary-button {
  width: 100%;
}

/* Feedback Section */
.feedback-section .section-title {
  text-align: center;
  margin-bottom: 32px;
}

.feedback-slider-wrapper {
  position: relative;
  overflow: hidden;
}

.feedbacks-list {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 20px;
}

.feedbacks-list::-webkit-scrollbar {
  display: none;
}

.feedbacks-item {
  flex: 0 0 100%;
  scroll-snap-align: start;
  border: 1px solid #d9d9d9;
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feedbacks-item .text {
  margin-bottom: 59px;
}

.feedback-person {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 16px;
}

.feedback-pagination-buttons {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 32px;
}

/* Contacts Section */
.contacts-section picture {
  display: contents;
}

.contacts-connect {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.contacts-subtitle {
  font-size: 18px;
  line-height: var(--lh-text);
  margin-bottom: 24px;
}

.contacts-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
  font-style: normal;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  flex-shrink: 0;
}

.contact-label {
  font-family: var(--font-heading);
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.contact-link,
.contact-text {
  font-size: 16px;
  line-height: var(--lh-text);
  color: var(--primary-text);
}

.contact-link {
  text-decoration: underline;
  transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-link:hover {
  opacity: 0.7;
}

.contacts-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 16px;
}

/* Footer Section */
.footer-section {
  background-color: #eeee60;
  padding: 64px 0 32px;
  text-align: center;
}

.footer-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo-link {
  margin-bottom: 48px;
}

.footer-logo {
  width: 294px;
  height: auto;
}

.footer-navigation-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin-bottom: 48px;
}

.footer-navigation-list a {
  color: var(--primary-text);
  font-family: var(--font-primary);
  font-size: 16px;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
}

.social-icon {
  width: 40px;
  height: 40px;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background-color: rgba(3, 12, 1, 0.2);
  border: none;
  margin-bottom: 24px;
}

.footer-copyright {
  font-size: 14px;
  color: var(--primary-text);
  margin-bottom: 0;
}

/* Scroll to Top */
.scroll-to-top {
  position: fixed;
  bottom: 24px;
  right: 10px;
  width: 48px;
  height: 48px;
  background-color: transparent;
  border: 1px solid #d9d9d9;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary-text);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 250ms cubic-bezier(0.4, 0, 0.2, 1),
    visibility 250ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 250ms cubic-bezier(0.4, 0, 0.2, 1),
    border-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
    background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
    background 250ms cubic-bezier(0.4, 0, 0.2, 1),
    color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 99;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top.show:hover,
.scroll-to-top.show:focus-visible {
  background-color: rgba(66, 237, 19, 0.3);
  border-color: transparent;
  color: var(--primary-text);
  transform: translateY(-4px);
}

.scroll-to-top.show:active {
  background: var(--primary-button-bg);
  border-color: transparent;
  color: var(--primary-text);
  transform: translateY(0);
}

.scroll-to-top img {
  width: 24px;
  height: 24px;
}

/* Mobile Menu Overlay */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  transform: translateX(100%);
  height: 100vh;
  width: 100vw;
  z-index: 10;
  padding: 96px 0 24px;
  overflow-y: auto;
  background-color: var(--primary-bg);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu .container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.menu-navigation-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  font-size: 16px;
  margin-bottom: 24px;
  text-align: center;
}

.menu-action-button {
  width: 100%;
}

/* Tablet (768px) */
@media screen and (min-width: 768px) {
  .container {
    max-width: 768px;
    padding: 0 32px;
  }

  .hero-section {
    min-height: 669px;
  }

  .hero-section .hero-title,
  .hero-section .hero-text {
    max-width: 49%;
  }

  .hero-section .container {
    flex-direction: row;
    align-items: center;
    gap: 32px;
    padding-top: 104.5px;
  }

  .hero-content {
    flex: 1;
  }

  .header-button {
    display: inline-flex;
    margin-left: auto;
    margin-right: 24px;
  }

  body.menu-open .header-button {
    display: none;
  }

  .hero-content .primary-button {
    width: auto;
  }

  .hero-image {
    object-position: right center;
  }

  .about-block {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 60px;
  }

  .about-section .section-title {
    margin-bottom: 0px;
  }

  .about-content-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
  }

  .about-icon {
    margin-bottom: 40px;
  }

  .about-description {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .about-image {
    flex: 1;
  }

  .about-image-img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
  }

  .bestsellers-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 24px) / 2);
  }

  .catalogue-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .bouquets-section .primary-button {
    width: 340px;
    margin-left: 50%;
    transform: translateX(-50%);
  }

  .feedbacks-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 24px) / 2);
    gap: 24px;
  }

  .menu-action-button {
    display: none;
  }

  .contacts-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
    align-items: start;
  }

  .contacts-connect {
    grid-column: 1;
    grid-row: 1;
  }

  .contacts-section .section-title {
    grid-column: 1;
    grid-row: 2;
  }

  .contacts-subtitle {
    grid-column: 1;
    grid-row: 3;
    margin-bottom: 0;
  }

  .contacts-list {
    grid-column: 2;
    grid-row: 1 / span 3;
    margin-bottom: 0;
  }

  .contacts-image {
    grid-column: 1 / span 2;
    grid-row: 4;
    margin-top: 40px;
    height: 396px;
  }

  .footer-navigation-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    margin-bottom: 48px;
  }

  .footer-socials {
    gap: 12px;
  }

  .social-icon {
    width: 24px;
    height: 24px;
  }

  body.menu-open .header-button {
    display: none;
  }

  .menu-navigation-list {
    align-items: center;
  }
}

/* Desktop (1440px) */
@media screen and (min-width: 1440px) {
  .header {
    padding: 16px 0;
  }

  .section-wrapper {
    padding: 92px 0;
  }

  .container {
    max-width: 1440px;
    padding: 0 80px;
  }

  .section-title {
    font-size: var(--size-h2);
  }

  .hero-section {
    padding: 0;
  }

  .hero-section .container {
    gap: 64px;
    padding-top: 110.5px;
  }

  .hero-section .hero-title {
    font-size: 53px;
    line-height: 1.2;
    margin-bottom: 32px;
    max-width: 667px;
  }

  .hero-section .hero-text {
    max-width: 667px;
  }

  .hero-section .hero-content {
    padding: 80px 0;
  }

  .menu-button {
    display: none;
  }

  .navigation {
    display: flex;
    justify-content: center;
    flex-grow: 1;
  }

  .navigation-list {
    display: flex;
    gap: 32px;
    font-size: 16px;
  }

  .header-button {
    display: inline-flex;
    margin-right: 0;
  }

  .hero-section {
    min-height: 669px;
  }

  .bestsellers-section .section-title {
    font-size: var(--size-h2);
  }

  .bestsellers-list {
    grid-auto-columns: calc((100% - 48px) / 3);
  }

  .feedbacks-list {
    grid-auto-columns: calc((100% - 48px) / 3);
  }

  .catalogue-list {
    grid-template-columns: repeat(4, 1fr);
  }

  .contacts-image {
    height: 720px;
  }

  .footer-section {
    max-width: 1440px;
    margin: 0 auto;
  }

  .footer-section .container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .footer-logo-link {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0;
  }

  .footer-navigation-list {
    grid-column: 2;
    grid-row: 1;
    justify-content: center;
    margin-bottom: 0;
  }

  .footer-socials {
    margin-left: 200px;
    grid-column: 3;
    grid-row: 1;
    margin-bottom: 0;
  }

  .footer-divider {
    grid-column: 1 / span 3;
    grid-row: 2;
    margin-top: 80px;
  }

  .footer-copyright {
    grid-column: 1 / span 3;
    grid-row: 3;
    padding-bottom: 40px;
  }
}
