/* ========================================
   UNIVERSAL TILDA FIX - style.css
   Для al-resto.ru и похожих сайтов
======================================== */

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* === CONTAINER === */
.t-container,
.t-container_100 {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.t-container_100 {
  max-width: 100%;
  padding: 0;
}

/* === HEADER DESKTOP (>980px) === */
.t462 {
  background: #fff;
  position: relative;
  z-index: 1000;
}

.t462__maincontainer {
  max-width: 1200px;
  margin: 0 auto;
}

.t462__topwrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  min-height: 90px;
}

.t462__logowrapper {
  text-align: center;
}

.t462__imglogo {
  max-width: 380px;
  height: auto;
}

.t462__linewrapper {
  padding: 0 20px;
}

.t462__horizontalline {
  border: none;
  height: 1px;
  background: #e0e0e0;
  margin: 0;
}

.t462__bottomwrapper {
  padding: 15px 20px;
}

.t462__list {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.t462__list_item {
  padding: 0 15px !important;
}

.t-menu__link-item {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: #333;
  text-transform: none;
  padding: 10px 0;
  display: inline-block;
  position: relative;
  transition: color 0.3s ease;
}

.t-menu__link-item::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #f18462;
  transition: width 0.3s ease;
}

.t-menu__link-item:hover::after,
.t-menu__link-item.t-active::after {
  width: 100%;
}

.t-menu__link-item:hover {
  color: #f18462;
  opacity: 1;
}

/* === HEADER MOBILE (<980px) === */
.t280 {
  position: relative;
  z-index: 1000;
}

.t280__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: #fff;
  min-height: 60px;
}

.t280__container__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: -1;
}

.t280__logo__container {
  flex: 1;
}

.t280__logo__img {
  height: 30px;
  width: auto;
}

.t280__menu__wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ebebeb;
  z-index: 998;
  display: none;
  padding-top: 80px;
}

.t280__main_opened .t280__menu__wrapper {
  display: block;
}

.t280__menu__container {
  padding: 20px;
}

.t280__list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.t280__menu__item {
  text-align: center;
}

.t280__menu__link {
  font-size: 20px;
  font-weight: 300;
  color: #000;
  display: block;
  padding: 10px 0;
}

/* === BURGER MENU === */
.t-menuburger {
  position: relative;
  width: 28px;
  height: 20px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 999;
}

.t-menuburger span {
  display: block;
  position: absolute;
  width: 100%;
  height: 3px;
  background: #000;
  left: 0;
  transition: 0.25s ease-in-out;
}

.t-menuburger span:nth-child(1) { top: 0; }
.t-menuburger span:nth-child(2),
.t-menuburger span:nth-child(3) { top: 8px; }
.t-menuburger span:nth-child(4) { top: 16px; }

.t-menuburger-opened span:nth-child(1) {
  top: 8px;
  width: 0;
  left: 50%;
}
.t-menuburger-opened span:nth-child(2) {
  transform: rotate(45deg);
}
.t-menuburger-opened span:nth-child(3) {
  transform: rotate(-45deg);
}
.t-menuburger-opened span:nth-child(4) {
  top: 8px;
  width: 0;
  left: 50%;
}

/* === SUBMENU TOOLTIP === */
.t794__tooltip-menu {
  position: absolute;
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.15);
  padding: 15px 20px;
  min-width: 150px;
  z-index: 1001;
  display: none;
}

.t794__list_item {
  padding: 8px 0;
  font-size: 14px;
  color: #333;
}

.t794__link {
  color: #333;
  transition: color 0.3s ease;
}

.t794__link:hover {
  color: #f18462;
  opacity: 1;
}

/* === SLIDER / COVER === */
.t734,
.t-slds {
  position: relative;
  overflow: hidden;
}

.t-slds__items-wrapper {
  display: flex;
  transition: transform 0.5s ease;
}

.t-slds__item {
  flex: 0 0 100%;
  min-width: 100%;
}

.t-cover {
  position: relative;
  height: 500px;
  overflow: hidden;
}

.t-cover__carrier {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.t-cover__filter {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
}

.t734__table {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  height: 500px;
}

.t734__wrapper {
  max-width: 800px;
  padding: 40px;
}

.t734__title {
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.t734__descr {
  font-size: 20px;
  color: #fff;
  margin-bottom: 30px;
  line-height: 1.5;
}

.t734__button .t-btn {
  display: inline-block;
  padding: 12px 30px;
  border: 2px solid #fff;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.t734__button .t-btn:hover {
  background: #fff;
  color: #333;
  opacity: 1;
}

/* Slider Arrows */
.t-slds__arrow_wrapper {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
}

.t-slds__arrow_wrapper-left { left: 20px; }
.t-slds__arrow_wrapper-right { right: 20px; }

.t-slds__arrow {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.t-slds__arrow:hover {
  background: #fff;
  transform: scale(1.1);
}

.t-slds__arrow svg {
  width: 12px;
  height: auto;
}

.t-slds__arrow-left svg {
  transform: rotate(180deg);
}

/* Slider Bullets */
.t-slds__bullet_wrapper {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 20;
}

.t-slds__bullet_body {
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.t-slds__bullet_active .t-slds__bullet_body,
.t-slds__bullet_body:hover {
  background: #fff;
}

/* === TABS === */
.t397 {
  padding: 40px 0;
}

.t397__wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  border-bottom: 1px solid #eee;
}

.t397__tab {
  padding: 15px 25px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: all 0.3s ease;
}

.t397__tab:hover {
  border-bottom-color: #ddd;
}

.t397__tab_active {
  border-bottom-color: #222 !important;
}

.t397__title {
  font-size: 16px;
  font-weight: 400;
  color: #666;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.3s ease;
}

.t397__tab_active .t397__title {
  color: #222;
  font-weight: 600;
}

.t397__wrapper_mobile {
  display: none;
}

/* === CARDS GRID (t856) === */
.t856__container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.t856__col {
  position: relative;
  overflow: hidden;
}

.t856__table {
  position: relative;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.t856__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.t856__col:hover .t856__bg {
  transform: scale(1.1);
}

.t856__textwrapper {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  transition: background 0.3s ease;
}

.t856__col:hover .t856__textwrapper {
  background: rgba(0,0,0,0.6);
}

.t856__img {
  max-width: 120px;
  filter: brightness(0) invert(1);
}

/* === CARDS (t688) === */
.t688 {
  padding: 20px 0;
}

.t688__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.t688__col {
  width: 100%;
}

.t688__inner-col {
  background: #f7f7f7;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.t688__inner-col:hover {
  box-shadow: 0 5px 25px rgba(0,0,0,0.15);
  transform: translateY(-5px);
}

.t688__img-wrapper {
  position: relative;
  padding-top: 60%;
  overflow: hidden;
}

.t688__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.t688__inner-col:hover .t688__img {
  transform: scale(1.1);
}

.t688__textwrapper {
  padding: 25px;
  text-align: center;
}

.t-card__uptitle {
  font-size: 11px;
  font-weight: 500;
  color: #f18462;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.t-card__title {
  font-size: 20px;
  font-weight: 400;
  color: #222;
  margin-bottom: 12px;
}

.t-card__descr {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

/* === LOGO GRID (t595) === */
.t595__container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 40px 20px;
}

.t595__item {
  flex: 0 0 auto;
  padding: 20px;
}

.t595__img {
  max-width: 80px;
  height: auto;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  filter: grayscale(100%);
}

.t595__item:hover .t595__img {
  opacity: 1;
  filter: grayscale(0%);
}

.t595__line {
  display: none;
}

/* === ABOUT SECTION === */
.t107 {
  text-align: center;
  padding: 40px 20px;
}

.t107__widthauto {
  max-width: 200px;
  margin: 0 auto;
}

.t022 {
  padding: 20px;
}

.t022__text {
  font-size: 16px;
  color: #666;
  line-height: 1.8;
  max-width: 500px;
  margin: 0 auto;
}

/* === BUTTON === */
.t142 {
  text-align: center;
  padding: 30px 20px;
}

.t142__submit {
  display: inline-block;
  padding: 15px 40px;
  border: 1px solid #000;
  color: #000;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 3px;
  background: transparent;
  transition: all 0.3s ease;
}

.t142__submit:hover {
  background: #000;
  color: #fff;
  opacity: 1;
}

/* === FOOTER === */
.t420 {
  background: #111;
  padding: 60px 0;
}

.t420 .t-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.t420__col {
  width: 100%;
}

.t420__logo {
  display: inline-block;
  margin-bottom: 20px;
}

.t420__logo img {
  max-width: 180px;
}

.t420__text {
  font-size: 13px;
  color: #666;
}

.t420__title {
  font-size: 12px;
  font-weight: 600;
  color: #525252;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.t420__descr {
  font-size: 13px;
  color: #fff;
}

.t420__descr ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.t420__descr li {
  padding: 6px 0;
}

.t420__descr a {
  color: #fff;
  transition: color 0.3s ease;
}

.t420__descr a:hover {
  color: #f18462;
  opacity: 1;
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
  .t688__row {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .t856__container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 980px) {
  /* Hide desktop header */
  .t-screenmin-980px {
    display: none !important;
  }
  
  /* Show mobile elements */
  .t-screenmax-980px {
    display: block !important;
  }
  
  .t-cover {
    height: 400px;
  }
  
  .t734__table {
    height: 400px;
  }
  
  .t734__title {
    font-size: 28px;
  }
  
  .t734__descr {
    font-size: 16px;
  }
  
  .t688__row {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .t856__container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .t397__wrapper {
    display: none;
  }
  
  .t397__wrapper_mobile {
    display: block;
  }
  
  .t397__select {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    appearance: none;
    cursor: pointer;
  }
  
  .t420 .t-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .t688__row {
    grid-template-columns: 1fr;
  }
  
  .t856__container {
    grid-template-columns: 1fr;
  }
  
  .t856__table {
    height: 150px;
  }
  
  .t-cover {
    height: 350px;
  }
  
  .t734__table {
    height: 350px;
  }
  
  .t734__wrapper {
    padding: 20px;
  }
  
  .t734__title {
    font-size: 24px;
  }
  
  .t734__descr {
    font-size: 14px;
  }
  
  .t-slds__arrow_wrapper {
    display: none;
  }
  
  .t420 .t-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .t595__container {
    gap: 20px;
  }
  
  .t595__item {
    padding: 10px;
  }
  
  .t595__img {
    max-width: 60px;
  }
}

@media (max-width: 480px) {
  .t734__title {
    font-size: 20px;
  }
  
  .t734__descr {
    font-size: 13px;
  }
  
  .t-cover {
    height: 300px;
  }
  
  .t734__table {
    height: 300px;
  }
  
  .t688__textwrapper {
    padding: 20px;
  }
  
  .t-card__title {
    font-size: 18px;
  }
}

/* === VISIBILITY HELPERS === */
.t-slds {
  visibility: visible !important;
}

.t-records {
  opacity: 1 !important;
}

/* === LAZY LOAD FIX === */
.t-bgimg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* === PRINT === */
@media print {
  .t280,
  .t462,
  .t-menuburger {
    display: none !important;
  }
}