/*
 * GaDo Art Studio - Начало (front-page.php)
 * 1:1 по makets/final/home.1440.html / home.390.html; hover по home.dc.html.
 * Токените (--gado-*) и .gado-btn идват от base.css.
 * Без position:absolute и overflow:hidden извън разрешеното (PLAN р.5): слоевете се
 * наслагват с grid (grid-area:1/1), заоблените изрязвания - с clip-path + contain:paint.
 */

.gado-home {
	display: block;
}

/* ---------- 1. Хиро ---------- */
.gado-hero {
	display: grid;
	grid-template: minmax(0, 1fr) / minmax(0, 1fr);
	height: 100svh;
	min-height: 560px;
	background: var(--gado-dark);
}

.gado-hero > * {
	grid-area: 1 / 1;
}

.gado-hero__bg {
	display: block;
	background-image: var(--gado-hero-d);
	background-size: cover;
	background-position: var(--gado-hero-dp, center 30%);
	background-repeat: no-repeat;
	background-attachment: fixed;
}

.gado-hero__shade {
	display: block;
	background: radial-gradient(ellipse at center, rgba(18, 14, 10, .82), rgba(18, 14, 10, .55) 60%, rgba(18, 14, 10, .6));
}

.gado-hero__inner {
	position: relative;
	place-self: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	padding: 72px 20px 64px;
	text-align: center;
	color: #fff;
}

.gado-hero__logo {
	margin: 0;
	height: min(52svh, 440px);
	width: auto;
	max-width: 70vw;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	mix-blend-mode: screen;
	font-size: 0;
	line-height: 0;
}

/* = top:-2%; left:-54%; width:208% от макета (марджините в % са спрямо ширината; h1 е 3:4). */
.gado-hero__logo img {
	display: block;
	width: 208%;
	max-width: none;
	height: auto;
	margin: -2.667% 0 0 -54%;
}

.gado-hero__sub {
	margin: 0;
	font-size: 13px;
	letter-spacing: .32em;
	text-transform: uppercase;
	color: var(--gado-gold-light);
}

.gado-hero__down {
	position: relative;
	align-self: end;
	justify-self: center;
	margin-bottom: 24px;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.gado-hero__down span {
	width: 12px;
	height: 12px;
	border-right: 1.5px solid #fff;
	border-bottom: 1.5px solid #fff;
	transform: translateY(-3px) rotate(45deg);
}

.gado-hero__down:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
	border-radius: 50%;
}

@media (max-width: 699px) {
	.gado-hero__bg {
		background-image: var(--gado-hero-m);
		background-position: var(--gado-hero-mp, 82% 100%);
		background-attachment: scroll;
	}
}

/* ---------- 2. Лента думи ---------- */
.gado-words {
	overflow: hidden;
	background: var(--gado-bg);
	border-bottom: 1px solid var(--gado-line);
	padding: 22px 0;
}

.gado-words__track,
.gado-words__set {
	display: flex;
	width: max-content;
	gap: 40px;
	white-space: nowrap;
}

.gado-words__item {
	display: flex;
	align-items: center;
	gap: 40px;
	font-family: var(--gado-serif);
	font-style: italic;
	font-size: 28px;
	line-height: normal;
	color: var(--gado-dark);
}

.gado-words__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--gado-bronze);
}

/* ---------- 3. CTA карти ---------- */
.gado-ctas {
	padding: clamp(56px, 7vw, 96px) var(--gado-gutter, clamp(20px, 4vw, 56px));
}

.gado-ctas__grid {
	max-width: var(--gado-container, 1200px);
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: 20px;
}

.gado-cta {
	display: grid;
	grid-template: minmax(0, 1fr) / minmax(0, 1fr);
	aspect-ratio: 4 / 5;
	border-radius: 16px;
	background: #8E6A3A;
	color: #fff;
	text-decoration: none;
	text-align: center;
}

.gado-cta:hover {
	color: #fff;
}

.gado-cta > * {
	grid-area: 1 / 1;
}

.gado-cta__media {
	display: grid;
	grid-template: minmax(0, 1fr) / minmax(0, 1fr);
	border-radius: 16px;
	clip-path: inset(0 round 16px);
	contain: paint; /* увеличената снимка не дава хоризонтален скрол (clip-path не реже overflow) */
}

.gado-cta__media > * {
	grid-area: 1 / 1;
}

.gado-cta__img {
	display: block;
	background-size: cover;
	background-repeat: no-repeat;
}

.gado-cta__shade {
	display: block;
	z-index: 1;
	background: linear-gradient(180deg, rgba(25, 22, 35, 0) 40%, rgba(25, 22, 35, .78));
}

.gado-cta__body {
	z-index: 2;
	align-self: end;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 32px 24px;
}

.gado-cta__label {
	font-size: 12px;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--gado-sand);
}

.gado-cta__title {
	font-family: var(--gado-serif);
	font-size: 32px;
	line-height: 1.15;
	margin: 8px 0 20px;
}

.gado-cta__btn {
	display: inline-flex;
	align-items: center;
	height: 44px;
	padding: 0 24px;
	border-radius: var(--gado-pill, 20px);
	border: 1px solid var(--gado-sand);
	color: var(--gado-sand);
	font-size: 15px;
	transition: background-color .2s, color .2s;
}

.gado-cta:hover .gado-cta__btn,
.gado-cta:focus-visible .gado-cta__btn {
	background: var(--gado-sand);
	color: var(--gado-dark);
}

.gado-cta:focus-visible {
	outline: 2px solid var(--gado-dark);
	outline-offset: 3px;
}

/* ---------- 4. Лента Екип ---------- */
.gado-team-band {
	background:
		linear-gradient(rgba(26, 22, 18, .62), rgba(26, 22, 18, .62)),
		var(--gado-band-img, none) center 40% / cover no-repeat,
		var(--gado-dark);
	padding: clamp(96px, 12vw, 168px) var(--gado-gutter, clamp(20px, 4vw, 56px));
	text-align: center;
}

.gado-team-band__inner {
	max-width: 820px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 32px;
}

.gado-team-band__text {
	margin: 0;
	font-family: var(--gado-serif);
	font-size: clamp(26px, 2.6vw, 36px);
	line-height: 1.3;
	color: #fff;
	text-wrap: balance;
}

.gado-team-band .gado-team-band__btn {
	display: inline-flex;
	align-items: center;
	height: 44px;
	padding: 0 28px;
	border-radius: var(--gado-pill, 20px);
	border: 1px solid #fff;
	background: transparent;
	color: #fff;
	text-decoration: none;
	font-family: var(--gado-sans);
	font-size: 14px;
	font-weight: 400;
	letter-spacing: .16em;
}

.gado-team-band .gado-team-band__btn:hover {
	background: #fff;
	border-color: #fff;
	color: var(--gado-text);
}

.gado-team-band .gado-team-band__btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

/* ---------- 5. Услуги (рейл) ---------- */
.gado-services {
	padding: clamp(72px, 9vw, 128px) var(--gado-gutter, clamp(20px, 4vw, 56px));
}

.gado-services__wrap {
	max-width: var(--gado-container, 1200px);
	margin: 0 auto;
}

.gado-services__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 clamp(28px, 4vw, 48px);
}

.gado-services__title {
	margin: 0;
	font-family: var(--gado-serif);
	font-weight: 400;
	font-size: clamp(36px, 3.4vw, 48px);
	line-height: normal;
	color: var(--gado-dark);
}

.gado-services__nav {
	display: flex;
	gap: 10px;
}

.gado-services__arrow {
	width: 48px;
	height: 48px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid var(--gado-dark);
	background: transparent;
	color: var(--gado-dark);
	font-family: var(--gado-sans);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color .2s, color .2s;
}

.gado-services__arrow:hover {
	background: var(--gado-dark);
	color: #fff;
}

.gado-services__arrow:focus-visible {
	outline: 2px solid var(--gado-dark);
	outline-offset: 3px;
}

.gado-services__rail {
	--gado-rail-gap: clamp(12px, 2vw, 24px);
	display: flex;
	gap: var(--gado-rail-gap);
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
	padding-bottom: 4px;
}

.gado-services__rail::-webkit-scrollbar {
	display: none;
}

.gado-services__rail:focus-visible {
	outline: 2px solid var(--gado-dark);
	outline-offset: 4px;
}

.gado-service {
	flex: 0 0 max(240px, calc((100% - 3 * var(--gado-rail-gap)) / 4));
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.gado-service__img {
	display: block;
	aspect-ratio: 1 / 1;
	border-radius: 12px;
	background-color: var(--gado-line);
	background-size: cover;
	background-position: 50% 30%;
	background-repeat: no-repeat;
	margin-bottom: 10px;
}

.gado-service__name {
	margin: 0;
	font-family: var(--gado-serif);
	font-weight: 500;
	font-size: clamp(22px, 2vw, 28px);
	line-height: 1.15;
	color: var(--gado-dark);
}

.gado-service__from {
	font-size: 14px;
	color: var(--gado-muted);
}

.gado-services .gado-service__btn {
	margin-top: 10px;
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	height: 44px;
	padding: 0 20px;
	border-radius: var(--gado-pill, 20px);
	background: var(--gado-dark);
	border: 1px solid var(--gado-dark);
	color: #fff;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
}

.gado-services .gado-service__btn:hover {
	background: transparent;
	color: var(--gado-dark);
}

.gado-services .gado-service__btn:focus-visible {
	outline: 2px solid var(--gado-dark);
	outline-offset: 3px;
}

.gado-services__more {
	display: inline-block;
	margin-top: 40px;
	font-size: 15px;
	color: var(--gado-dark);
	text-decoration: underline;
	text-underline-offset: 5px;
}

.gado-services__more:hover {
	color: var(--gado-text);
}

/* ---------- 6. Марки ---------- */
.gado-brands {
	background: var(--gado-sand);
	padding: clamp(64px, 8vw, 104px) 0;
	margin-bottom: clamp(72px, 9vw, 128px);
}

.gado-brands__head {
	max-width: 900px;
	margin: 0 auto clamp(36px, 4vw, 56px);
	padding: 0 20px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.gado-brands__title {
	margin: 0;
	font-family: var(--gado-serif);
	font-weight: 400;
	font-size: clamp(34px, 3.4vw, 48px);
	line-height: 1.1;
	color: var(--gado-dark);
}

.gado-brands__sub {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: var(--gado-text);
	text-wrap: balance;
}

.gado-brands__band {
	overflow: hidden;
	border-top: 1px solid var(--gado-line-2);
	border-bottom: 1px solid var(--gado-line-2);
	padding: 28px 0;
}

.gado-brands__track,
.gado-brands__set {
	display: flex;
	width: max-content;
	align-items: center;
	gap: 72px;
	white-space: nowrap;
}

.gado-brands__item {
	display: flex;
	align-items: center;
	height: 56px;
	padding: 0 4px;
	color: var(--gado-dark);
	line-height: normal;
}

/* ---------- 7. Instagram ---------- */
.gado-insta {
	padding: 0 var(--gado-gutter, clamp(20px, 4vw, 56px)) clamp(72px, 9vw, 128px);
}

.gado-insta__wrap {
	max-width: var(--gado-container, 1200px);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
}

.gado-insta__title {
	margin: 0;
	font-family: var(--gado-serif);
	font-weight: 400;
	font-size: clamp(30px, 3vw, 40px);
	line-height: normal;
	color: var(--gado-dark);
}

.gado-insta__grid {
	width: 100%;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
	gap: 8px;
}

.gado-insta__tile {
	display: grid;
	aspect-ratio: 1 / 1;
	border-radius: 8px;
	clip-path: inset(0 round 8px);
	contain: paint;
	background: #E2DACB;
}

.gado-insta__img {
	display: block;
	background-size: cover;
	background-position: 50% 30%;
	background-repeat: no-repeat;
	transform: scale(1.14);
	transform-origin: 50% 0;
}

.gado-insta .gado-insta__btn {
	display: inline-flex;
	align-items: center;
	height: 44px;
	padding: 0 28px;
	border-radius: var(--gado-pill, 20px);
	border: 1px solid var(--gado-dark);
	background: transparent;
	color: var(--gado-dark);
	text-decoration: none;
	font-size: 15px;
	font-weight: 400;
}

.gado-insta .gado-insta__btn:hover {
	background: var(--gado-dark);
	color: #fff;
}

.gado-insta .gado-insta__btn:focus-visible {
	outline: 2px solid var(--gado-dark);
	outline-offset: 3px;
}

/* ---------- Намалено движение ---------- */
@media (prefers-reduced-motion: reduce) {
	.gado-services__rail {
		scroll-behavior: auto;
	}

	.gado-cta__btn,
	.gado-services__arrow {
		transition: none;
	}
}
