/* ================================================
   OSNOVA — style.css
   Палітра: #FAFAFA · #FFFFFF · #111 · #6B6B6B · #0F52BA
================================================ */

/* ---------- VARIABLES ---------- */
:root {
  --bg:       #FAFAFA;
  --bg2:      #F3F3F1;
  --white:    #FFFFFF;
  --ink:      #111111;
  --muted:    #6B6B6B;
  --faint:    #A0A0A0;
  --line:     #E4E4E4;
  --blue:     #0F52BA;
  --blue-dk:  #0A3D8F;
  --blue-lt:  rgba(15,82,186,0.09);
  --fh: 'DM Serif Display', Georgia, serif;
  --fb: 'Inter', system-ui, sans-serif;
  --rad:  6px;
  --radl: 14px;
  --ease: 0.3s cubic-bezier(.4,0,.2,1);
  --sh:   0 2px 16px rgba(0,0,0,0.06);
  --shl:  0 8px 40px rgba(0,0,0,0.11);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--fb);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }

/* ---------- LAYOUT ---------- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 40px; }
.section { padding: 100px 0; }

/* ---------- REVEAL ANIMATION ---------- */
.r {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.r-d1 { transition-delay: 0.10s; }
.r-d2 { transition-delay: 0.20s; }
.r-d3 { transition-delay: 0.30s; }
.r.on { opacity: 1; transform: translateY(0); }

/* ---------- SHARED TYPO ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
.kicker::before {
  content: '';
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--blue);
  flex-shrink: 0;
}
.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.label::before {
  content: '';
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--blue);
  flex-shrink: 0;
}
.section-title {
  font-family: var(--fh);
  font-size: clamp(30px, 3.8vw, 48px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 24px;
}
.section-title em { font-style: italic; color: var(--blue); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--rad);
  font-family: var(--fb);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  border: none;
  transition: var(--ease);
  white-space: nowrap;
  text-decoration: none;
}
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover {
  background: var(--blue-dk);
  box-shadow: 0 4px 20px rgba(15,82,186,.3);
  transform: translateY(-1px);
}
.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn--outline:hover { border-color: var(--blue); color: var(--blue); }
.btn--sm { padding: 9px 20px; font-size: 13px; }
.btn--full { width: 100%; justify-content: center; padding: 15px; font-size: 15px; }

/* ================================================
   HEADER
================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  background: #FAFAFA;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.header.scrolled {
  background: rgba(250,250,250,.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--line);
  padding: 14px 0;
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 0;
}
/* ---------- LOGO ---------- */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: auto;
  text-decoration: none;
}
.logo__img {
  height: 85px;
  width: auto;
  display: block;
  object-fit: contain;
}
.logo__img--wt {
  filter: invert(1) brightness(2);
}
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-right: 28px;
}
.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s;
}
.nav a:hover { color: var(--ink); }
.nav-cta { flex-shrink: 0; }
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: 16px;
  width: 32px;
  height: 32px;
}
.burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: var(--ease);
}

/* ================================================
   HERO
================================================ */
.hero {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding-top: 88px;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  padding: 72px 0 80px;
}
.hero__text { display: flex; flex-direction: column; justify-content: center; }
.hero__title {
  font-family: var(--fh);
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 400;
  line-height: 1.04;
  color: var(--ink);
  margin-bottom: 22px;
}
.hero__title em { font-style: italic; color: var(--blue); }
.hero__sub {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 430px;
  margin-bottom: 36px;
}
.hero__btns { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__media { position: relative; }
.hero__img-wrap {
  border-radius: var(--radl);
  overflow: hidden;
  height: 500px;
  box-shadow: var(--shl);
}

/* ================================================
   ABOUT
================================================ */
.about { background: var(--bg); }
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about__img {
  border-radius: var(--radl);
  overflow: hidden;
  height: 520px;
  box-shadow: var(--shl);
  flex-shrink: 0;
}
.about__text { display: flex; flex-direction: column; justify-content: center; }
.about__desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 32px;
}
.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  overflow: hidden;
  margin-bottom: 28px;
}
.astat {
  padding: 18px 12px;
  text-align: center;
  background: var(--white);
  border-right: 1px solid var(--line);
}
.astat:last-child { border-right: none; }
.astat strong {
  display: block;
  font-family: var(--fh);
  font-size: 26px;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
}
.astat span { font-size: 11px; font-weight: 600; color: var(--faint); letter-spacing: .05em; }
.about__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.about__list li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  color: var(--muted);
}
.about__list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

/* ================================================
   SERVICES
================================================ */
.services {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.services__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.services__head .section-title { margin-bottom: 0; }
.services__note {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  text-align: right;
  max-width: 200px;
}
.svc-list { display: flex; flex-direction: column; }
.svc-item {
  display: grid;
  grid-template-columns: 56px 240px 1fr 52px;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  transition: background var(--ease);
}
.svc-item:hover { background: var(--bg); }
.svc-item__num {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 32px;
  font-family: var(--fh);
  font-size: 13px;
  font-style: italic;
  color: var(--faint);
  border-right: 1px solid var(--line);
}
.svc-item__img {
  overflow: hidden;
  min-height: 200px;
  border-right: 1px solid var(--line);
}
.svc-item__img img { transition: transform .5s ease; }
.svc-item:hover .svc-item__img img { transform: scale(1.04); }
.svc-item__body {
  padding: 32px 36px;
}
.svc-item__body h3 {
  font-family: var(--fh);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 10px;
}
.svc-item__body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 18px;
  max-width: 480px;
}
.svc-item__tags { display: flex; flex-wrap: wrap; gap: 7px; }
.svc-item__tags span {
  font-size: 12px;
  font-weight: 500;
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 4px 12px;
  border-radius: 20px;
}
.svc-item__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--line);
  font-size: 18px;
  color: var(--faint);
  transition: color var(--ease), background var(--ease);
  text-decoration: none;
}
.svc-item:hover .svc-item__arrow {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

/* ================================================
   CASES
================================================ */
.cases { background: var(--bg); }
.cases__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 44px;
  gap: 24px;
  flex-wrap: wrap;
}
.cases__head .section-title { margin-bottom: 0; }
.cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.case {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radl);
  overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.case:hover {
  transform: translateY(-5px);
  box-shadow: var(--shl);
  border-color: transparent;
}
.case__img { height: 230px; overflow: hidden; }
.case__img img { transition: transform .5s ease; }
.case:hover .case__img img { transform: scale(1.04); }
.case__body { padding: 22px; }
.case__tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 9px;
}
.case__body h3 {
  font-family: var(--fh);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 7px;
  color: var(--ink);
}
.case__body p { font-size: 13px; color: var(--muted); margin-bottom: 14px; }

/* ================================================
   WHY
================================================ */
.why {
  background: var(--white);
  border-top: 1px solid var(--line);
}
.why__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: start;
}
.why__left { display: flex; flex-direction: column; }
.why__img {
  margin-top: 32px;
  border-radius: var(--radl);
  overflow: hidden;
  height: 440px;
  box-shadow: var(--shl);
}
.why__points { padding-top: 64px; }
.wpt {
  display: flex;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.wpt:first-child { padding-top: 0; }
.wpt:last-child { border-bottom: none; }
.wpt__n {
  font-family: var(--fh);
  font-size: 13px;
  font-style: italic;
  color: var(--faint);
  flex-shrink: 0;
  padding-top: 1px;
  width: 26px;
}
.wpt h4 { font-size: 14px; font-weight: 600; margin-bottom: 5px; color: var(--ink); }
.wpt p { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ================================================
   CONTACT
================================================ */
.contact { background: var(--bg); border-top: 1px solid var(--line); }
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.contact__left { display: flex; flex-direction: column; }
.contact__right { display: flex; flex-direction: column; }
.contact__desc { font-size: 15px; color: var(--muted); line-height: 1.8; margin-bottom: 30px; }
.contact__links { display: flex; flex-direction: column; gap: 10px; }
.contact__links a {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 22px;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s;
}
.contact__links a::before { content: '→'; color: var(--blue); font-size: 13px; }
.contact__links a:hover { color: var(--blue); }

.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radl);
  padding: 36px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__group { margin-bottom: 14px; }
.form__group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 6px;
}
.form__group input,
.form__group select,
.form__group textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  color: var(--ink);
  font-family: var(--fb);
  font-size: 14px;
  padding: 11px 13px;
  outline: none;
  appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.form__group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230F52BA' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  cursor: pointer;
}
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(15,82,186,.1);
  background: var(--white);
}
.form__group input::placeholder,
.form__group textarea::placeholder { color: #ccc; }
.form__group textarea { resize: vertical; }
.form__note {
  margin-top: 11px;
  font-size: 11px;
  color: var(--faint);
  text-align: center;
}
.form__note a { color: var(--blue); text-decoration: underline; }

.form__success {
  display: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radl);
  padding: 60px 36px;
  text-align: center;
}
.form__success.on { display: block; }
.form.hide { display: none; }
.form__success-icon {
  width: 52px;
  height: 52px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.form__success h3 {
  font-family: var(--fh);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 8px;
}
.form__success p { font-size: 14px; color: var(--muted); }

/* ================================================
   FOOTER
================================================ */
.footer { background: #111; padding: 60px 0 0; }
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.logo--footer .logo__img {
  height: 77px;
  filter: invert(1) brightness(10);
}
.footer__brand p {
  font-size: 12px;
  color: rgba(255,255,255,.35);
  line-height: 1.7;
  margin-top: 14px;
}
.footer__col { display: flex; flex-direction: column; gap: 9px; }
.footer__col strong {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 4px;
}
.footer__col a { font-size: 15px; color: rgba(255,255,255,.45); transition: color .2s; }
.footer__col a:hover { color: #fff; }
.footer__tg { display: flex; justify-content: flex-end; align-items: center; }
.footer__tg-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--blue);
  color: #fff;
  font-family: var(--fb);
  font-size: 16px;
  font-weight: 600;
  padding: 18px 32px;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 24px rgba(15,82,186,.35);
  transition: background .25s, transform .25s, box-shadow .25s;
}
.footer__tg-btn:hover {
  background: var(--blue-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(15,82,186,.45);
}
.footer__bottom { padding: 20px 0; }
.footer__bottom p {
  font-size: 12px;
  color: rgba(255,255,255,.25);
  text-align: center;
}

/* ================================================
   RESPONSIVE
================================================ */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__media { display: none; }
  .about__inner { grid-template-columns: 1fr; gap: 40px; }
  .about__img { height: 360px; }
  .svc-item { grid-template-columns: 48px 1fr 48px; }
  .svc-item__img { display: none; }
  .why__inner { grid-template-columns: 1fr; gap: 40px; }
  .why__img { display: none; }
  .why__points { padding-top: 0; }
  .contact__inner { grid-template-columns: 1fr; gap: 48px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__tg { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 768px) {
  .section { padding: 68px 0; }
  .container { padding: 0 20px; }
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 999;
    align-items: center;
    justify-content: center;
    gap: 28px;
  }
  .nav.open a { font-size: 22px; font-weight: 600; }
  .nav-cta { display: none; }
  .burger { display: flex; }
  .burger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }
  .services__head { flex-direction: column; align-items: flex-start; }
  .services__note { text-align: left; max-width: 100%; }
  .svc-item { grid-template-columns: 1fr; }
  .svc-item__num { display: none; }
  .svc-item__arrow { display: none; }
  .svc-item__body { padding: 24px 20px; }
  .cases__grid { grid-template-columns: 1fr; }
  .cases__head { flex-direction: column; align-items: flex-start; }
  .form__row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__brand { display: block; }
  .footer__tg { justify-content: flex-start; }
  .footer__tg-btn { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .hero__title { font-size: 38px; }
  .hero__btns { flex-direction: column; }
  .hero__btns .btn { width: 100%; justify-content: center; }
  .form { padding: 24px 18px; }
}
