/* надо лого поменьше сделать */
@media (min-width: 1025px) {
  .logo img {
    height: 27px !important; /* 40 / 1.5 = ~27 */
    width: auto;
  }
}
/* Reset CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Базовые настройки */
:root {
  --primary-color: #2c5530;
  --secondary-color: #f0f0f0;
  --text-color: #333;
  --font-family: 'Roboto', sans-serif;
  --transition: all 0.3s ease;
}

body { font-family: var(--font-family);
   font-size: 16px; /* Минимум для MD */ 
   line-height: 1.5; 
   color: var(--text-color); }

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

/* Десктопное меню */
.header { background: white; 
  box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
  position: sticky; 
  top: 0; 
  z-index: 1000; }

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

/* Логотип */
.logo { display: flex; 
  align-items: center; 
  text-decoration: none; }

/* Основная навигация (десктоп) */
.nav__list { display: flex; 
  list-style: none; 
  gap: 30px; }

.nav__link {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  font-size: 17px; /* HIG рекомендация */
  padding: 13px 16px; /* мин отступ 44px */
  border-radius: 6px;
  transition: var(--transition);
}

.nav__link:hover, .nav__link.active { 
  background: var(--secondary-color); 
  color: var(--primary-color); 
}

/* Кнопки */
.btn { min-width: 44px; 
  min-height: 44px; 
  padding: 12px 24px; 
  border: none; 
  border-radius: 8px; 
  font-size: 16px; 
  font-weight: 500; 
  cursor: pointer; 
  transition: var(--transition); 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; }

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

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

.btn--primary:active { 
  transform: scale(0.98); 
}
/* Гамбургер-кнопка (скрыта на десктопе) */
.menu-toggle { display: none; 
  flex-direction: column; 
  justify-content: space-between; 
  width: 44px; height: 44px; 
  background: transparent; 
  border: none; 
  padding: 12px 10px; 
  cursor: pointer; 
  z-index: 1001; }

.menu-toggle__line { width: 100%; 
  height: 3px; 
  background: var(--text-color); 
  border-radius: 2px; 
  transition: var(--transition); }

/* Состояние открытого меню */
.menu-toggle.active .menu-toggle__line:nth-child(1) { 
  transform: rotate(45deg) translate(6px, 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(6px, -6px); 
}
/* CTA кнопка в шапке */
.header__cta { margin-left: 20px; }

/* Кнопка "Наверх" */
.scroll-top { position: fixed; 
  bottom: 30px; 
  right: 30px; 
  width: 56px; 
  height: 56px; 
  background: var(--primary-color); 
  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 { 
  opacity: 1; 
  visibility: visible; 
}

.scroll-top:hover { 
  background: #1e3a23; 
  transform: scale(1.1); 
}

.scroll-top:active { 
  transform: scale(0.95); 
}

/* Для мобильных устройств */
@media (max-width: 768px) {
  .scroll-top { 
    width: 52px; 
    height: 52px; 
    bottom: 20px; 
    right: 20px; 
    font-size: 22px; }
}

.has-custom-cursor {
  cursor: none;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

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

/*Atomic CSS*/

/*Typography*/
.text-center {
  text-align: center;
}
.text-lg {
  font-size: 1.25rem;
}
.text-muted {
  color: var(--muted);
}
.text-primary {
  color: var(--accent);
}

/* Spacing */
.mt-20 {
  margin-top: 20px;
}
.mb-20 {
  margin-bottom: 20px;
}
.p-10 {
  padding: 10px;
}
.gap-10 {
  gap: 10px;
}
.gap-20 {
  gap: 20px;
}

/*Flexbox*/
.flex {
  display: flex;
}
.justify-between {
  justify-content: space-between;
}
.justify-center {
  justify-content: center;
}
.items-center {
  align-items: center;
}

/*Buttons (унификация для толстых пальцев 44px)*/
.btn {
  min-width: 44px;
  min-height: 44px;
  padding: 12px 18px;
  border: none;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  position: relative;
  overflow: visible;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  color: #fff;
  transition: var(--transition);
}

.btn:hover {
  background-color: #1e3a22;
  transform: scale(1.05);
}

.btn:active {
  transform: scale(0.98);
}

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

/* Оверлей меню скрыт для нормальных компьютеров */
.nav-overlay {
  display: none;
}

/*Utility classes*/
.rounded {
  border-radius: var(--radius);
}
.shadow {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}
.list-none {
  list-style: none;
  padding: 0;
  margin: 0;
}
.border-top {
  border-top: 1px solid #ddd;
}

/* Interactive states */
.text-muted:hover {
  color: var(--accent);
}

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

input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}


/* Layout helpers */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px;
}

.logo {
  width: 72px;
  height: 72px;
  background: #e7efe9;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Playfair Display";
  color: var(--accent);
  font-size: 22px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 32px;
  align-items: center;
  margin-bottom: 36px;
}

.hero-left {
  background: #fff;
  padding: 36px;
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.hero-left h1 {
  font-family: "Playfair Display";
  font-size: 42px;
  margin: 16px 0;
}

.hero-left p {
  margin: 0 0 16px;
}

.hero-right img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
}

.product {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.product img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 12px;
}

.newsletter {
  display: flex;
  gap: 20px;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.about {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
}

.about img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

footer {
  margin-top: 40px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
}

/* semi-transparent circle */
#cursor-circle {
  position: fixed;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px; /* центрировать относительно указателя */
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.2s ease;
  will-change: transform;
  background: rgba(43, 100, 86, 0.5);
  border-radius: 50%;
}

.cursor-visible #cursor-circle {
  opacity: 1;
}

/* Grid content */
.content-grid {
  margin: 32px 0;
}

.content-grid__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.content-card {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.content-card__title {
  margin: 0 0 8px;
  font-weight: 700;
}

.content-card__text {
  margin: 0;
  color: var(--muted);
}

/* Masonry */
.masonry-grid {
  margin: 32px 0;
}

.masonry-grid__container {
  column-count: 3;
  column-gap: 24px;
}

.masonry-item {
  display: inline-block;
  width: 100%;
  margin: 0 0 16px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.masonry-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.masonry-item--short { min-height: 120px; }
.masonry-item--tall { min-height: 220px; }
.masonry-item--very-tall { min-height: 320px; }

/* Media queries Desktop First (1919, 1199, 719, 459, 319) */
@media (max-width: 1919px) {
}

@media (max-width: 1199px) {
  .hero {
    grid-template-columns: 1fr 360px;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .masonry-grid__container {
    column-count: 2;
  }
}

@media (max-width: 719px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-left {
    padding: 24px;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .masonry-grid__container {
    column-count: 1;
  }
  header nav,
  .navigation ul {
    flex-wrap: wrap;
  }
  .newsletter {
    flex-direction: column;
  }
  .about {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 459px) {
  .container {
    padding: 20px;
  }
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  header nav,
  .navigation ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .hero {
    gap: 16px;
  }
}

@media (max-width: 319px) {
  .btn {
    width: 100%;
  }
}
