*{box-sizing:border-box}

:root{
  --bg:#f5f2ee;
  --soft:#f3efeb;
  --card:#ffffff;
  --line:#e8dfd6;
  --text:#372517;
  --muted:#6a6158;
  --gold:#c9963c;
  --shadow:0 8px 24px rgba(64,41,18,.08);
}

html{
  scroll-behavior:smooth;
}

html,body{
  margin:0;
  padding:0;
  background:var(--bg);
  overflow-x:hidden;
}

body{
  font-family:'Inter', Arial, sans-serif;
  color:var(--text);
}

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

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

.page{
  width:100%;
  max-width:1024px;
  margin:0 auto;
  background:var(--bg);
}

.header{
  background:#fff;
  border-bottom:1px solid #ebe3db;
  position:sticky;
  top:0;
  z-index:10;
}

.header-inner{
  height:76px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 30px;
}

.brand{
  font-size:20px;
  font-weight:700;
  display:flex;
  align-items:center;
  gap:8px;
}

.brand-logo{
  width:28px;
  height:28px;
  min-width:28px;
  max-width:28px;
  min-height:28px;
  max-height:28px;
  object-fit:contain;
  display:block;
}

.nav{
  display:flex;
  gap:28px;
}

/* HERO */

.hero{
  position:relative;
  min-height:640px;
  background:#ece7e2;
  overflow:visible;
}

.hero-left{
  position:absolute;
  left:0;
  top:0;
  width:642px;
  height:554px;
  overflow:hidden;
}

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

.hero-card{
  position:absolute;
  top:24px;
  right:54px;
  width:388px;
  min-height:540px;
  background:#fff;
  border-radius:18px;
  box-shadow:0 18px 38px rgba(63,42,19,.10);
  padding:34px 34px 80px;
}

.hero-card h1{
  margin:0 0 20px;
  font-size:34px;
}

.hero-card p{
  margin:0 0 15px;
  color:#5d534b;
  font-size:17px;
  line-height:1.6;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:206px;
  height:46px;
  margin-top:20px;
  border-radius:10px;
  background:linear-gradient(180deg,#dfb053,#ca973d);
  color:#fff;
  font-weight:700;
}

/* SECTIONS */

.products,
.group,
.contacts{
  padding:44px 27px 56px;
}

.cards-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

.card{
  background:#fff;
  border:1px solid #e8dfd6;
  border-radius:18px;
  padding:20px;
  text-align:center;
}

.group-icon{
  width:28px;
  height:28px;
  min-width:28px;
  max-width:28px;
  min-height:28px;
  max-height:28px;
  object-fit:contain;
  display:block;
}

.group-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
}

.group-card{
  background:#fff;
  border:1px solid #e8dfd6;
  border-radius:16px;
  overflow:hidden;
}

.group-photo{
  width:100%;
  height:175px;
  object-fit:cover;
}

.group-body{
  padding:18px;
}

.group-head{
  display:block;
  margin-bottom:12px;
}

.contacts-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

.contact-card{
  background:#fff;
  border:1px solid #e8dfd6;
  border-radius:16px;
  padding:20px;
}

/* TABLET */

@media (max-width:980px){
  .nav{
    display:none;
  }

  .hero{
    position:relative;
    height:auto;
    min-height:0;
    padding:24px;
    overflow:hidden;
  }

  .hero-left{
    position:relative;
    left:auto;
    top:auto;
    right:auto;
    width:100%;
    max-width:100%;
    height:320px;
    overflow:hidden;
  }

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

  .hero-card{
    position:static;
    top:auto;
    right:auto;
    left:auto;
    bottom:auto;
    transform:none;
    width:100%;
    max-width:100%;
    min-height:auto;
    margin:20px 0 0 0;
    padding:24px;
    box-sizing:border-box;
  }

  .cards-grid{
    grid-template-columns:1fr 1fr;
    gap:12px;
  }

  .card{
    min-height:auto;
    padding:14px;
  }

  .icon{
    width:42px;
    height:42px;
    margin:0 auto 10px;
  }

  .card h3{
    font-size:16px;
    margin:0 0 6px;
  }

  .card p{
    font-size:13px;
    line-height:1.4;
  }

  .group-grid,
  .contacts-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width:768px){
  html,
  body{
    overflow-x:hidden !important;
  }

  .page{
    width:100%;
    max-width:100%;
    padding-left:12px;
    padding-right:12px;
  }

  .hero{
    position:relative;
    display:block;
    height:auto;
    min-height:0;
    padding:16px 0 0;
    overflow:hidden;
    background:#ece7e2;
  }

  .hero-left{
    position:relative;
    left:auto;
    top:auto;
    right:auto;
    width:100%;
    max-width:100%;
    height:240px;
    overflow:hidden;
  }

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

  .hero-card{
    position:relative;
    top:auto;
    right:auto;
    left:auto;
    bottom:auto;
    transform:none;
    width:100%;
    max-width:100%;
    min-height:auto;
    margin:16px 0 0;
    padding:20px 18px 28px;
    box-sizing:border-box;
  }

  .cards-grid,
  .group-grid,
  .contacts-grid{
    grid-template-columns:1fr;
  }

  .card{
    min-height:auto;
    padding:14px;
  }

  .icon{
    width:42px;
    height:42px;
    margin:0 auto 10px;
  }

  .card h3{
    font-size:16px;
    margin:0 0 6px;
  }

  .card p{
    font-size:13px;
    line-height:1.4;
  }
}

@media (max-width:480px){
  .page{
    padding-left:10px;
    padding-right:10px;
  }

  .hero-left{
    height:220px;
  }

  .hero-card{
    padding:18px 16px 24px;
    margin-top:14px;
  }
}


/* === FINAL CLEAN HEADER BRAND === */
/* Прибирає будь-яку риску/дефіс біля назви компанії */
.header{
  background:#fff !important;
  border-bottom:0 !important;
  box-shadow:none !important;
}

.header-inner,
.page.header-inner{
  border:0 !important;
  box-shadow:none !important;
  outline:0 !important;
}

.brand{
  font-size:20px !important;
  font-weight:700 !important;
  letter-spacing:0 !important;
  color:#372517 !important;
  line-height:1 !important;
  display:flex !important;
  align-items:center !important;
  gap:0 !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  box-shadow:none !important;
  background:transparent !important;
  text-decoration:none !important;
}

.brand::before,
.brand::after,
.brand:before,
.brand:after,
.brand span::before,
.brand span::after,
.brand span:before,
.brand span:after,
.header::before,
.header::after,
.header-inner::before,
.header-inner::after,
.page.header-inner::before,
.page.header-inner::after{
  content:none !important;
  display:none !important;
  width:0 !important;
  height:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

@media (max-width:768px){
  .brand{
    font-size:18px !important;
    font-weight:700 !important;
    letter-spacing:0 !important;
    line-height:1 !important;
  }
}


/* === RESTORE MOBILE HERO WHEAT PHOTO === */
/* Desktop keeps assets/hero_photo.png. Mobile uses assets/hero_mobile.jpg. */
.hero-photo-mobile{
  display:none;
}

@media (min-width:769px){
  .hero-photo-desktop{
    display:block;
  }

  .hero-photo-mobile{
    display:none !important;
  }
}

@media (max-width:768px){
  .hero-photo-desktop{
    display:none !important;
  }

  .hero-photo-mobile{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    object-position:center center !important;
    transform:none !important;
  }

  .hero{
    overflow:hidden !important;
  }

  .hero-left{
    overflow:hidden !important;
    background:#ece7e2 !important;
  }
}


/* === PREMIUM CONTACT TEXT FINAL === */
.contact-card-info .contact-line{
  margin:6px 0;
  font-size:15px;
  color:#372517;
  line-height:1.5;
  font-weight:400;
}

.contact-card-info .contact-line a{
  color:#372517;
  text-decoration:none;
  font-weight:500;
}

.contact-card-info .contact-line a:hover{
  opacity:.72;
}


/* === FINAL DESKTOP HERO ABOUT CARD FIX === */
/* Тільки комп'ютерна версія від 981px.
   Мобільну версію НЕ чіпає. */
@media (min-width:981px){

  .hero{
    position:relative !important;
    height:600px !important;
    min-height:600px !important;
    padding:0 !important;
    overflow:hidden !important;
    background:#ece7e2 !important;
  }

  .hero-left{
    position:absolute !important;
    inset:0 !important;
    width:100% !important;
    height:100% !important;
    overflow:hidden !important;
  }

  .hero-photo,
  .hero-photo-desktop{
    display:block !important;
    width:100% !important;
    height:100% !important;
    max-width:none !important;
    object-fit:cover !important;
    object-position:center center !important;
    transform:none !important;
  }

  .hero-photo-mobile{
    display:none !important;
  }

  .hero-card{
    position:absolute !important;
    top:28px !important;
    right:28px !important;
    left:auto !important;
    bottom:auto !important;
    transform:none !important;

    width:390px !important;
    max-width:390px !important;
    min-height:0 !important;
    height:auto !important;

    padding:26px 28px 28px !important;
    margin:0 !important;
    box-sizing:border-box !important;

    background:rgba(255,255,255,.94) !important;
    border-radius:18px !important;
    box-shadow:0 18px 42px rgba(45,30,18,.16) !important;
    z-index:3 !important;
  }

  .hero-card h1{
    margin:0 0 14px !important;
    font-size:34px !important;
    line-height:1.05 !important;
    font-weight:700 !important;
    color:#372517 !important;
  }

  .hero-card p{
    margin:0 0 10px !important;
    font-size:14px !important;
    line-height:1.38 !important;
    color:#4f453d !important;
  }

  .hero-card .btn{
    height:38px !important;
    min-width:164px !important;
    margin-top:10px !important;
    padding:0 20px !important;
    font-size:13px !important;
    border-radius:9px !important;
  }
}

/* === FINAL DESKTOP ABOUT CARD POSITION FIX === */
/* Додати в САМИЙ КІНЕЦЬ поточного style.css.
   Працює тільки на desktop від 981px.
   Мобільну версію НЕ чіпає. */

@media (min-width:981px){

  .hero{
    height:600px !important;
    min-height:600px !important;
    overflow:hidden !important;
  }

  .hero-card{
    position:absolute !important;
    top:18px !important;
    right:28px !important;
    left:auto !important;
    bottom:auto !important;
    transform:none !important;

    width:390px !important;
    max-width:390px !important;
    min-height:0 !important;
    height:auto !important;

    padding:24px 28px 26px !important;
    margin:0 !important;
    box-sizing:border-box !important;

    z-index:5 !important;
  }

  .hero-card h1{
    font-size:32px !important;
    line-height:1.05 !important;
    margin:0 0 12px !important;
  }

  .hero-card p{
    font-size:13.5px !important;
    line-height:1.35 !important;
    margin:0 0 9px !important;
  }

  .hero-card .btn{
    height:38px !important;
    min-width:160px !important;
    margin-top:8px !important;
    padding:0 20px !important;
    font-size:13px !important;
  }
}


/* === STAGE 2 PRODUCT ICONS REAL FIX === */
/* Працює тільки від 769px і вище. Мобільну версію до 768px НЕ чіпає. */
@media (min-width:769px){
  #products .cards-grid .card > img.icon,
  #products .cards-grid .card img.icon,
  section.products .cards-grid .card > img.icon,
  section.products .cards-grid .card img.icon,
  .products .card > img.icon,
  .products .card img.icon{
    width:44px !important;
    height:44px !important;
    min-width:44px !important;
    max-width:44px !important;
    min-height:44px !important;
    max-height:44px !important;
    object-fit:contain !important;
    display:block !important;
    margin:0 auto 12px !important;
    transform:none !important;
  }
}

