/* =========================================================
   АРТПРОЕКТ-К — статичная версия сайта
   ========================================================= */

:root{
  --green:        #65B32E;
  --green-dark:   #4C8A20;
  --green-light:  #EAF4E1;
  --yellow:       #FFC514;
  --cyan:         #00A0D2;
  --orange:       #FF9A2E;
  --navy:         #1A232C;
  --navy-2:       #232F3B;

  --text:         #23272B;
  --text-soft:    #5B6570;
  --bg:           #FFFFFF;
  --bg-alt:       #F4F7F3;
  --border:       #E3E8E3;

  --header-h: 84px;
  --header-h-mobile: 64px;

  --container: 1180px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(26,35,44,.08);
  --shadow-sm: 0 4px 14px rgba(26,35,44,.06);

  --font-head: "Montserrat", Arial, sans-serif;
  --font-body: "Roboto", Arial, sans-serif;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-h);
}
@media (max-width: 760px){
  body{ padding-top: var(--header-h-mobile); }
}

h1,h2,h3,h4{
  font-family: var(--font-head);
  color: var(--text);
  margin: 0 0 .5em;
  line-height: 1.25;
  font-weight: 700;
}
p{ margin: 0 0 1em; }
a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family: inherit; }

.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section{ padding: 88px 0; }
.section--alt{ background: var(--bg-alt); }
@media (max-width: 760px){
  .section{ padding: 56px 0; }
}

.eyebrow{
  display:flex;
  align-items:center;
  gap:10px;
  color: var(--text-soft);
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 14px;
}
.eyebrow::before{
  content:"";
  width: 34px;
  height: 2px;
  background: var(--green);
  display:inline-block;
}
.eyebrow .dot{ color: var(--yellow); font-size: 20px; line-height: 0; }

.section-title{ font-size: clamp(26px, 3.4vw, 38px); }
.section-title .accent{ color: var(--green); }

.section-head{ max-width: 720px; margin-bottom: 48px; }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn--primary{
  background: var(--green);
  color:#fff;
  box-shadow: 0 8px 20px rgba(101,179,46,.35);
}
.btn--primary:hover{ background: var(--green-dark); }
.btn--outline{
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}
.btn--outline:hover{ background: var(--text); color:#fff; }
.btn--sm{ padding: 10px 18px; font-size: 13px; }

/* ---------- header ---------- */
.site-header{
  position: fixed;
  top:0; left:0; right:0;
  height: var(--header-h);
  display:flex;
  align-items:center;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow .2s ease, height .2s ease;
}
.site-header.is-scrolled{
  box-shadow: var(--shadow);
}
@media (max-width: 760px){
  .site-header{ height: var(--header-h-mobile); }
}
.site-header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 24px;
}
.logo{
  display:flex;
  align-items:center;
  flex-shrink:0;
}
.logo img{ height: 40px; width:auto; }
@media (max-width:760px){
  .logo img{ height: 32px; }
}

.nav{ display:flex; align-items:center; gap: 6px; }
.nav a{
  padding: 10px 16px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  border-radius: 6px;
  transition: color .15s ease, background .15s ease;
}
.nav a:hover, .nav a.is-active{ color: var(--green); background: var(--green-light); }

.header-actions{ display:flex; align-items:center; gap: 14px; }
.header-phone{
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  display:flex;
  align-items:center;
  gap:8px;
}
.header-phone svg{ width:18px; height:18px; color: var(--green); flex-shrink:0; }

.burger{
  display:none;
  width: 42px; height:42px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background:#fff;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  flex-shrink:0;
}
.burger span, .burger::before, .burger::after{
  content:"";
  display:block;
  width: 20px; height:2px;
  background: var(--text);
  position:relative;
  transition: transform .2s ease, opacity .2s ease;
}
.burger::before{ transform: translateY(-6px); }
.burger::after{ transform: translateY(6px); }
.burger.is-open span{ opacity:0; }
.burger.is-open::before{ transform: rotate(45deg); }
.burger.is-open::after{ transform: rotate(-45deg) translateY(0); top:-2px; }

@media (max-width: 900px){
  .nav{
    position: fixed;
    top: var(--header-h-mobile);
    left:0; right:0;
    background:#fff;
    flex-direction:column;
    align-items:stretch;
    padding: 10px 20px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity:0;
    visibility:hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }
  .nav.is-open{ opacity:1; transform: translateY(0); visibility:visible; }
  .nav a{ padding: 14px 8px; border-bottom: 1px solid var(--border); border-radius:0; }
  .header-phone span{ display:none; }
  .burger{ display:flex; }
}

/* ---------- hero ---------- */
.hero{
  padding: 64px 0 72px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.98)),
    var(--bg-alt);
  overflow: hidden;
}
.hero .container{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items:center;
}
@media (max-width: 900px){
  .hero .container{ grid-template-columns: 1fr; }
  .hero{ padding: 40px 0 48px; }
}
.hero-title{
  font-size: clamp(30px, 4.4vw, 50px);
  margin-bottom: 18px;
}
.hero-title .line1{ color: var(--green); display:block; }
.hero-title .line2{ display:block; }
.hero-sub{
  font-size: 17px;
  color: var(--text-soft);
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-cta{ display:flex; gap: 16px; flex-wrap:wrap; }

.hero-media{
  position:relative;
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
}
.hero-media img{ width:100%; height:100%; object-fit:cover; }
.hero-media::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(160deg, rgba(101,179,46,.18), rgba(26,35,44,0) 55%);
  pointer-events:none;
}
.hero-media .blueprint{
  position:absolute;
  right:-40px; bottom:-40px;
  width: 62%;
  opacity:.14;
  filter: grayscale(1);
  pointer-events:none;
  transform: rotate(-4deg);
}

/* ---------- stats strip ---------- */
.stats{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}
@media (max-width: 760px){
  .stats{ grid-template-columns: repeat(2, 1fr); gap:18px; margin-top: 36px; }
}
.stat{
  background:#fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align:center;
  box-shadow: var(--shadow-sm);
}
.stat-num{
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(28px, 3vw, 38px);
  color: var(--green);
  display:flex;
  align-items:baseline;
  justify-content:center;
  gap:2px;
}
.stat-label{ color: var(--text-soft); font-size: 14px; margin-top: 6px; }

/* ---------- capability cards (Возможности) ---------- */
.cap-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 900px){ .cap-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .cap-grid{ grid-template-columns: 1fr; } }

.card{
  background:#fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover{ transform: translateY(-4px); box-shadow: var(--shadow); }

.icon-circle{
  width: 56px; height:56px;
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 18px;
  color:#fff;
}
.icon-circle svg{ width:26px; height:26px; }

.card h3{ font-size: 19px; margin-bottom: 10px; }
.card p{ color: var(--text-soft); font-size: 14.5px; margin:0; }

/* ---------- about ---------- */
.about{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items:center;
}
@media (max-width: 900px){ .about{ grid-template-columns: 1fr; gap: 32px; } }
.about-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  background: var(--green-light);
  color: var(--green-dark);
  font-weight:700;
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.06em;
  padding: 8px 16px;
  border-radius: 30px;
  margin-bottom: 18px;
}
.about ul{ margin: 24px 0 0; display:grid; gap:14px; }
.about ul li{ display:flex; gap:12px; align-items:flex-start; color:var(--text-soft); }
.about ul li svg{ width:20px; height:20px; color:var(--green); flex-shrink:0; margin-top:2px; }

/* ---------- services ---------- */
.services-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px){ .services-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px){ .services-grid{ grid-template-columns: 1fr; } }

/* ---------- portfolio ---------- */
.portfolio-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px){ .portfolio-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .portfolio-grid{ grid-template-columns: 1fr; } }

.portfolio-item{
  position:relative;
  border-radius: var(--radius);
  overflow:hidden;
  cursor: zoom-in;
  border: 1px solid var(--border);
  background:#000;
  display:block;
  width:100%;
  padding:0;
  text-align:left;
}
.portfolio-item img{
  width:100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform .35s ease, opacity .2s ease;
}
.portfolio-item:hover img{ transform: scale(1.06); opacity:.9; }
.portfolio-cap{
  position:absolute; left:0; right:0; bottom:0;
  padding: 14px 16px 12px;
  background: linear-gradient(180deg, rgba(26,35,44,0), rgba(15,20,25,.88));
  color:#fff;
  font-size: 13.5px;
  font-weight:600;
  line-height:1.35;
}
.portfolio-zoom{
  position:absolute; top:12px; right:12px;
  width:36px; height:36px;
  border-radius:50%;
  background: rgba(255,255,255,.92);
  display:flex; align-items:center; justify-content:center;
  color: var(--text);
}
.portfolio-zoom svg{ width:16px; height:16px; }

/* ---------- lightbox ---------- */
.lightbox{
  position: fixed; inset:0;
  background: rgba(15,20,25,.94);
  display:flex; align-items:center; justify-content:center;
  z-index: 2000;
  padding: 40px 20px;
  opacity:0; visibility:hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.lightbox.is-open{ opacity:1; visibility:visible; }
.lightbox img{
  max-width: 100%;
  max-height: 84vh;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox-cap{
  position:absolute; left:0; right:0; bottom:22px;
  text-align:center; color:#fff; font-size:14px; padding: 0 60px;
}
.lightbox-close, .lightbox-prev, .lightbox-next{
  position:absolute;
  width:46px; height:46px;
  border-radius:50%;
  background: rgba(255,255,255,.12);
  color:#fff;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
  border: 1px solid rgba(255,255,255,.25);
  transition: background .15s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover{ background: rgba(255,255,255,.25); }
.lightbox-close{ top:20px; right:20px; }
.lightbox-prev{ left:20px; top:50%; transform: translateY(-50%); }
.lightbox-next{ right:20px; top:50%; transform: translateY(-50%); }
.lightbox-prev svg, .lightbox-next svg, .lightbox-close svg{ width:20px; height:20px; }
@media (max-width:640px){
  .lightbox-prev, .lightbox-next{ width:40px; height:40px; }
}

/* ---------- contacts ---------- */
.contacts{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 900px){ .contacts{ grid-template-columns: 1fr; } }
.contact-list{ display:grid; gap:20px; }
.contact-row{
  display:flex;
  gap:16px;
  align-items:flex-start;
  background:#fff;
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.contact-row .icon-circle{ margin:0; width:44px; height:44px; flex-shrink:0; }
.contact-row .icon-circle svg{ width:20px; height:20px; }
.contact-row .label{ font-size:13px; color:var(--text-soft); text-transform:uppercase; letter-spacing:.04em; margin-bottom:2px;}
.contact-row .value{ font-weight:700; font-size:16px; }
.contact-row a.value:hover{ color: var(--green); }

.requisites{
  background: var(--navy);
  color:#cfd6dc;
  border-radius: var(--radius);
  padding: 28px;
  font-size: 14px;
}
.requisites h3{ color:#fff; font-size:17px; }
.requisites dl{ display:grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin-top:14px;}
.requisites dt{ color:#8b98a3; }
.requisites dd{ margin:0; color:#fff; }

/* ---------- footer ---------- */
.site-footer{
  background: var(--navy);
  color: #b9c2ca;
  padding: 64px 0 0;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
@media (max-width: 900px){
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .footer-grid{ grid-template-columns: 1fr; }
}
.footer-brand .logo img{ height: 36px; filter: brightness(0) invert(1); }
.footer-brand p{ margin-top:16px; color:#8b98a3; font-size:14px; max-width:280px; }

.footer-social{ display:flex; gap:12px; margin-top:20px; }
.footer-social a{
  width:42px; height:42px;
  border-radius:50%;
  background: rgba(255,255,255,.08);
  display:flex; align-items:center; justify-content:center;
  transition: background .15s ease, transform .15s ease;
}
.footer-social a:hover{ background: var(--green); transform: translateY(-2px); }
.footer-social svg{ width:20px; height:20px; color:#fff; }

.footer-title{
  color:#fff;
  font-family: var(--font-head);
  font-size:15px;
  text-transform:uppercase;
  letter-spacing:.05em;
  margin-bottom:20px;
}
.footer-links{ display:grid; gap:12px; }
.footer-links a{ color:#b9c2ca; font-size:14.5px; transition:color .15s ease; }
.footer-links a:hover{ color: var(--green); }

.footer-contacts{ display:grid; gap:14px; }
.footer-contacts a, .footer-contacts span{ color:#b9c2ca; font-size:14.5px; display:flex; gap:10px; }
.footer-contacts a:hover{ color: var(--green); }
.footer-contacts svg{ width:18px; height:18px; color: var(--green); flex-shrink:0; margin-top:2px; }

.footer-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  padding: 22px 0;
  font-size: 13px;
  color:#7c8994;
}

/* ---------- reveal-on-scroll ---------- */
.reveal{
  opacity:0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible{ opacity:1; transform:none; }

/* ---------- misc ---------- */
.back-to-top{
  position: fixed;
  right: 22px; bottom: 22px;
  width: 46px; height:46px;
  border-radius:50%;
  background: var(--navy);
  color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow: var(--shadow);
  opacity:0; visibility:hidden; transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease, background .15s ease;
  z-index: 900;
}
.back-to-top.is-visible{ opacity:1; visibility:visible; transform:none; }
.back-to-top:hover{ background: var(--green); }
.back-to-top svg{ width:20px; height:20px; }
