/* ===== 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__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; }
.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; }
.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; }

/* Сетка проектов */
.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__descr { display: none !important; }
.t401__title { font-size: 13.5px !important; }
.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; }
.t551__title { font-size: 30px !important; line-height: 1.4 !important; }

/* Страница проекта: фото слева, текст справа, 50/50 */
.t764 .t-container { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 56px !important; align-items: start !important; max-width: 1240px !important; }
.t764__col, .t764__col_first { float: none !important; width: 100% !important; max-width: 100% !important; min-width: 0 !important; }
.t764__col_first { order: 2 !important; }
.t764__col:not(.t764__col_first) { order: 1 !important; }
.t764__title { font-family: "Bodoni MT", Didot, Georgia, serif !important; font-weight: 400 !important; font-size: clamp(30px, 3.4vw, 52px) !important; line-height: 1.06 !important; }
.t764__descr { font-size: 16px !important; line-height: 1.75 !important; max-width: 100% !important; }
@media (max-width: 960px) { .t764 .t-container { grid-template-columns: 1fr !important; gap: 28px !important; } }

/* Стрелки: чёрный треугольник, по краям кадра, без прыжков */
.t-slds__arrow_container { opacity: 1 !important; }
.t-slds__arrow { opacity: 1 !important; transition: none !important; }
.t-slds__arrow svg { display: none !important; }
.t-slds__arrow::after { content: ""; position: absolute; left: 0; top: 0; right: 0; bottom: 0; background-repeat: no-repeat; background-position: center; background-size: 20px 24px; }
.t-slds__arrow-left::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 2 L3 12 L18 22 Z' fill='%23000000'/%3E%3C/svg%3E"); }
.t-slds__arrow-right::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 2 L21 12 L6 22 Z' fill='%23000000'/%3E%3C/svg%3E"); }

/* Широкие экраны */
@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 (max-width: 640px) { .t1272 .t-menu-base, .t1272 .t-menu-base__maincontainer { height: 76px !important; } .t1272 .t-menu-base__logo img { height: 34px !important; } }

/* Скрыть значок Tilda */
.t-tildalаbеl, #tildalabel, .t-tildalаbеl__wrapper { display: none !important; }
/* в плитке — только название */
.t401__textwrapper__content > *:not(.t401__title) { display: none !important; }
.t401__textwrapper__content .t401__title { color: #fff !important; font-size: 13.5px !important; font-weight: 400 !important; line-height: 1.3 !important; }

/* колонка с картинкой всегда слева, текст всегда справа */
.t764 .t-container > .t764__col:has(.t-slds), .t764 .t-container > .t764__col:has(img), .t764 .t-container > .t764__col:has([style*="background-image"]) { order: 1 !important; }
.t764 .t-container > .t764__col:not(:has(.t-slds)):not(:has(img)):not(:has([style*="background-image"])) { order: 2 !important; }

/* текст по ширине, как в книге */
.t764__descr, .t764__descr p, .t764__textwrapper, .t764__textwrapper p, .t764 .t-text { text-align: justify !important; text-justify: inter-word !important; -webkit-hyphens: auto !important; hyphens: auto !important; }
.t764__descr { text-align-last: left !important; }
