:root{
  --bg:#ffffff;
  --text:#0b1220;
  --muted:#5b6577;
  --border:#e7eaf0;
  --card:#ffffff;
  --shadow: 0 10px 30px rgba(11,18,32,.08);
  --radius:16px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a{ color: inherit; text-decoration:none; }
.container{
  width: min(1100px, 92vw);
  margin: 0 auto;
}

/* header */
.header{
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
}
.logo{ font-weight: 700; letter-spacing: .2px; }
.nav{ display:flex; gap:18px; }
.nav a{ color: var(--muted); font-weight: 500; }
.nav a:hover{ color: var(--text); }

/* hero */
.hero{
  padding: 56px 0 20px;
}
.hero__inner{
  display:flex;
  align-items:center;
  gap: 28px;
}
.hero__photo{
  flex: 0 0 220px;
  height: 220px;
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.hero__photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;      /* головне */
  object-position: center 30%;  /* можна left center якщо треба */
}

.hero__content{ flex: 1; }
.hero__kicker{
  color: var(--muted);
  margin: 0 0 10px;
  font-size: 14px;
}
.hero__title{
  margin: 0 0 10px;
  font-size: 44px;
  line-height: 1.1;
}
.hero__text{
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 62ch;
}
.hero__actions{ display:flex; gap:12px; }

/* buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-weight: 600;
}
.btn--primary{
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}
.btn--ghost{
  background: #fff;
}

/* sections */
.section{
  padding: 42px 0;
}
.section__title{
  margin: 0 0 12px;
  font-size: 26px;
}
.section__text{
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 75ch;
}
/* cards */
.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 6px 20px rgba(11,18,32,.05);
}
.card h3{
  margin: 0 0 8px;
  font-size: 16px;
}
.card p{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

/* chips */
.chips{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
}
.chip{
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 13px;
  background:#fff;
}

/* лівий блок: ВЛІВО, як “блок 2” */
.contacts__info{
  text-align: left;
}
.contacts__info h3{
  margin: 0 0 10px;
  font-size: 26px;
}
.contacts__info .muted{
  margin: 0 0 16px;
  color: var(--muted);
}

/* рядки-лінки з іконкою */
.contact-link{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

.contact-link:hover{
  background: rgba(0,0,0,0.04);
}

.contact-link .ico{
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(0,0,0,0.06);
}
.link--icon{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-weight:600;
  font-size:15px;
  transition: all .25s ease;
}

.link__icon{
  display:inline-flex;
  opacity:.7;
  transition: transform .25s ease, opacity .25s ease;
}

.link--icon:hover{
  transform: translateX(4px);
}

.link--icon:hover .link__icon{
  opacity:1;
  transform: translateY(-2px);
}
.link{
  color: var(--text);
  font-weight: 600;
}
.link:hover{ 
    text-decoration: underline; 
}
.form{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display:flex;
  flex-direction:column;
  gap: 12px;
}
label{
  display:flex;
  flex-direction:column;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
}
input, textarea{
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
}
.form__hint{
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

/* footer */
.footer{
    margin-top: 60px;
  border-top: 1px solid var(--border);
  padding: 18px 0;
  color: var(--muted);
}
.footer__inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

/* responsive */
@media (max-width: 768px){
  .hero{
    padding: 18px 0 12px;  /* було 56px */
  }
  .hero__inner{ 
    flex-direction: column; 
    align-items:flex-start; 
}
  .hero__photo{ 
    width: 100%;
    height: 320px;
  } 
  .hero__photo img{ 
    width: 100%;
    height: 100%;
    object-fit: cover; /* зберігаємо пропорції і обрізаємо зайве */
    object-position: center 35%; /* піднімаємо фото щоб було видно обличчя */
    display: block;
}

  .cards{ grid-template-columns: 1fr; }
  .contact{ grid-template-columns: 1fr; }
  .nav{ display:none; } /* якщо хочеш — зробимо бургер */
}
/* smooth UI */
*{
  scroll-behavior: smooth;
}

.btn, .card, .chip, .hero__photo, .nav a, input, textarea{
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease, color .2s ease, opacity .2s ease;
}

/* buttons */
.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(11,18,32,.10);
}
.btn:active{
  transform: translateY(0px);
  box-shadow: none;
}

/* cards */
.card:hover{
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(11,18,32,.10);
  border-color: rgba(11,18,32,.16);
}

/* chips */
.chip:hover{
  transform: translateY(-2px);
  border-color: rgba(11,18,32,.18);
}

/* photo */
.hero__photo:hover{
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(11,18,32,.12);
}

/* inputs focus */
input:focus, textarea:focus{
  outline: none;
  border-color: rgba(11,18,32,.35);
  box-shadow: 0 10px 24px rgba(11,18,32,.08);
}
/* reveal on scroll */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* для зменшення руху у користувачів з reduce motion */
@media (prefers-reduced-motion: reduce){
  .reveal{
    opacity: 1;
    transform: none;
    transition: none;
  }
}
.hero.reveal{
  transform: translateY(10px);
}
.btn--primary{
  position: relative;
  overflow: hidden;
}

.btn--primary::after{
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 120%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,.25) 50%,
    transparent 100%
  );
  transition: left .6s ease;
}

.btn--primary:hover::after{
  left: 100%;
}
.btn--primary{
  animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe{
  0%,100%{
    box-shadow: 0 0 0 rgba(11,18,32,0);
  }
  50%{
    box-shadow: 0 8px 24px rgba(11,18,32,.08);
  }
}
.btn--icon{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn__icon{
  transition: transform .25s ease;
}

.btn--icon:hover .btn__icon{
  transform: translateX(4px);
}
.services{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.service{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  background: #fff;
}

.service h3{
  margin: 0 0 10px;
  font-size: 16px;
}

.service p{
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.service:hover{
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(11,18,32,.08);
  border-color: rgba(11,18,32,.15);
}

/* mobile */
@media (max-width: 768px){
  .services{
    grid-template-columns: 1fr;
  }
}
.section__lead{
  max-width: 60ch;
  margin-top: 10px;
  margin-bottom: 28px;
  font-size: 16px;
  color: var(--muted);
}
.status{
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.status__dot{
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(34,197,94,.15);
}
/* --- burger --- */
.burger{
  display:none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background:#fff;
  align-items:center;
  justify-content:center;
  gap: 5px;
  flex-direction: column;
  cursor: pointer;
}

.burger span{
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}

/* --- mobile menu wrapper --- */
.mobile{
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
  z-index: 100;
}

.mobile.is-open{
  pointer-events: auto;
  opacity: 1;
}

.mobile__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(245, 242, 242, 0);
}

.mobile__panel{
  position: absolute;
  top: 10%;
  right: 10px;
  left: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(11,18,32,.18);
  padding: 14px;
  transform: translateY(-10px);
  transition: transform .25s ease;
}

.mobile.is-open .mobile__panel{
  transform: translateY(0);
}

.mobile__top{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 6px 4px 10px;
}

.mobile__title{
  font-weight: 700;
}

.mobile__close{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background:#fff;
  cursor:pointer;
}

.mobile__nav{
  display:flex;
  flex-direction: column;
  gap: 10px;
  padding: 6px 4px 10px;
}

.mobile__nav a{
  padding: 12px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-weight: 600;
  color: var(--text);
}

.mobile__nav a:hover{
  background: rgba(11,18,32,.04);
}

.mobile__cta{
  margin-top: 8px;
  width: 100%;
}

/* hide desktop nav / show burger on mobile */
@media (max-width: 768px){
  .nav--desktop{ display:none; }
  .burger{ display:flex; }
}

/* stop body scroll when menu open */
body.menu-open{
  overflow: hidden;
}

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

/* left block should look like card too (як блок 2) */
.contact__box{
  background: rgba(255,255,255,0.45);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  text-align: left;
}

/* right block card (у тебе вже є contacts__card, але підстрахуєм) */
.contacts__card{
  background: rgba(255,255,255,0.45);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

/* links block spacing */
.contact__links{
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.contact__grid{
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
  align-items: stretch; /* 🔥 важливо */
}

/* щоб обидві картки тягнулись */
.contact__box,
.contacts__card{
  display: flex;
  flex-direction: column;
  height: 100%;
}
.contact__form{
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.contact__form input,
.contact__form textarea{
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-family: inherit;
  background: #fff;
}

.contact__form textarea{
  min-height: 110px;
  resize: vertical;
}
.contact__form button{
  margin-top: 8px;
  padding: 14px;
  border-radius: 14px;
  border: none;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;

  background: linear-gradient(135deg, #0b1220, #1f2937);
  color: white;

  transition: all .25s ease;
}

.contact__form button:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,.2);
}
/* --- Для кого потрібен сайт: як "Що я можу" --- */
.audience .cards,
.audience__grid,
.forwho__grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.audience .card,
.audience__card,
.forwho__card{
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,.6);
  box-shadow: var(--shadow);
  padding: 18px;
}

@media (max-width: 768px){
  .audience .cards,
  .audience__grid,
  .forwho__grid{
    grid-template-columns: 1fr;
  }
}
/* Для кого потрібен сайт — 3 колонки */
#audience .cards{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 768px){
  #audience .cards{
    grid-template-columns: 1fr;
  }
}
/* Про мене — 3 блоки в ряд */
#about .cards{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 768px){
  #about .cards{
    grid-template-columns: 1fr;
  }
}
/* Mobile menu overlay */
.mobile{
  position: fixed;
  inset: 0;              /* top:0 right:0 bottom:0 left:0 */
  z-index: 999;
  display: none;         /* важливо: не займає місця */
}

/* коли меню відкрите */
.mobile.is-open{
  display: block;
}

.mobile__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.4);
}

.mobile__panel{
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(320px, 85vw);
  background: #fff;
  padding: 20px;
}
