/* ============================================================
   1. БАЗОВЫЕ СТИЛИ
   ============================================================ */
body, html {
	font-family: 'Open Sans', sans-serif;
	text-rendering: optimizeLegibility !important;
	-webkit-font-smoothing: antialiased !important;
	color: #777;
	width: 100% !important;
	height: 100% !important;
}
body { padding-top: 60px; } /* страховка без JS; точную высоту меню выставит main.js */

h2 {
	margin: 0 0 20px 0;
	color: #555;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: 400;
	font-size: 30px;
}
h3, h4 { color: #222; font-size: 18px; font-weight: 300; letter-spacing: 1px; }
h5 { text-transform: uppercase; font-weight: 700; line-height: 20px; }

p.intro { font-size: 16px; margin: 12px 0 0; line-height: 24px; }

a { color: #555; }
a:hover, a:focus { text-decoration: none; color: #000; }

ul, ol { list-style: none; padding: 0; }

hr {
	height: 1px;
	width: 70px;
	text-align: center;
	position: relative;
	background: #666;
	margin: 0 auto 30px;
	border: 0;
}

.clearfix:after {
	visibility: hidden;
	display: block;
	font-size: 0;
	content: " ";
	clear: both;
	height: 0;
}
.clearfix { display: block; }

/* единый верхний отступ всех разделов */
:root { --section-gap: 56px; }

.section-title.center { padding: 10px 0 40px 0; }

/* ============================================================
   2. НАВИГАЦИЯ (фиксированное меню)
   ============================================================ */
#nav { position: fixed; top: 0; left: 0; width: 100%; z-index: 9999; }

.navbar .navbar-nav { display: inline-block; float: none; vertical-align: top; }
.navbar .navbar-collapse { text-align: center; }

.navbar-custom {
	margin-bottom: 0;
	background-color: #f6f6f6;
	border-radius: 0;
	padding: 8px 0;
	border-bottom: 2px solid #fff;
}
.navbar-custom a { color: #555; }
.navbar-custom .nav li a {
	margin: 0 13px;
	padding: 10px 4px;
	font-size: 13px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	transition: background .3s ease-in-out, color .3s ease-in-out;
}
.navbar-custom .nav li a:hover,
.navbar-custom .nav li a:focus,
.navbar-custom .nav li a:active {
	outline: 0;
	background-color: transparent;
	color: #000;
}

/* активный пункт — жирнее, фон общий с баром */
.navbar-custom .nav li.active > a,
.navbar-custom .nav li.active > a:hover,
.navbar-custom .nav li.active > a:focus {
	background: transparent;
	color: #000;
	font-weight: 600;
}

/* дропдаун Collections */
.navbar-custom .dropdown-menu {
	border: 0; border-radius: 2px; min-width: 190px;
	padding: 6px 0;
	box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.navbar-custom .dropdown-menu > li > a {
	padding: 9px 18px;
	font-size: 13px; letter-spacing: .06em;
	transition: background .2s;
}
.navbar-custom .dropdown-menu > li > a:hover { background: #f2f2f2; }
.navbar-custom .dropdown-toggle .caret { transition: transform .25s; }
.navbar-custom .open .caret { transform: rotate(180deg); }

/* дропдаун по наведению — только десктоп */
@media (min-width:768px) {
	.navbar-custom .dropdown .dropdown-menu {
		display: block;
		visibility: hidden;
		opacity: 0;
		transform: translateY(8px);
		margin-top: 0;
		transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
	}
	.navbar-custom .dropdown:hover .dropdown-menu,
	.navbar-custom .dropdown.open .dropdown-menu {
		visibility: visible;
		opacity: 1;
		transform: none;
		transition: opacity .25s ease, transform .25s ease;
	}
	.navbar-custom .dropdown:hover .caret { transform: rotate(180deg); }
}

/* планшеты и узкие ноутбуки */
@media (min-width:768px) and (max-width:991px) {
	.navbar-custom .nav li a { margin: 0 7px; font-size: 12px; letter-spacing: .8px; }
}

/* ============================================================
   3. ШАПКА (hero-блок)
   ============================================================ */
.intro {
	display: table;
	width: 100%;
	padding: 0;
	text-align: center;
	color: #333;
	background:
		linear-gradient(rgba(255,255,255,.4), rgba(255,255,255,.4)),
		url(../img/intro-bg.jpg) no-repeat center center;
	background-color: #e5e5e5;
	background-size: cover;
}
.intro h1 {
	font-size: 60px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	margin-bottom: 20px;
	color: #333;
	text-shadow:
		0 1px 2px rgba(255,255,255,.9),
		0 0 14px rgba(255,255,255,.75);
}
.intro p { font-size: 20px; margin: 20px 0 40px;
	text-shadow:
		0 1px 2px rgba(255,255,255,.9),
		0 0 14px rgba(255,255,255,.75);
}
header .intro-text { padding-top: 110px; padding-bottom: 110px; }

@media (max-width: 767px) {
	header .intro-text {
		padding-top: 70px;
		padding-bottom: 70px;
	}
}

/* ============================================================
   4. ABOUT
   ============================================================ */
#about { padding: var(--section-gap) 0 120px; }
#about .about-text { margin-left: 10px; text-align: center; }
#about img { border-radius: 50%; width: 160px; height: 160px; display: inline-block; }
#about p { margin-top: 40px; margin-bottom: 30px; line-height: 22px; }

/* ============================================================
   5. ПОРТФОЛИО
   ============================================================ */
#portfolio { padding: var(--section-gap) 0 120px; background: #f6f6f6; }

/* --- фильтр коллекций --- */
.categories { padding-bottom: 30px; text-align: center; }
.categories .cat,
.categories .type {
	display: flex; flex-wrap: wrap; justify-content: center;
	gap: 8px; margin: 0; padding: 0; list-style: none;
}
.categories .type a {
	display: inline-block;
	padding: 8px 16px;
	border: 1px solid rgba(20,20,20,.25); border-radius: 2px;
	font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
	color: inherit; white-space: nowrap;
	transition: border-color .25s, background .25s, color .25s;
}
.categories .type a:hover { border-color: #141414; }
.categories .type a.active { background: #141414; border-color: #141414; color: #fff; }

/* --- описание коллекции --- */
.collection-descr {
	max-width: 680px;
	margin: -12px auto 36px;
	text-align: center;
	font-size: 15px; line-height: 1.75;
	color: #3f3f3f;
}
.collection-descr p { margin: 0; }
.collection-descr + .works-pager--top { margin-top: -12px; }

/* --- пагинация --- */
.works-pager { text-align: center; margin: 6px 0 0; }
.works-pager__info {
	font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
	opacity: .5; margin-bottom: 14px;
}
.works-pager--top { margin: -14px 0 0; padding-bottom: 30px; }
.works-pager--top .works-pager__info { display: none; }
.works-pager__nav { display: inline-flex; gap: 8px; }
.pager-btn {
	min-width: 40px; height: 40px; padding: 0 12px;
	border: 1px solid rgba(20,20,20,.25); border-radius: 2px;
	background: none; color: inherit;
	font-size: 14px; line-height: 1; cursor: pointer;
	transition: border-color .25s, background .25s, color .25s, transform .2s, opacity .25s;
}
.pager-btn:hover:not(:disabled):not(.is-active) { border-color: #141414; transform: translateY(-2px); }
.pager-btn.is-active { background: #141414; border-color: #141414; color: #fff; }
.pager-btn:disabled { opacity: .28; cursor: default; }

/* --- сетка работ --- */
.portfolio-items > [class*="col-"] { display: none; } /* скрыта до JS; noscript-фолбэк в works.php */

.portfolio-item {
	margin: 15px 0;
	transition: all 0.5s ease-out;
	height: auto !important;
}
.portfolio-item:hover { transform: scale(1.1); }
.portfolio-item .hover-bg { height: auto; overflow: hidden; position: relative; }

/* оверлей при наведении */
.hover-bg .hover-text {
	position: absolute;
	text-align: center;
	margin: 0 auto;
	color: #fff;
	background: rgba(0,0,0,.66);
	padding: 30% 0 0 0;
	height: 100%; width: 100%;
	opacity: 0;
	transition: all 0.5s;
}
.hover-bg:hover .hover-text { opacity: 1; }
.hover-bg .hover-text > h4 {
	text-transform: uppercase;
	opacity: 0;
	color: #fff;
	transform: translateY(100%);
	transition: all 0.3s;
}
.hover-bg:hover .hover-text > h4 {
	opacity: 1;
	-webkit-backface-visibility: hidden;
	transform: translateY(0);
}

/* подписи под карточками — только мобильные */
.work-caption { display: none; }

/* --- мобильные --- */
@media (max-width:767px) {
	.categories .type a {
		padding: 8px 12px;
		font-size: 11px;
		white-space: normal;
		text-align: center;
	}
	.portfolio-items > [class*="col-"] { width: 100%; }
	.portfolio-items .portfolio-item { max-width: 350px; margin: 0 auto 44px; }
	.portfolio-items .hover-bg img { margin: 0 auto; }
	.hover-bg .hover-text { display: none; }
	.work-caption { display: block; text-align: center; padding: 12px 4px 0; }
	.work-caption h4 {
		margin: 0 0 5px;
		font-size: 15px; font-weight: 600;
		letter-spacing: .02em; line-height: 1.3;
		transition: opacity .25s;
	}
	.portfolio-item:active .work-caption h4 { opacity: .55; }
	.work-caption-status {
		font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
		opacity: .55;
	}
}

/* ============================================================
   ВЫСТАВКИ
   ============================================================ */
#expositions { padding: var(--section-gap) 0 120px; background: #f6f6f6; }

.expo-article { display: none; }
.expo-article.is-open { display: block; }
.expo-article__title {
  text-align: center;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #333;
  margin: 10px 0 30px;
}
.expo-article__body {
  max-width: 760px; margin: 0 auto;
  font-size: 15px; line-height: 1.75; color: #3f3f3f;
}
.expo-article__body p { margin: 0 0 16px; }
.expo-article__body a { color: #555; text-decoration: underline; }
.expo-article__body a:hover { color: #000; }
.expo-article__body img {
  max-width: 100%; height: auto; display: block;
  margin: 22px auto;
}
.expo-article__body ul, .expo-article__body ol { margin: 0 0 16px 22px; padding: 0; }
.expo-article__body ul { list-style: disc; }
.expo-article__body ol { list-style: decimal; }
.expo-article__body li { margin: 0 0 6px; }
.expo-article__body blockquote {
  margin: 0 0 16px; padding: 8px 18px;
  border-left: 3px solid #141414; color: #555;
}

/* выравнивание из редактора (классы align_*) */
.expo-article__body .align_left   { text-align: left; }
.expo-article__body .align_center { text-align: center; }
.expo-article__body .align_right  { text-align: right; }

.expo-article__body img.align_left   { float: left;  margin: 6px 18px 12px 0; }
.expo-article__body img.align_right  { float: right; margin: 6px 0 12px 18px; }
.expo-article__body img.align_center { float: none; display: block; margin: 22px auto; }

/* ============================================================
   6. МОДАЛКА РАБОТЫ
   ============================================================ */
.work-modal .modal-dialog { margin-top: 90px; }
.work-modal .modal-content {
	position: relative; border: 0; border-radius: 0;
	box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.work-modal .modal-body { padding: 34px 34px 40px; }

.work-modal .work-fancybox-inner {
	display: flex; flex-wrap: wrap;
	align-items: flex-start; gap: 32px; width: 100%;
}
.work-modal .work-description { flex: 1 1 240px; min-width: 220px; }
.work-modal .work-gallery { flex: 1 1 420px; min-width: 280px; }

.work-modal .work-description h3 { margin: 0 0 10px; font-size: 26px; line-height: 1.15; }
.work-modal .work-description p { margin: 0 0 12px; line-height: 1.65; }
.work-modal .work-price { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }

.work-modal .work-main-image img { width: 100%; height: auto; display: block; }
.work-modal .work-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.work-modal .work-thumbs .work-thumb {
	width: 90px; height: 90px; object-fit: cover; margin: 0;
	cursor: pointer; opacity: .55;
	outline: 2px solid transparent; outline-offset: 2px;
	transition: opacity .25s, transform .25s, outline-color .25s;
}
.work-modal .work-thumbs .work-thumb:hover { opacity: .9; transform: translateY(-3px); }
.work-modal .work-thumbs .work-thumb.active { opacity: 1; outline-color: #141414; }

.work-modal-close {
	position: absolute; top: 14px; right: 14px; z-index: 20;
	width: 44px; height: 44px; border: 0; border-radius: 50%;
	background: rgba(18,18,18,.85); color: #fff;
	font-size: 24px; line-height: 1; cursor: pointer;
	transition: background .25s, transform .3s;
}
.work-modal-close:hover { background: #000; transform: rotate(90deg); }

/* плавное появление содержимого модалки */
.work-modal .work-description,
.work-modal .work-gallery {
	opacity: 0; transform: translateY(12px);
	transition: opacity .45s ease, transform .45s ease;
}
.work-modal.in .work-description,
.work-modal.in .work-gallery { opacity: 1; transform: none; }
.work-modal.in .work-gallery { transition-delay: .1s; }

@media (max-width:767px) {
	.work-modal .work-thumbs { gap: 8px; }
	.work-modal .work-thumbs .work-thumb {
		width: auto; height: auto;
		flex: 1 1 calc(25% - 6px);
		min-width: 64px;
		aspect-ratio: 1;
	}
}
@media (max-width:640px) {
	.work-modal .modal-body { padding: 22px 18px 26px; }
}

/* ============================================================
   7. CONTACT
   ============================================================ */
#contact { padding: var(--section-gap) 0 60px; }
#contact h3 { padding-top: 20px; font-size: 20px; font-weight: 400; color: #fff; }
#contact form { padding: 30px 0; }
#contact .text-danger { color: #E87E04; text-align: left; }
#contact .social { margin-top: 80px; }
#contact .social ul li { display: inline-block; margin: 0 20px; }
#contact .social i.fa { font-size: 22px; padding: 4px; color: #444; transition: all 0.5s; }
#contact .social i.fa:hover { color: #000; }

/* формы */
label {
	font-size: 12px; font-weight: 400;
	font-family: 'Open Sans', sans-serif;
	float: left;
}
#contact .form-control {
	display: block;
	width: 100%;
	padding: 6px 12px;
	font-size: 14px; line-height: 1.42857143;
	color: #2c3e50;
	background-color: rgba(255,255,255,.8);
	background-image: none;
	border: 1px solid #999; border-radius: 0;
	box-shadow: none;
	transition: none;
}
#contact .form-control:focus { border-color: inherit; outline: 0; box-shadow: transparent; }
.form-control::-webkit-input-placeholder { color: #2c3e50; }
.form-control:-moz-placeholder { color: #2c3e50; }
.form-control::-moz-placeholder { color: #2c3e50; }
.form-control:-ms-input-placeholder { color: #2c3e50; }

/* ============================================================
   ТЕКСТОВЫЕ СТРАНИЦЫ (Collaborations, Contact и т.п.)
   ============================================================ */
#textpage { padding: var(--section-gap) 0 120px; background: #fff; }
.textpage-body {
  max-width: 760px; margin: 0 auto;
  font-size: 15px; line-height: 1.75; color: #3f3f3f;
}
.textpage-body p { margin: 0 0 16px; }
.textpage-body a { color: #555; text-decoration: underline; }
.textpage-body a:hover { color: #000; }
.textpage-body img { max-width: 100%; height: auto; display: block; margin: 22px auto; }
.textpage-body ul, .textpage-body ol { margin: 0 0 16px 22px; padding: 0; }
.textpage-body ul { list-style: disc; }
.textpage-body ol { list-style: decimal; }
.textpage-body li { margin: 0 0 6px; }
.textpage-body blockquote {
  margin: 0 0 16px; padding: 8px 18px;
  border-left: 3px solid #141414; color: #555;
}
/* выравнивание из редактора */
.textpage-body .align_left   { text-align: left; }
.textpage-body .align_center { text-align: center; }
.textpage-body .align_right  { text-align: right; }
.textpage-body img.align_left   { float: left;  margin: 6px 18px 12px 0; }
.textpage-body img.align_right  { float: right; margin: 6px 0 12px 18px; }
.textpage-body img.align_center { float: none; display: block; margin: 22px auto; }

/* ============================================================
   8. КНОПКИ
   ============================================================ */
.btn-default {
	text-transform: uppercase;
	color: #333;
	background-color: transparent;
	border-color: #333;
	padding: 14px 20px;
	margin: 20px 0 0;
	font-size: 16px;
	border-radius: 0;
}
.btn-default:hover, .btn-default:focus, .btn-default.focus,
.btn-default:active, .btn-default.active {
	color: #fff;
	background-color: #121d1f;
	border-color: #121d1f;
}
.btn:active, .btn.active { background-image: none; outline: 0; box-shadow: none; }
a:focus, .btn:focus, .btn:active:focus, .btn.active:focus,
.btn.focus, .btn:active.focus, .btn.active.focus {
	outline: none;
	outline-offset: none;
}

.page-descr{
  max-width:680px;
  margin:-12px auto 36px;
  text-align:center;
  font-size:15px; line-height:1.75;
  color:#3f3f3f;
}
.page-descr p{ margin:0 0 12px; }
.page-descr p:last-child{ margin-bottom:0; }
.page-descr + .works-pager--top{ margin-top:-12px; }

/* ============================================================
   9. ПОДВАЛ
   ============================================================ */
#footer { background: #f6f6f6; color: #777; padding: 30px 0 25px 0; }
#footer p { font-size: 13px; }
#footer a { color: #555; }
#footer a:hover { color: #000; }