/* Подключение современного шрифта */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Rock+Salt&display=swap');

/* Общие стили */
body {
    font-family: 'Inter', sans-serif;
    background-color: rgb(252, 252, 252);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  background: #fff; /* чтобы перекрывала */
}

h5.product-card-title {
    color: #202124;
}


.navigation {
    display: flex;
    gap: 30px;
}

.navigation__link {
    text-decoration: none;
    color: #333;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.3s, transform 0.2s;
}

.navigation__link:hover {
    color: #C64138;
    transform: scale(1.05);
}

.separator {
    width: 1px;
    background-color: #a0a0a0;
    height: 100%;
    margin: 1 16px;
}

.button {
    background-color: #fff;
    color: #C64138; }

.button--primary {
    background: #C64138;
    color: white;
    border: none;
    padding: 12px;
}


a.button.button--large {
    background: #C64138;
    color: white;
    padding: 15px 30px;
    font-size: 18px;
}


/* Головний банер */
.hero {
    padding-top: 150px;
    background: rgb(252, 252, 252);
    padding-bottom: 100px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.hero__content {
    color: #303030;
    padding: 10px 0;
    text-align: center;
}

.hero__title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Продукція */
#products.products{
    padding: 60px;
background: #daf2f5;
background: radial-gradient(circle, rgba(218, 242, 245, 1) 0%, rgba(177, 192, 222, 1) 49%);
}

h3.section-title {
    text-align: center;
    font-size: 28px;
    color: #2C1D27;
    font-weight: 700;
    margin-bottom: 35px;
    margin-top: 35px;
}

.product-list {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.product-card {
    width: 18%;
    height: 18%;
    text-align: center;
    padding-bottom: 10px;
    border-radius: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(104, 91, 91, 0.1);
    background: white;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.product-card img {
    width: 100%;
    height: 70%;
    border-top-right-radius: 20px;
    border-top-left-radius: 20px;
}

.product-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-top: 10px;
}

/* Про нас */
.about {
    background: #faf9f9;
    padding-top: 50px;
    padding-bottom: 90px;
    width: 100%;
}

.about__text {
    text-align: center;
    color: #3b3838;
    font-size: 18px;
    font-weight: 400;
}

/* Стили для выпадающего меню */
.dropdown-menu {
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dropdown-menu.show {
    display: block;
    opacity: 1;
    visibility: visible;
}
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Permanent+Marker&display=swap');

.about-headline {
  font-size: 40px;
  font-weight: 800;
  color: #C64138;
  text-shadow: 0 3px 14px rgba(198,65,56,0.16);
  letter-spacing: 2px;
  margin-bottom: 38px;
  margin-top: 38px;
}

.about-features {
  max-width: 950px;
  margin: 40px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 45px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 40px;
  filter: drop-shadow(0 4px 24px rgba(198,65,56,0.07));
}

.about-feature.right {
  flex-direction: row-reverse;
  text-align: right;
}

.about-circle {
  min-width: 90px;
  min-height: 90px;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle at 45% 40%, #ef4343 70%, #C64138 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: circle-pop 0.8s cubic-bezier(.57,1.53,.57,1) both;
}

.about-digit {
  font-family: 'Rock Salt', cursive;
  font-size: 60px;
  line-height: 1;
  font-weight: 700;
  color: #fff8f8;
  text-shadow: 2px 2px 1px rgb(83 18 14);
  letter-spacing: 2px;
  transform: rotate(-11deg);
  filter: blur(0.1px);
}

.about-title {
  font-size: 24px;
  font-weight: 700;
  color: #b62c1e;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(198,65,56,0.07);
  letter-spacing: 1px;
}
.about-desc {
  font-size: 15px;
  width: 400px;
  text-align: justify;
  color: #2d2320;
  font-weight: 500;
  text-shadow: 0 1px 6px rgba(200,80,70,0.04);
}

@keyframes circle-pop {
  from { transform: scale(0.3); opacity: 0;}
  to   { transform: scale(1); opacity: 1;}
}


/* =========================
   МОБИЛЬНЫЕ СТИЛИ (≤768px)
========================= */
@media (max-width: 768px){

  /* База текста и отступы по краям */
  body{
    font-size: 15px;
  }
  .container, .wrapper{ padding-left: 12px; padding-right: 12px; } /* если есть такие обёртки */

  /* Хедер фикс — даём месту контенту + компактнее */
  :root{ --header-height-mobile: 64px; }
  .header{ height: var(--header-height-mobile); }
  .hero{
    padding-top: 50px;
    padding-bottom: 48px;
  }

  /* Заголовки */
  .hero__title{
    line-height: 1.2;
    margin-bottom: 8px;
  }
  h3.section-title{
    font-size: clamp(18px, 5.2vw, 22px);
    margin: 22px 0 18px;
  }

  /* Блок «Продукція» */
  #products.products{
    padding: 18px 12px 26px;
    background: radial-gradient(circle, rgba(218,242,245,1) 0%, rgba(177,192,222,1) 64%);
  }

  /* Сетка карточек: 2 в ряд (на совсем маленьких — 1) */
  .product-list{
    display: grid;
    gap: 12px;
    justify-content: center; /* отключаем space-between */
    flex-wrap: initial;       /* grid сам справится */
  }
  @media (max-width: 380px){
    .product-list{ grid-template-columns: 1fr; }
  }

  .product-card{
    width: 300px;              /* убираем 18% */
    height: auto;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    overflow: hidden;
  }
  .product-card img{
    width: 60%%;
    height: 400px;
    aspect-ratio: 1/1;        /* квадрат для ровной сетки */
    object-fit: cover;
  }
  .product-card-title{
    font-size: clamp(14px, 3.8vw, 16px);
    margin: 8px 10px 6px;
  }

  /* Кнопки */
  .button--primary,
  a.button.button--large{
    padding: 12px 14px;
    font-size: 15px;
    border-radius: 12px;
  }

  /* Про нас */
  .about{
    padding: 28px 0 40px;
  }
  .about-headline{
    font-size: clamp(22px, 6.2vw, 28px);
    margin: 18px 12px 22px;
    letter-spacing: 1px;
    text-align: center;
  }
  .about-features{
    margin: 16px auto 0;
    gap: 22px;
    padding: 0 12px;
    max-width: 100%;
  }
  .about-feature{
    flex-direction: column;   /* стекаем элементы */
    align-items: center;
    gap: 14px;
    filter: drop-shadow(0 2px 14px rgba(198,65,56,0.06));
    text-align: center;
  }
  .about-feature.right{       /* убираем "зигзаг" на мобиле */
    flex-direction: column;
    text-align: center;
  }

  .about-circle{
    width: 72px; height: 72px;
    min-width: 72px; min-height: 72px;
  }
  .about-digit{
    font-size: 40px;
  }
  .about-title{
    font-size: clamp(16px, 4.6vw, 18px);
    margin-bottom: 8px;
  }
  .about-desc{
    width: auto;
    font-size: 14px;
    line-height: 1.45;
    text-align: left;         /* читабельнее на телефоне */
    max-width: 48ch;          /* комфортная длина строки */
  }

  /* Навигация: если нужна — делаем компактнее; если нет — можно скрыть */
  .navigation{
    gap: 16px;
  }
  .navigation__link{
    font-size: 14px;
  }

  /* Выпадающее меню — без анимационных лагов */
  .dropdown-menu{
    transition: opacity .2s ease, visibility .2s ease;
  }
}

