@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&family=Instrument+Serif:ital@0;1&display=swap");

:root {
  --bg-black: #000000;
  --block-bg: #ebf5df;
  --text-dark: #111;
  --font-sans: "Instrument Sans", sans-serif;
  --font-serif: "Instrument Serif", serif;

  --text-dark: #0f0f0f;
  --text-soft: #3a3a3a;
  --card-bg: #f1d89a;
  --section-bg: #f6f4ea;

  --base-100: #ebf5df;
  --base-200: #fec81d;
  --base-300: #0f0f0f;
}

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

img {
  width: 100%;
  height: 90%;
  object-fit: cover;
  display: block;
}

h1,
h2 {
  text-transform: uppercase;
  font-family: "Instrument Serif", serif;
  font-weight: 500;
  line-height: 0.9;
}

h1 {
  font-size: clamp(4rem, 7.5vw, 10rem);
}

h2 {
  font-size: clamp(2.5rem, 4.5vw, 5rem);
}

p {
  font-family: "Instrument Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial;
  font-size: 1.125rem;
  font-weight: 400;
}

.hero {
  position: relative;
  width: 100%;
  height: 175svh;
  color: var(--base-200);
  overflow: hidden;
  background: var(--base-100);
}

/* image layer */
.hero-img {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15,15,15,0.35), rgba(15,15,15,0.65));
  pointer-events: none;
  height: 80%;
}

/* header layer */
.hero-header {
  position: absolute;
  inset: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  z-index: 3;
  padding: 0 2rem;
}

.hero-header p {
  width: min(75%, 70ch);
}

/* canvas overlay */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 98%;
  pointer-events: none;
  z-index: 2;
}

/* bottom content layer */
.hero-content {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 90svh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 5;
  padding: 0 2rem 4rem;
}

.hero-content h2 {
  width: min(75%, 70ch);
  color: var(--base-300);
  background: rgba(235, 245, 223, 0.92);
  padding: 1.25rem 1.5rem;
  border-radius: 1.25rem;
  
  box-shadow: 0 18px 60px rgba(0,0,0,0.35);
}

/* word reveal spans */
.reveal-words .word {
  opacity: 0;
  display: inline-block;
  will-change: opacity, transform;
}

.about {
  position: relative;
  width: 100%;
  height: 100svh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--base-300);
  color: var(--base-100);
  padding: 0 2rem;
}

.about p {
  width: min(40%, 70ch);
  text-align: center;
  line-height: 1.7;
}

@media (max-width: 1000px) {
  .hero-content h2,
  .about p {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .hero-header {
    padding: 0 1rem;
  }

  .hero-header p {
    width: 100%;
    font-size: 0.95rem;
    line-height: 1.35;
  }

  .hero-content {
    height: 90svh;
    padding: 0 0.8rem 2rem;
  }

  .hero-content h2 {
    width: min(96%, 34ch);
    font-size: clamp(1.35rem, 5.8vw, 2rem);
    line-height: 1.05;
    padding: 1rem 1rem;
    border-radius: 0.95rem;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .reveal-words .word {
    display: inline;
  }
}
/* ====== base ====== */
body {
  font-family: var(--font-sans);
  color: var(--text-dark);
}

.usage {
  padding: 100px 0;
  background: var(--section-bg);
  overflow: hidden;
}

.usage__wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
}

/* ====== Title (Serif — красиво и премиально) ====== */
.usage__title {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(34px, 4vw, 56px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.usage__subtitle {
  margin: 0 0 36px;
  max-width: 52ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-soft);
  font-weight: 400;
}

/* ====== cards ====== */
.usage__cards {
  display: grid;
  gap: 22px;
  max-width: 580px;
}

.u-card {
  background: var(--card-bg);
  border-radius: 22px;
  padding: 28px 26px;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0,0,0,0.05);

  font-family: var(--font-sans);

  opacity: 0;
  filter: blur(3px);
  transition:
    transform 1100ms cubic-bezier(.2,.9,.2,1),
    opacity 1100ms ease,
    filter 1100ms ease;
  transition-delay: var(--d, 0ms);
}

/* Заголовки карточек — serif для контраста */
.u-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.1;
}

.u-card p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-soft);
}

/* хаотичное смещение */
.u-card {
  transform: translateX(var(--x, 0px));
}

.u-card.from-left {
  transform: translateX(calc(var(--x, 0px) - 70px));
}

.u-card.from-right {
  transform: translateX(calc(var(--x, 0px) + 70px));
}

/* появление */
.usage.is-inview .u-card {
  opacity: 1;
  filter: blur(0);
  transform: translateX(var(--x, 0px));
}

/* ====== cow ====== */
.usage__right {
  position: relative;
  min-height: 600px;
}

.usage__cow {
  position: absolute;
  top: 65%;
  right: -30%;
  transform: translateY(-50%) translateX(90px) scale(1.15);
  width: min(760px, 65vw);
  height: auto;
  object-fit: contain;

  opacity: 0;
  filter: blur(4px);

  transition:
    transform 1400ms cubic-bezier(.2,.9,.2,1),
    opacity 1400ms ease,
    filter 1400ms ease;
  transition-delay: 150ms;
}

.usage.is-inview .usage__cow {
  opacity: 1;
  filter: blur(0);
  transform: translateY(-50%) translateX(0) scale(1.2);
}

/* ====== mobile ====== */
@media (max-width: 900px) {
  .usage__wrap {
    grid-template-columns: 1fr;
  }

  .usage__right {
    display: none;
  }
}



@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&family=Instrument+Serif:ital@0;1&display=swap");

:root{
  --sans: "Instrument Sans", sans-serif;
  --serif:"Instrument Serif", serif;

  --bg: #f6f4ea;
  --card: #ffffff;
  --text: #0f0f0f;
  --muted:#6b6b6b;

  --yellow:#f2b21a;
  --yellow2:#e7a612;

  --radius: 26px;
  --shadow: 0 18px 40px rgba(0,0,0,.10);
  --shadow2: 0 22px 60px rgba(0,0,0,.18);
}

*{ box-sizing:border-box; }
body{ font-family: var(--sans); color: var(--text); }

.cats{
  padding: 100px 0 200px 0;
  background: var(--bg);
  overflow: hidden;
}

.cats__wrap{
  max-width: 1210px;
  margin: 0 auto;
  padding: 0 18px;
}

.cats__title{
  font-family: var(--serif);
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1;
  margin: 0 0 76px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ====== grid ====== */
.cats__grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}


/* ====== card like screenshot ====== */
.catcard{
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 22px 30px;
  min-height: 260px;
  border: 1px solid rgba(0,0,0,.06);
}

.catcard__imgWrap{
  height: 140px;
  display: grid;
  place-items: center;
  margin-top: -18px;   
  z-index: 123;    /* "вылезает" вверх */
}

.catcard__img{
  width: 100%;
  height: 100%;  
          /* чуть больше контейнера */
  object-fit: contain;
  transform: translateY(-50px);
  filter: drop-shadow(0 14px 22px rgba(0,0,0,.18));
    transition: transform .5s ease, background .25s ease, box-shadow .25s ease;

}

.catcard__body{
  padding-top: 80px;
}

.catcard__name{
  margin: 0 0 6px;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -.2px;
}

.catcard__sub{
  margin-right: 100px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

/* yellow circle button */
.catcard__go{
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 0;
  background: var(--yellow);
  cursor: pointer;
  box-shadow: 0 14px 26px rgba(242,178,26,.35);
  display: grid;
  place-items: center;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}

.catcard__go:hover{
  background: var(--yellow2);
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(242,178,26,.42);
}

.catcard__go svg{
  width: 18px;
  height: 18px;
}

.catcard:hover .catcard__img{
  transform: translateY(-60px) scale(1.1);
}



/* ===== modal ===== */
.cmodal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999;
}

.cmodal.is-open{ display:block; }

.cmodal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(10, 12, 10, .55);
  backdrop-filter: blur(7px);
}

.cmodal__dialog{
  position: relative;
  width: min(980px, calc(100vw - 26px));
  margin: 34px auto;
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow2);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);

  transform: translateY(12px);
  opacity: 0;
  animation: cmodalIn .45s ease forwards;
}

@keyframes cmodalIn{
  to { transform: translateY(0); opacity: 1; }
}

.cmodal__close{
  position:absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.92);
  cursor: pointer;
  font-size: 16px;
}

.cmodal__content{
  display:grid;
  grid-template-columns: 360px 1fr;
}

.cmodal__media{
  background: linear-gradient(135deg, #f6f4ea, #ffffff);
  padding: 26px;
  border-right: 1px solid rgba(0,0,0,.08);
}

.cmodal__media img{
  width: 100%;
  height: 290px;
  object-fit: contain;
  border-radius: 22px;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.20));
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
}

.cmodal__text{
  padding: 26px 26px 22px;
}

.cmodal__title{
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.05;
}

.cmodal__sub{
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.6;
}

.cmodal__block{
  background: #fbfaf6;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  padding: 14px 14px 12px;
  margin-bottom: 14px;
}

.cmodal__block h4{
  margin: 0 0 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .9px;
  opacity: .9;
}

.cmodal__block p{
  margin: 0;
  color: #2f2f2f;
  line-height: 1.65;
  font-size: 14px;
}

.cmodal__cols{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cmodal__block ul{
  margin: 0;
  padding-left: 18px;
  line-height: 1.55;
  font-size: 14px;
  color: #2f2f2f;
}

.cmodal__actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.btn{
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 650;
  font-size: 13px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn--primary{
  background: #1e4b39;
  color: #fff;
  box-shadow: 0 14px 26px rgba(30,75,57,.25);
}
.btn--primary:hover{ transform: translateY(-1px); }

.btn--ghost{
  background: transparent;
  color: #1e4b39;
  border: 1px solid rgba(30,75,57,.22);
}
.btn--ghost:hover{ transform: translateY(-1px); box-shadow: 0 14px 24px rgba(0,0,0,.10); }

/* responsive */
@media (max-width: 980px){
  .cats__grid{ grid-template-columns: 1fr; }
  .cmodal__content{ grid-template-columns: 1fr; }
  .cmodal__media{ border-right: 0; border-bottom: 1px solid rgba(0,0,0,.08); padding-top: 64px; }
  .cmodal__cols{ grid-template-columns: 1fr; }
}

@media (max-width: 640px){
  .cmodal__dialog{
    margin: 14px auto;
    width: min(980px, calc(100vw - 14px));
  }

  .cmodal__close{
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }
}

@media (min-width: 641px) and (max-width: 980px){
  .catcard{
    min-height: 270px;
    padding: 18px 18px 24px;
  }

  .catcard__imgWrap{
    height: 140px;
    margin-top: 0;
  }

  .catcard__img{
    width: 58%;
    height: 150px;
    transform: translateY(-10px);
  }

  .catcard:hover .catcard__img{
    transform: translateY(-14px) scale(1.03);
  }

  .catcard__body{
    padding-top: 18px;
    padding-right: 72px;
  }

  .catcard__name{
    font-size: 28px;
    line-height: 1.06;
  }

  .catcard__sub{
    margin-right: 0;
    max-width: 75%;
    font-size: 14px;
  }

  .catcard__go{
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 640px){
  .cats{
    padding: 72px 0 120px 0;
  }

  .cats__title{
    margin: 0 0 42px;
  }

  .catcard{
    padding: 16px 16px 22px;
    min-height: 210px;
  }

  .catcard__imgWrap{
    height: 108px;
    margin-top: 0;
  }

  .catcard__img{
    width: 78%;
    height: 112px;
    transform: translateY(-10px);
  }

  .catcard:hover .catcard__img{
    transform: translateY(-12px) scale(1.02);
  }

  .catcard__body{
    padding-top: 18px;
    padding-right: 56px;
  }

  .catcard__name{
    font-size: 22px;
    line-height: 1.08;
  }

  .catcard__sub{
    margin-right: 0;
    font-size: 12px;
    line-height: 1.35;
  }

  .catcard__go{
    width: 42px;
    height: 42px;
    right: 14px;
    bottom: 14px;
  }
}




/* ===== ABOUT SECTION ===== */

.aboutt {
  background: #1c4b3a;
  color: #ffffff;
  padding: 110px 0;
}

.about__wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: start;
}

/* ===== LEFT SIDE ===== */

.about__title {
  font-family: "Instrument Serif", serif;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  margin-bottom: 20px;
}

.about__text {
  font-family: "Instrument Sans", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  max-width: 520px;
  opacity: 0.9;
  margin-bottom: 35px;
}

/* ===== STATS ===== */
.stat{
  border-left: 2px solid #f2b21a;
  padding-left: 10px;
}
.about__stats {
  
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap:20px 20px;
}

.stat__num {
  font-family: "Instrument Serif", serif;
  font-size: 25px;
  color: #f2b21a;
  margin-bottom: 4px;
}

.stat__label {
  font-size: 12px;
  opacity: 0.8;
}

/* ===== RIGHT CARDS ===== */

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

.about__card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 22px 24px;
  backdrop-filter: blur(4px);
  transition: all .3s ease;
}

.about__card:hover {
  background: rgba(255,255,255,0.09);
  transform: translateY(-3px);
}

.about__card h3 {
  font-family: "Instrument Sans", sans-serif;
  font-weight: 600;
  margin: 0 0 8px;
  font-size: 16px;
}

.about__card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.85;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {
  .about__wrap {
    grid-template-columns: 1fr;
  }

  .about__stats {
    gap: 30px;
  }
}





/* ===== Section ===== */

.contact-section {
  background: var(--bg-black);
  padding: 100px 0;
}

.contact-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* ===== Left ===== */

.contact-brand {
  font-family: "Instrument Serif", serif;
  font-size: 48px;
  color: var(--block-bg);
  margin-bottom: 20px;
}

.contact-description {
  color: #ccc;
  font-size: 17px;
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 40px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ebf5df;
  font-size: 15px;
}

.info-icon {
  font-size: 18px;
}

/* ===== Right Card ===== */

.contact-card {
  background: var(--block-bg);
  padding: 40px;
  border-radius: 24px;
  color: var(--text-dark);
}

.contact-card h3 {
  font-family: "Instrument Serif", serif;
  font-size: 32px;
  margin-bottom: 15px;
}

.contact-card p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.contact-btn {
  display: inline-block;
  background: #111;
  color: #fff;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.contact-btn:hover {
  background: #333;
  transform: translateY(-2px);
}

/* ===== Responsive ===== */

@media (max-width: 900px) {
  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-brand {
    font-size: 36px;
  }
}

.info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #ebf5df;
  font-size: 15px;
}

.info-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(235,245,223,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ebf5df;
}

.info-icon svg {
  width: 18px;
  height: 18px;
}


/* ===== Scroll reveal for sections: products / about / contact ===== */
@media (prefers-reduced-motion: no-preference) {
  /* PRODUCTS */
  .cats .cats__title {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 900ms ease, transform 1100ms cubic-bezier(.2,.9,.2,1);
  }

  .cats .catcard {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 900ms ease, transform 1100ms cubic-bezier(.2,.9,.2,1);
    will-change: opacity, transform;
  }

  .cats.is-inview .cats__title {
    opacity: 1;
    transform: translateY(0);
  }

  .cats.is-inview .catcard {
    opacity: 1;
    transform: translateY(0);
  }

  .cats .catcard:nth-child(1) { transition-delay: 120ms; }
  .cats .catcard:nth-child(2) { transition-delay: 220ms; }
  .cats .catcard:nth-child(3) { transition-delay: 320ms; }
  .cats .catcard:nth-child(4) { transition-delay: 420ms; }

  /* ABOUT */
  .aboutt .about__left,
  .aboutt .about__right {
    opacity: 0;
    transition: opacity 900ms ease, transform 1200ms cubic-bezier(.2,.9,.2,1);
    will-change: opacity, transform;
  }

  .aboutt .about__left { transform: translateX(-28px); }
  .aboutt .about__right { transform: translateX(28px); }

  .aboutt.is-inview .about__left,
  .aboutt.is-inview .about__right {
    opacity: 1;
    transform: translateX(0);
  }

  .aboutt .about__card {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 900ms ease, transform 1100ms cubic-bezier(.2,.9,.2,1);
  }

  .aboutt.is-inview .about__card {
    opacity: 1;
    transform: translateY(0);
  }

  .aboutt .about__card:nth-child(1) { transition-delay: 180ms; }
  .aboutt .about__card:nth-child(2) { transition-delay: 300ms; }
  .aboutt .about__card:nth-child(3) { transition-delay: 420ms; }

  /* CONTACT */
  .contact-section .contact-left,
  .contact-section .contact-card {
    opacity: 0;
    transition: opacity 900ms ease, transform 1200ms cubic-bezier(.2,.9,.2,1);
    will-change: opacity, transform;
  }

  .contact-section .contact-left { transform: translateX(-26px); }
  .contact-section .contact-card { transform: translateX(26px); }

  .contact-section.is-inview .contact-left,
  .contact-section.is-inview .contact-card {
    opacity: 1;
    transform: translateX(0);
  }

  .contact-section .info-item {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 800ms ease, transform 900ms cubic-bezier(.2,.9,.2,1);
  }

  .contact-section.is-inview .info-item {
    opacity: 1;
    transform: translateY(0);
  }

  .contact-section .info-item:nth-child(1) { transition-delay: 140ms; }
  .contact-section .info-item:nth-child(2) { transition-delay: 240ms; }
  .contact-section .info-item:nth-child(3) { transition-delay: 340ms; }
}
