@charset "utf-8";
/* Общие блоки всех сайтов: заголовки секций с линией, проекты-фотоплитки, карточки новостей и статей,
   отзывы, логотипы партнёров, появление блоков при прокрутке. Цвета — из tokens.css сайта. */

:root { --c-soft: #f6f7f9; --ease: cubic-bezier(.2, .7, .2, 1); }
.btn--outline { border: 1px solid var(--c-primary); color: var(--c-primary); background: transparent; }
.btn--outline:hover { background: var(--c-primary); color: #fff; }

/* ---------- заголовки секций ---------- */
.h-line { position: relative; padding-bottom: var(--sp-4); margin-bottom: var(--sp-5); font-weight: 500; }
.h-line::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 3px; background: var(--c-primary); }
.section__head .h-line { margin-bottom: 0; }
.h-line--light { color: #fff; }
.section--soft { background: var(--c-soft); }
.section-lead { color: var(--c-muted); max-width: 90ch; margin-bottom: var(--sp-6); }
.link-more { color: var(--c-primary); font-size: .95rem; }
.link-more--light { color: #9cc7ff; }

/* ---------- проекты: большие фотоплитки ---------- */
.projects-band { background: #10203a; }
.project-tiles { display: grid; gap: var(--sp-4); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: var(--sp-1); min-height: 260px; padding: var(--sp-5); border-radius: 6px; overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; background: #22304a; }
.project-tile:first-child { grid-column: span 2; grid-row: span 2; min-height: 536px; }
.project-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .9s var(--ease); }
.project-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 35%, rgb(6 14 30 / 85%)); }
.project-tile__meta { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: #9cc7ff; }
.project-tile__title { font-size: var(--fs-2); font-weight: 500; line-height: 1.3; }
.project-tile:first-child .project-tile__title { font-size: var(--fs-3); }
.project-tile:hover img { transform: scale(1.06); }
@media (max-width: 960px) { .project-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .project-tile:first-child { min-height: 340px; grid-row: auto; } }
@media (max-width: 560px) { .project-tiles { grid-template-columns: 1fr; } .project-tile:first-child { grid-column: auto; } }

/* ---------- новости, статьи ---------- */
.news-grid { display: grid; gap: var(--sp-5); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.news-card { display: flex; flex-direction: column; gap: var(--sp-2); color: var(--c-text); text-decoration: none; background: #fff; border: 1px solid var(--c-line); transition: box-shadow .25s, transform .25s var(--ease); }
.news-card:hover { box-shadow: 0 12px 36px rgb(20 26 43 / 12%); transform: translateY(-3px); }
.news-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-soft); }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-card:hover .news-card__img img { transform: scale(1.05); }
.news-card__tag { padding: 0 var(--sp-4); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-primary); }
.news-card__title { padding: 0 var(--sp-4); font-weight: 500; line-height: 1.35; }
.news-card__date { margin-top: auto; padding: 0 var(--sp-4) var(--sp-4); font-size: .82rem; color: var(--c-muted); }
.news-card__title:last-child { padding-bottom: var(--sp-4); }
@media (max-width: 960px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .news-grid { grid-template-columns: 1fr; } }

/* ---------- отзывы ---------- */
.reviews { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.review { margin: 0; padding: var(--sp-6); background: var(--c-soft); border-radius: 6px; display: flex; flex-direction: column; gap: var(--sp-5); position: relative; }
.review::before { content: "\201C"; position: absolute; top: 4px; right: var(--sp-5); font: 700 72px/1 Georgia, serif; color: var(--c-primary); opacity: .18; }
.review blockquote { margin: 0; color: #3d4454; line-height: 1.65; }
.review figcaption { display: flex; gap: var(--sp-4); align-items: center; margin-top: auto; }
.review img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; background: #fff; }
.review b { display: block; }
.review small { color: var(--c-muted); font-size: .85rem; }

/* ---------- партнёры ---------- */
.partners { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); align-items: center; }
.partners li { height: 72px; display: grid; place-items: center; padding: var(--sp-3); }
.partners img { max-height: 56px; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.partners li:hover img { filter: none; opacity: 1; }

/* ---------- появление блоков при прокрутке ---------- */
.js [data-reveal] > .container > *, .js [data-reveal] .photo-tile, .js [data-reveal] .catalog-card, .js [data-reveal] .news-card,
.js [data-reveal] .project-tile, .js [data-reveal] .review, .js [data-reveal] .advantages li {
  opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal].is-visible > .container > *, .js [data-reveal].is-visible .photo-tile, .js [data-reveal].is-visible .catalog-card,
.js [data-reveal].is-visible .news-card, .js [data-reveal].is-visible .project-tile, .js [data-reveal].is-visible .review,
.js [data-reveal].is-visible .advantages li { opacity: 1; transform: none; }


@media (prefers-reduced-motion: reduce) {
  .news-card *, .project-tile *, [data-reveal] * { transition: none !important; animation: none !important; }
  .js [data-reveal] * { opacity: 1 !important; transform: none !important; }
}

/* фото и документы страницы / новости */
.attach-gallery { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); margin: var(--sp-6) 0; }
.attach-gallery a { display: block; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--c-surface); }
.attach-gallery img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.attach-gallery a:hover img { transform: scale(1.04); }
.attach-docs { margin-top: var(--sp-5); }
