/* components.css */

/* ОБЩИЕ КОМПОНЕНТЫ КАРКАСА */
.disabled {
    display: none;
}

/* LOGO */

#logo {
    display: flex;
    min-width: 78px;
    align-items: center;
    overflow: hidden;
    font-weight: 700;
    font-size: 18px;
    color: var(--gr);
    flex-direction: column;
    text-decoration: none;
}

.logo_holder {
    width: 78px;
    height: 78px;
    border: 0;
    box-sizing: border-box;
    border-radius: 7px;
    background-color: var(--gr);
}

.logo_holder svg {
    height: 64px;
    width: 78px;
    margin: 0;
    margin-top: 7px;
    padding: 0;
}

.logo_holder svg path{
    fill: #fff;
    stroke: none;
}

.logo span {
    font-size: 16px;
}

/* Выбор языков */
.lang-selector {
  position: absolute;
  top: 47px;
  left: 30px;
  z-index: 40;
}

.mobile .lang-selector {
  position: relative;
  top: 0;
  left: 0;
  z-index: 50;
}

.custom-select {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.selected-lang {
  padding: 6px 12px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  background-color: transparent;
  color: #fff;
  font-family: "Roboto Condensed";
  font-weight: 500;
  font-size: 22px;
  backdrop-filter: blur(5px);
  display: block;
}

.mobile .selected-lang {
    font-weight: 700;
    font-size: 18px;
    backdrop-filter: none;
    color: var(--lite-gr);
    border: 2px solid var(--lite-gr);
    transition: border 0.5s, color 0.5s;
}

.selected-lang:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.mobile .selected-lang:hover {
    color: var(--gr);
    border: 2px solid var(--gr);
}

.lang-options {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-top: none;
  border-radius: 0 0 4px 4px;
  z-index: 50;
  overflow: hidden;
}

.lang-options li {
    padding: 6px 12px;
    color: #fff;
    font-family: "Roboto Condensed";
    font-weight: 400;
    cursor: pointer;
    background-color: #98b689a3;
    transition: background-color 0.5s ease-in-out;
}

.lang-options li:hover {
  background-color: #6f8863d5;
}

.lang-options li.active {
  background-color: rgba(255, 255, 255, 0.2);
}

.mobile .lang-options li.active {
    background-color: var(--gr);
}

.menu {
  display: flex;
  align-items: center;
  gap: 20px;
}



.m-switch {
    transition: transform 1s ease;
    align-items: center;
    display: flex;
    cursor: pointer;
    padding: 12px 0;
}

.m-show .m-switch{
  transform: scale(1, -1);
}

.icon-menu {
    stroke-width: 4px;
    stroke: var(--lite-gr);
    transition: 0.5s stroke;
}

.mobile .icon-menu:hover {
    stroke: var(--gr);
}

a {
  color: var(--lite-gr);
}

a, label, li, button, .m-switch, .custom-select, .lang-options, .selected-lang, .hor-card, .slide-area, .slide {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.footer a {
    color: var(--gr);
    font-weight: 500;
}

.footer a:visited {
  color: var(--gr);
}

.menu a {
  text-decoration: none;
  font-weight: 500;
  font-size: 28px;
  transition: color 0.3s;
}

a:hover {
  color: var(--gr);
}

/* Секции */
section {
    scroll-margin-top: 140px;
    padding-top: 120px;
    padding-bottom: 0;
}

.mobile section {
    scroll-margin-top: 120px;
    padding-top: 0;
    padding-bottom: 100px;
}

.mobile .services-section:not(:first-child) {
  padding-top: 60px;
}

h1 {
    -webkit-font-smoothing: antialiased;
}

/* Заголовки */
section h1 {
    font-size: var(--h_font-size);
    padding: 40px 10px;
    margin-bottom: 0;
    color: var(--gr);
    font-weight: 500;
    max-width: 700px;
    justify-self: center;
}

/* ========== СЕТКА ПРОДУКТОВ - 2 КОЛОНКИ ========== */
.products-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-left: calc(-1 * var(--row-gap));
}

.product-card {
    background: var(--sup-lite);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    min-height: 320px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    flex: 1 1 180px;
    cursor: pointer;
    margin-left: var(--row-gap);
    margin-bottom: var(--row-gap);
    border: 1px solid var(--lite-gr);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.product-image {
  width: 100%;
  height: 220px; /* Увеличиваем высоту изображения */
  background: linear-gradient(135deg, var(--lite-gr), var(--gr));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.product-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-info h3, .slide-subtitle {
    font-size: calc(var(--p_font-size) - 2px);
    font-weight: 300;
    margin-bottom: 12px;
    color: var(--silv);
    line-height: 1.3;
    word-wrap: break-word;
}

.product-desc {
    font-size: calc(var(--p_font-size) - 2px);
    font-weight: 300;
    color: var(--gr);
    margin-top: auto;
    word-wrap: break-word;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== СПИСОК УСЛУГ ========== */
.services-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    margin-bottom: 20px;
}

#page_connect {
    max-width: 700px;
    width: 100%;
    align-items: center;
    margin: 0 auto;
}

.service-content {
  text-align: center;
  width: 100%;
  height: 100%;
  padding: 16px;
}

.service-content h3 {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 8px;
    padding-left: 130px;
    color: var(--gr);
}

.service-content p {
    font-size: var(--p_font-size);
    padding-left: 133px;
    font-weight: 300;
    color: var(--text-light);
}

.service-card {
    position: relative;
    background: #fff;
    -webkit-mask-image: linear-gradient(#fff 0 0), var(--icon-mask);
    -webkit-mask-repeat: no-repeat, no-repeat;
    -webkit-mask-position: 0 0, 20px center;
    -webkit-mask-size: 100% 100%, 120px 120px;
    -webkit-mask-composite: source-out;
    mask-composite: exclude;
}

/* ========== ФОРМА ЗАКАЗА ========== */
.order-form {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 0;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 300;
  font-size: 22px;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--silv-lite);
    border-radius: 8px;
    font-family: "Roboto Condensed";
    font-size: 22px;
    font-weight: 300;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gr);
}

.submit-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--gr) 0%, var(--lite-gr) 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: "Roboto Condensed";
  font-size: 22px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ========== СЛАЙДЕР ========== */
.slider-section {
  flex: 0 0 100vh;
  height: 100vh;
  max-height: 100vh;
  position: relative;
  background: transparent;
  width: 100%;
}

.mobile .slider-section {
  height: 100vh;
  max-height: 100vh;
}

/* Сам слайдер */
.slider {
  width: calc(50vw - 1px);
  max-width: 1000px;
  height: 100%;
  left: 0;
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 1.2s ease-in-out;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;

  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(50vw - 1px);
  max-width: 1000px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: left center;
  min-width: 100%;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;

  opacity: 0;
  transition: opacity 1.3s ease;
}

.slide.active {
  opacity: 1;
}


.slide.exiting {
  transform: translateX(50vw);
  opacity: 0;
  transition: transform 1.5s ease, opacity 1.3s ease;
}

.slide-block {
    align-self: center;
    width: 100%;
    justify-items: center;
    height: fit-content;
    position: relative;
    z-index: 32;
}

.slide-area {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px;
    height: 100vh;
    background: var(--slider);
    color: var(--text-dark);
    align-content: start;
    display: flex;
    z-index: 33;
}

.slide-area::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(0) contrast(100%) saturate(100%);
  background: rgba(0, 0, 0, 0);
  transition: background 1s ease,
              backdrop-filter 1s ease;
  z-index: 20;
}

.slide-area:hover::before {
  background: rgba(104, 188, 72, 0.4);
  backdrop-filter: blur(7px) contrast(70%) saturate(50%);
}

.slide-block h1 {
    font-size: var(--h_font-size);
    color: white;
    margin-bottom: 8px;
    font-weight: 500;
    text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.7);
    margin: 0 auto;
}

.mobile section h1 {
    font-size: var(--h_font-size);
    margin-bottom: 0;
    padding: 20px 20px;
    padding-bottom: 80px;
}

.slide-block p {
    max-width: 500px;
    font-size: calc(var(--p_font-size) + 2px);
    font-weight: var(--slide-block_p_font-weight);
    color: #fff;
    text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.7);
    margin: 0 auto;
}

.mobile .slide-block h1 {
    padding-bottom: 20px;
    max-width: 500px;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.slider-btn {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 20px;
  color: white;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn:hover {
  background: white;
  color: var(--gr);
  border-color: white;
}

/* Статичные слайды в секциях */
.mobile .slide {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 310px;
    max-height: 100vw;
    opacity: 1;
    transform: none;
    transition: none;
    overflow: hidden;
    background-size: cover;
    margin-bottom: 80px;
}

.mobile section:first-child .slide {
    margin-top: -20px;
}

.mobile section:first-child .slide-block {
    margin-top: 60px;
}

.mobile .slide-area {
    max-height: 100vw;
    overflow: hidden;
}

.mobile .slide.active, .mobile .slide.exiting {
    opacity: 1;
    transform: none;
    transition: none;
    border-radius: 14px;
}

.mobile .slider, .mobile .slider-track {
    display: none;
}

/* ========== ИНФО-БЛОК ========== */

.menu-block {
    background-color: #fff;
    position: fixed;
    z-index: 51;
    top: -100%;
    width: calc(50vw - 16px);
    left: 0;
    opacity: 0;
    padding: 20px;
    padding-left: var(--menu_padding);
    padding-top: 160px;
    box-shadow: -10px 17px 20px 0px rgba(0, 0, 0, 0.3);
    transition: top 1s ease, opacity 1s ease;
}

.mobile .menu-block {
    width: 100%;
    padding-left: var(--menu_padding);
}

.links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    text-align: left;
    line-height: 20px;
}

.links a{
    color: var(--silv);
    transition: color 0.5s ease;
    text-decoration: none;
    font-weight: 200;
    font-size: var(--p_font-size);
    text-wrap: nowrap;
    max-width: 250px;
}

.links a:hover{
    color: var(--gr);
}

.menu-block.active {
    top: 0;
    opacity: 1;
}

.contact-info {
    margin-top: auto;
    padding-top: 40px;
    font-weight: 500;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    font-size: var(--p_font-size);
    color: var(--gr);
    padding-bottom: 20px;
}

.contact-info p {
    font-size: var(--p_font-size);
    font-weight: 300;
    margin-bottom: 10px;
    line-height: 40px;
}


.info-block {
  position: absolute;
  bottom: 0;
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  z-index: 51;
}

.info-block h3 {
  font-size: 22px;
  font-weight: 700;
  color: white;
  margin-bottom: 24px;
}

.info-links {
  list-style: none;
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.info-links li {
  flex: 0 0 calc(50% - 15px);
}

.info-links a {
  display: block;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  color: var(--dark-text);
  text-decoration: none;
  font-size: 22px;
  font-weight: 500;
  transition: all 0.3s;
  text-align: center;
}

.info-links a:hover {
  background: white;
  color: var(--gr);
  transform: translateY(-2px);
}

.slide-subtitle {
    display: none;
    padding-bottom: 20px;
    font-size: var(--p_font-size);
    justify-content: center;

}

@media (max-width: 511px) {
    .menu a { display: none; }
    .mobile section:first-child .slide-block {
        margin-top: 20px;
    }
}

@media (max-width: 419px) {
    .mobile section .slide-block h1 {
        line-height: 38px;
    }
    .slide-area {
        padding: 10px;
    }
    .mobile .left-panel .container{
        padding: 10px;
    }
    .mobile .header-container {
        padding: 0 10px;
    }
    .slide-block p { display: none; }
    .slide-subtitle {
        display: flex;
    }
    .mobile section h1 {
        padding-bottom: 20px;
    }
}

@media (max-width: 360px) {

    .mobile section h1 {
        font-size: 32px;
        padding: 0;
        padding-bottom: 20px;
    }

    .service-card {
        -webkit-mask-position: 0 0, 10px calc(50% + 20px);
    }

    .service-content {
        min-height: 180px;
        padding: 8px;
    }

    .service-content h3 {
        padding-left: 0;
    }
}