@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;900&family=Nunito:wght@700&display=swap');

:root {
  --color-primary: #415167;
  --color-light-primary: #edf0f5;
  --color-accent: #C7A17A;
  --color-text-main: #232C38;
  --color-text-light: #EDF0F5;
  --color-white: #FFFFFF;
  --color-bg-light: #F9FBFF;
  
  --font-main: 'Inter', system-ui, sans-serif;
  --font-heading: 'Montserrat', sans-serif;
  --font-display: 'Nunito', sans-serif;
  --font-body: 'Nunito', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--color-text-main);
  background-color: var(--color-white);
  line-height: 1.5;
  font-size: 16px;
  margin: 0;
}

ul {
  list-style: none;
}

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.btn--primary:hover {
  background-color: #b08d66;
  transform: translateY(-2px);
}

.btn--text {
  background: transparent;
  color: var(--color-text-main);
  font-weight: 600;
  text-transform: none;
}

.btn--text:hover {
  color: var(--color-accent);
}

.btn--round {
  background-color: var(--color-accent);
  color: var(--color-white);
  border-radius: 50px;
  padding: 8px 30px;
}

.btn--round:hover {
  background-color: #b08d66;
  box-shadow: 0 4px 10px rgba(199, 161, 122, 0.4);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header__subtitle {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.section-header__title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--color-primary);
  text-transform: uppercase;
}

.hero-wrapper {
  display: grid;
  margin-left: 20%;
  grid-template-columns: minmax(25%, 250px) 1fr 1.5fr;
  width: 80%;
  overflow: hidden;
  background-image: linear-gradient(90deg, var(--color-bg-light) 50%, var(--color-primary) 50%);
}

.hero-left {
  background-color: #fff;
  padding: 60px 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 10; 
}

.brand-logo img {
  width: 100px;
}

.hero-title-block {
  margin-bottom: 80px;
  width: 100%;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 15px;
}

.hero-title-composite {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 54px;
  line-height: 1.1;
  color: var(--color-primary);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title-composite span {
  display: inline-block;
}

.text-top {
  margin-bottom: 5px;
}

.text-middle {
  background-color: var(--color-accent);
  color: #fff;
  padding: 5px 15px;
  white-space: nowrap; 
  margin-right: -150px; 
  box-shadow: 10px 10px 30px rgba(0,0,0,0.1); 
  margin: 5px 0;
}

.text-bottom {
  margin-top: 5px;
}

.hero-center {
  position: relative;
  height: 100%;
  width: 100%;
  z-index: 1;
  background-color: #eee;
}

.hero-image {
  height: 100%;
  object-fit: cover; 
  object-position: center; 
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.play-btn::after {
  content: '▶';
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  color: var(--color-primary);
  font-size: 18px;
}

.hero-right {
  background-color: var(--color-primary);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 15;
}

.user-cart {
  position: absolute;
  top: 50px;
  left: 40px;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--color-accent);
  color: #fff;
  font-size: 11px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-nav__list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.main-nav__list li a {
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.main-nav__list li a:hover {
  color: var(--color-accent);
}

@media (max-width: 1024px) {
  .hero-wrapper {
    grid-template-columns: 1fr 1fr 250px;
    margin-left: 0;
    width: 100%;
  }
  .hero-left {
    padding: 40px;
  }
  .text-middle {
    margin-right: -50px;
  }
}

@media (max-width: 768px) {
  .hero-wrapper {
    display: block; 
    height: auto;
    margin-left: 0;
    width: 100%;
  }
  
  .hero-left {
    padding: 40px 20px;
  }
  
  .text-middle {
    margin-right: 0;
  }
  
  .hero-center {
    height: 300px;
  }
  
  .hero-image {
      width: 100%;
  }
  
  .hero-right {
    height: auto;
    padding: 40px 20px;
    align-items: center;
  }
  
  .user-cart {
    position: static;
    margin-bottom: 20px;
  }
}

.features {
  padding: 4rem 0;
  background-color: var(--color-bg-light);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .features__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  text-align: center;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
}

.feature-card__icon {
  height: 60px;
  margin-bottom: 1rem;
}

.feature-card__title {
  font-size: 1.25rem;
  color: var(--color-primary);
}

.feature-card__text {
  font-size: 0.9rem;
  color: #666;
}

.catalog {
  padding: 4rem 0;
  background-image: linear-gradient(90deg, var(--color-primary) 40%, var(--color-bg-light) 20%, var(--color-bg-light) 50%);
}

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .catalog__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.product-card {
  display: flex;
  background: var(--color-white);
  border: 1px solid #EAEAEA;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.product-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.product-card__figure {
  width: 40%;
  background-color: #F5F5F5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.product-card__image {
  max-height: 200px;
  object-fit: contain;
}

.product-card__content {
  width: 60%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-card__price {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.product-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.product-card__desc {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.product-card__actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.giftset {
  padding: 4rem 0;
  background-image: linear-gradient(90deg, var(--color-light-primary) 65%, var(--color-bg-light) 25%, var(--color-bg-light) 25%);
}

.gift-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #EAEAEA;
}

@media (min-width: 768px) {
  .gift-card {
    flex-direction: row;
    align-items: center;
  }
}

.gift-card__image-wrapper {
  flex: 1;
  padding: 2rem;
  display: flex;
  justify-content: center;
}

.gift-card__image {
  max-width: 100%;
}

.gift-card__content {
  flex: 1;
  padding: 3rem;
}

.gift-card__price {
  color: var(--color-accent);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.gift-card__title {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.gift-card__specs {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spec-item__text {
  display: flex;
  flex-direction: column;
}

.spec-item__label {
  font-size: 0.8rem;
  color: #888;
}

.spec-item__value {
  font-weight: 700;
  color: var(--color-primary);
}

.combos {
  padding: 4rem 0;
}

.combos__grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .combos__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.combo-card {
  background-color: var(--color-white);
  border: 1px solid #EAEAEA;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.combo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.combo-card__figure {
  padding: 2rem;
  background-color: #F9FBFF;
  display: flex;
  justify-content: center;
}

.combo-card__image {
  height: 200px;
  object-fit: contain;
}

.combo-card__content {
  padding: 2rem;
}

.combo-card__price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.combo-card__old-price {
  text-decoration: line-through;
  font-size: 0.9rem;
  color: #999;
  font-weight: 400;
  margin-left: 10px;
}

.combo-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.combo-card__actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-footer {
  background-color: #EDF0F5;
  padding: 2rem 0;
  text-align: center;
}

.page-footer__copyright {
  color: #666;
  font-size: 0.9rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle__line {
  width: 100%;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active .menu-toggle__line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.menu-toggle.active .menu-toggle__line:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active .menu-toggle__line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 998;
}
.nav-overlay.active {
  display: block;
}

.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scroll-top.visible {
  visibility: visible;
  opacity: 1;
}

@media (max-width: 768px) {
  
  .hero-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-left: 0;
    overflow: visible;
  }

  .hero-right {
    order: -1;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: auto;
    padding: 15px 20px;
    
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }

  .user-cart {
    position: static;
    margin: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-primary);
    padding: 80px 30px 30px;
    transition: right 0.4s ease;
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    display: block;
  }

  .main-nav.active {
    right: 0;
  }

  .main-nav__list {
    flex-direction: column;
    gap: 0;
  }

  .main-nav__list li a {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 18px;
  }

  .hero-left {
    order: 0;
    padding: 40px 20px;
    width: 100%;
  }

  .hero-center {
    order: 1;
    width: 100%;
    height: 300px;
  }
  
  .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero-wrapper {
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    overflow: visible;
  }

  .hero-right {
    position: fixed; 
    top: 0;
    left: 0;
    
    width: 100%;
    height: 70px;
    background-color: var(--color-primary);
    z-index: 9999;
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  }

  .catalog {
    background-image: none; 
    background-color: var(--color-bg-light);
    padding: 2rem 0;
  }

  .catalog .section-header__title,
  .catalog .section-header__subtitle {
    color: var(--color-primary); 
    text-align: center;
  }

  .product-card {
    flex-direction: column;
    width: 100%;
    height: auto;
  }

  .product-card__figure {
    width: 100%;
    padding: 20px;
  }

  .product-card__content {
    width: 100%;
    padding: 20px;
  }

  .product-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  .btn {
    width: 100%;
    text-align: center;
    margin-bottom: 5px;
  }
  
  .giftset {
    background-image: none;
    background-color: var(--color-bg-light);
  }
  
  .gift-card {
    flex-direction: column;
  }
  
  .gift-card__image-wrapper,
  .gift-card__content {
    padding: 20px;
  }

  .hero-title-composite {
    font-size: 32px;
    width: 100%;
    align-items: center;
  }

  .text-middle {
    margin-right: 0;
    font-size: 24px;
    white-space: normal; 
    padding: 5px 10px;
    text-align: center;
    width: fit-content;
    margin: 5px auto; 
  }

  .hero-left {
    padding: 20px;
    overflow: hidden;
  }
}