/*
Theme Name: ArAr Studio
Theme URI: https://ararstudio.ru
Author: Архитектурная студия АрАр
Description: Тема портфолио архитектурной студии АрАр: проекты, галереи, 3D-прогулки, заявки.
Version: 1.1.7
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: ararstudio
License: Proprietary
*/

@font-face {
	font-family: 'Onest';
	font-style: normal;
	font-weight: 300 600;
	font-display: swap;
	src: url('assets/fonts/onest-cyrillic.woff2') format('woff2');
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: 'Onest';
	font-style: normal;
	font-weight: 300 600;
	font-display: swap;
	src: url('assets/fonts/onest-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--ink: #151515;
	--bg: #F3F2EF;
	--sand: #E6E4DE;
	--stone: #E2E0DA;
	--tuff: #A65A3A;
	--apricot: #D9976F;
	--muted: #5C5C58;
	--text-2: #3F3F3C;
	--line: #D6D3CC;
	--line-2: #C9C6BE;
	--radius: 6px;
	--gutter: 48px;
	--max: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: 'Onest', system-ui, sans-serif;
	font-size: 17px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; transition: color .15s; }
a:hover { color: var(--tuff); }
h1, h2, h3 { font-weight: 400; letter-spacing: -0.02em; margin: 0; line-height: 1.1; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--tuff); outline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.eyebrow { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--tuff); }
.muted { color: var(--muted); }
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	font: inherit; font-size: 16px; font-weight: 500; padding: 16px 30px; border-radius: 999px;
	border: 1px solid var(--ink); background: var(--ink); color: var(--bg); cursor: pointer;
	transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--tuff); border-color: var(--tuff); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--light { background: var(--bg); color: var(--ink); border-color: var(--bg); }

/* ---------- header ---------- */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 26px; padding-bottom: 26px; }
.brand { display: flex; align-items: center; gap: 16px; color: var(--ink); }
.brand svg { height: 34px; width: auto; color: var(--ink); }
.brand__caption { font-size: 12px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; line-height: 1.3; border-left: 1px solid var(--line-2); padding-left: 16px; }
.nav { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.nav a.is-current { color: var(--tuff); }
.nav .btn { padding: 12px 22px; font-size: 15px; font-weight: 400; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--ink); }

/* ---------- hero ---------- */
.hero { position: relative; height: min(760px, 78vh); min-height: 460px; border-radius: var(--radius); overflow: hidden; background: var(--stone); }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 140px 48px 44px;
	background: linear-gradient(to top, rgba(10,10,10,.72), rgba(10,10,10,0));
	color: #fff; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px;
}
.hero__title { font-size: clamp(36px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.03em; max-width: 820px; }
.hero__caption { color: #fff; font-size: 15px; display: flex; flex-direction: column; gap: 4px; text-align: right; }
.hero__caption span:first-child { opacity: .8; }
.hero__caption:hover { color: var(--apricot); }

/* ---------- intro & stats ---------- */
.intro { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 64px; padding-bottom: 24px; }
.intro__lead { flex: 3 1 480px; max-width: 760px; font-size: 22px; line-height: 1.4; font-weight: 300; }
.stat { flex: 1 1 160px; display: flex; flex-direction: column; gap: 6px; }
.stat__value { font-size: 44px; font-weight: 300; line-height: 1.1; }
.stat__label { font-size: 14px; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding-top: 96px; padding-bottom: 96px; }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 32px; }
.section__title { font-size: 40px; }
.page-title { font-size: clamp(44px, 6vw, 72px); letter-spacing: -0.03em; line-height: 1; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 32px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid--projects { grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr)); gap: 48px 32px; }
.card { display: flex; flex-direction: column; gap: 14px; color: var(--ink); }
.card__media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--stone); aspect-ratio: 4 / 3; }
.card--tall .card__media { aspect-ratio: 3 / 4; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card__media img { transform: scale(1.03); }
.card__badge { position: absolute; left: 14px; top: 14px; background: rgba(243,242,239,.92); padding: 6px 12px; border-radius: 999px; font-size: 13px; color: var(--ink); }
.card__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; }
.card__title { font-size: 19px; font-weight: 500; }
.card__meta { font-size: 15px; color: var(--muted); }
.card:hover .card__title { color: var(--tuff); }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip { font-size: 15px; padding: 11px 20px; border-radius: 999px; border: 1px solid #A9A69E; color: var(--ink); }
.chip:hover { border-color: var(--tuff); color: var(--tuff); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* ---------- dark band (3D) ---------- */
.band-dark { background: var(--ink); color: var(--bg); }
.band-dark .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 96px; padding-bottom: 96px; }
.band-dark .eyebrow { color: var(--apricot); }
.band-dark__text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 24px; }
.band-dark__text h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.05; }
.band-dark__text p { font-size: 18px; color: #CFCBC2; }
.band-dark__media { flex: 1.4 1 480px; position: relative; border-radius: var(--radius); overflow: hidden; }
.band-dark__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.pills { position: absolute; left: 20px; bottom: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.pills span { background: rgba(21,21,21,.82); padding: 10px 16px; border-radius: 999px; font-size: 14px; }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 32px; margin-top: 40px; }
.step { border-top: 1px solid var(--ink); padding-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.step__num { font-size: 14px; color: var(--tuff); }
.step h3 { font-size: 22px; font-weight: 500; letter-spacing: 0; }
.step p { font-size: 16px; color: var(--text-2); }

/* ---------- about ---------- */
.about { background: var(--sand); }
.about .wrap { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; padding-top: 96px; padding-bottom: 96px; }
.about__mark { flex: 1 1 420px; display: flex; flex-direction: column; gap: 28px; }
.about__mark svg { width: min(372px, 100%); height: auto; color: var(--ink); }
.about__mark p { font-size: 16px; color: var(--text-2); max-width: 460px; }
.about__body { flex: 1.2 1 480px; }
.meaning { display: flex; gap: 24px; padding: 20px 0; border-top: 1px solid var(--line-2); }
.meaning:first-child { border-top-color: var(--ink); }
.meaning dt { flex: 0 0 140px; font-size: 22px; font-weight: 500; }
.meaning dd { margin: 0; font-size: 17px; color: var(--text-2); }
.about__text { margin-top: 28px; font-size: 20px; line-height: 1.55; font-weight: 300; }
.about__text p + p { margin-top: 14px; }

/* ---------- contact ---------- */
.contact-box { background: var(--sand); border-radius: var(--radius); padding: 56px; display: flex; flex-wrap: wrap; gap: 48px; }
.contact-box__info { flex: 1 1 340px; display: flex; flex-direction: column; gap: 16px; }
.contact-box__phone { font-size: 28px; font-weight: 500; }
.form { flex: 1.3 1 420px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text-2); }
.form .full { grid-column: 1 / -1; }
.form input, .form textarea {
	font: inherit; font-size: 16px; padding: 14px; border: 1px solid #A9A69E; border-radius: 4px; background: var(--bg); color: var(--ink);
}
.form input:focus, .form textarea:focus { border-color: var(--tuff); outline: none; }
.form .btn { justify-self: start; }
.form .hp { position: absolute; left: -9999px; }
.notice { grid-column: 1 / -1; padding: 14px 18px; border-radius: 4px; background: #fff; border-left: 3px solid var(--tuff); }
.consent { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }

/* ---------- single project ---------- */
.project-head { display: flex; flex-direction: column; gap: 18px; padding-top: 24px; padding-bottom: 40px; }
.project-hero img { width: 100%; height: min(720px, 70vh); object-fit: cover; border-radius: var(--radius); }
.facts { margin: 48px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 24px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); padding: 24px 0; }
.facts div { display: flex; flex-direction: column; gap: 6px; }
.facts dt { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.facts dd { margin: 0; font-size: 18px; }
.project-body { display: flex; flex-wrap: wrap; gap: 64px; padding-top: 64px; padding-bottom: 64px; }
.actions { flex: 1 1 280px; display: flex; flex-direction: column; gap: 12px; }
.action { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border: 1px solid var(--ink); border-radius: 4px; font-size: 16px; }
.action--primary { background: var(--ink); color: var(--bg); font-weight: 500; }
.action--primary:hover { background: var(--tuff); border-color: var(--tuff); color: #fff; }
.prose { flex: 2.2 1 520px; max-width: 820px; font-size: 20px; line-height: 1.6; font-weight: 300; }
.prose p + p, .prose ul, .prose h2, .prose h3 { margin-top: 22px; }
.prose h2 { font-size: 30px; }
.gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; padding-bottom: 96px; }
.gallery a { border-radius: var(--radius); overflow: hidden; background: var(--stone); }
.gallery img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s ease; }
.gallery a:hover img { transform: scale(1.02); }
.video-wrap { padding-bottom: 96px; }
.video-wrap video, .video-wrap iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); background: #000; }
.viewer { background: var(--ink); color: var(--bg); }
.viewer .wrap { padding-top: 80px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 28px; }
.viewer iframe { width: 100%; height: min(720px, 75vh); border: 0; border-radius: var(--radius); background: #222120; }
.viewer p { font-size: 14px; color: #B9B5AC; }
.ar { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; padding-top: 28px; border-top: 1px solid rgba(244, 242, 238, .15); }
.ar__text { display: flex; flex-direction: column; gap: 8px; max-width: 52ch; }
.ar h3 { font-size: 24px; font-weight: 500; margin: 0; }
.ar__ios { display: block; width: min(320px, 100%); border-radius: var(--radius); overflow: hidden; }
.ar__ios img { display: block; width: 100%; height: auto; }
.ar [hidden] { display: none !important; }
.viewer .action--primary { background: var(--tuff); border-color: var(--tuff); color: #fff; justify-content: center; }
.next-project { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding-top: 80px; padding-bottom: 80px; }
.next-project img { flex: 0 1 420px; min-width: 0; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.next-project__title { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.02em; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(15,15,14,.96); display: none; align-items: center; justify-content: center; z-index: 1000; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 4px; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 36px; cursor: pointer; padding: 18px; line-height: 1; }
.lightbox__close { top: 10px; right: 14px; }
.lightbox__prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 10px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #CFCBC2; font-size: 14px; }

/* ---------- footer ---------- */
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 32px; padding-bottom: 48px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }

/* ---------- generic page ---------- */
.page-content { max-width: 820px; padding-top: 24px; padding-bottom: 96px; }
.page-content .prose { max-width: none; }

/* ---------- mobile ---------- */
@media (max-width: 860px) {
	:root { --gutter: 16px; }
	.nav-toggle { display: block; }
	.nav { display: none; position: absolute; left: 0; right: 0; top: 86px; z-index: 50; background: var(--bg); flex-direction: column; align-items: flex-start; gap: 20px; padding: 24px 16px 32px; border-bottom: 1px solid var(--line); font-size: 18px; }
	.nav.is-open { display: flex; }
	.site-header { position: relative; }
	.brand__caption { display: none; }
	.hero__overlay { padding: 100px 20px 24px; }
	.hero__caption { text-align: left; }
	.section { padding-top: 64px; padding-bottom: 64px; }
	.contact-box { padding: 28px 20px; }
	.form { grid-template-columns: minmax(0, 1fr); }
	.gallery { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.gallery a { grid-column: auto !important; }
	.meaning { flex-direction: column; gap: 6px; }
	.meaning dt { flex-basis: auto; }
	.project-body { gap: 32px; }
}
