/* ===== SGA — оформление сайта ===== */

/* Шапка: размеры зависят от ширины экрана */
.t1272 .t-menu-base { background: #0d0d0d !important; height: clamp(98px, 5.2vw, 168px) !important; }
.t1272 .t-menu-base__maincontainer { height: clamp(98px, 5.2vw, 168px) !important; }
.t1272 .t-menu-base__logowrapper,
.t1272 .t-menu-base__logo { height: auto !important; width: auto !important; }
.t1272 .t-menu-base__logo img { height: clamp(44px, 2.5vw, 80px) !important; width: auto !important; max-width: 720px; }
.t1272 .t-menu-base__list a { font-size: clamp(13.5px, .66vw, 20px) !important; letter-spacing: .2em !important; text-transform: uppercase !important; opacity: .82; transition: opacity .3s; }
.t1272 .t-menu-base__list a:hover { opacity: 1; }
.t1272 .t-menu-base__langs-button { font-size: clamp(13.5px, .66vw, 20px) !important; letter-spacing: .14em !important; }

/* Сетка проектов */
.t401 .t-container { max-width: 1240px !important; }
.t401__table { position: relative; overflow: hidden; }
.t401__cell { margin: 0 !important; }
.t401__col { padding-bottom: 0 !important; margin-bottom: 42px !important; }
.t401__overlay { opacity: 1 !important; background-image: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,0) 45%) !important; }
.t401__textwrapper { position: absolute !important; left: 0; right: 0; top: 0; bottom: 0 !important; height: auto !important; padding: 0 !important; opacity: 1 !important; transform: none !important; display: flex !important; align-items: flex-end !important; background: none !important; }
.t401__textwrapper__content { margin: 0 !important; text-align: left !important; padding: 0 18px 16px !important; width: 100%; }
.t401__textwrapper__content,
.t401__textwrapper__content * { color: #fff !important; font-size: clamp(13.5px, .72vw, 18px) !important; line-height: 1.35 !important; letter-spacing: .01em !important; text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.t401__bg { transition: transform 1.1s cubic-bezier(.2,.6,.2,1) !important; }
.t401__link:hover .t401__bg { transform: scale(1.04) !important; }
.t401__link:hover .t401__overlay { background-image: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,.06) 60%) !important; }

/* Отступы секции галереи */
.t-rec_pt_210 { padding-top: clamp(140px, 6.5vw, 200px) !important; }
.t-rec_pb_30 { padding-bottom: 40px !important; }

/* Контакты */
.t-rec:has(.t551) { background: #0d0d0d !important; }
.t551__title,
.t551 a,
.t551__descr { font-weight: 300 !important; letter-spacing: .005em !important; }
.t551__title { font-size: 30px !important; line-height: 1.4 !important; }
.t551 a { border-bottom: 1px solid transparent; transition: border-color .3s; }
.t551 a:hover { border-bottom-color: #fff; }

/* Широкие экраны */
@media (min-width: 1600px) {
  .t401 .t-container { max-width: 1680px !important; }
  .t401 .t-col_4 { max-width: 520px !important; }
}
@media (min-width: 2100px) {
  .t401 .t-container { max-width: 1860px !important; }
  .t401 .t-col_4 { max-width: 580px !important; }
}
@media (min-width: 2700px) {
  .t401 .t-container { max-width: 2280px !important; }
  .t401 .t-col_4 { max-width: 720px !important; }
}

/* Мобильная шапка */
@media (max-width: 640px) {
  .t1272 .t-menu-base, .t1272 .t-menu-base__maincontainer { height: 76px !important; }
  .t1272 .t-menu-base__logo img { height: 34px !important; }
}

/* ===== Страницы проектов ===== */

/* Единый логотип вместо старого растра на всех страницах */
.t1272 .t-menu-base__imglogo {
  content: url("https://static.tildacdn.com/tild6563-6130-4465-a539-333030343139/e_horizontal_dark.svg") !important;
  height: clamp(44px, 2.5vw, 80px) !important;
  width: auto !important;
  max-width: 720px;
}

/* Заголовок и описание проекта */
.t764__title {
  font-family: "Bodoni MT", Didot, Georgia, serif !important;
  font-weight: 400 !important;
  font-size: clamp(34px, 4.4vw, 62px) !important;
  line-height: 1.04 !important;
  letter-spacing: -.01em !important;
}
.t764__descr {
  font-size: 16.5px !important;
  line-height: 1.8 !important;
  color: #2b2b2b !important;
  max-width: 48ch;
  margin-top: 20px;
}

/* Текст и снимок — в столбик, во всю ширину */
.t764 .t-container { max-width: 1240px !important; }
.t764__col_first { width: 100% !important; float: none !important; }
.t764__col.t-col_9 { width: 100% !important; float: none !important; margin-top: 38px !important; }
.t764__textwrapper { padding-right: 0 !important; }

/* Полоса миниатюр — по ширине контента */
.t029 .t029__col.t-col_8 { width: 100% !important; max-width: 1240px !important; float: none !important; margin: 0 auto !important; }
.t029 { padding-top: 20px !important; }


/* Кнопка «На главную» на страницах проектов → «Все проекты» */
body:has(.t764) .t-btnflex .t-btnflex__text { font-size: 0 !important; }
body:has(.t764) .t-btnflex .t-btnflex__text::before {
  content: "\2190  \0412\0441\0435 \043F\0440\043E\0435\043A\0442\044B";
  font-size: 13px !important;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 400;
}
body:has(.t764) .t-btnflex { padding: 14px 26px !important; border: 1px solid rgba(0,0,0,.25) !important; background: transparent !important; }
body:has(.t764) .t-btnflex:hover { border-color: #0d0d0d !important; }


body:has(.t764) .t-btnflex .t-btnflex__text::before { content: "← Все проекты"; }


/* Первый пункт меню — «О себе» */
.t1272 .t-menu-base__list li:first-child > a { font-size: 0 !important; }
.t1272 .t-menu-base__list li:first-child > a::before { content: "О себе"; font-size: clamp(13.5px, .66vw, 20px); letter-spacing: .2em; text-transform: uppercase; }

.t1272 .t-menu-base__list li:first-child .t-menu__link-item { font-size: 0 !important; }
.t1272 .t-menu-base__list li:first-child .t-menu__link-item::before { content: "О себе"; font-size: clamp(13.5px, .66vw, 20px); letter-spacing: .2em; text-transform: uppercase; }


/* скрыть значок Made on Tilda */
.t-tildalаbеl, #tildalabel, .t-tildalаbеl__wrapper, a[href*="tilda.cc/?upm"] { display: none !important; }
