@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

html {
  scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
}

header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 50px 30px 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
}
.lang-btn {
    background: none;
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 1em;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}
.lang-btn.active, .lang-btn:focus {
    background: #fff;
    color: #dc0404;
    outline: none;
}
.lang-btn:hover {
    background: #fff2;
}

@media (max-width: 900px) {
    header {
        flex-direction: column;
        align-items: stretch;
        padding: 18px 12px;
    }
    .logo {
        font-size: 1.3em;
        margin-bottom: 10px;
        text-align: center;
    }
    .mainmenu {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        margin: 10px 0 0 0;
    }
    .mainmenu a {
        margin: 4px 0;
        padding: 10px 18px;
        font-size: 1.1em;
        width: 100%;
        text-align: center;
    }
    .lang-switcher {
        justify-content: center;
        margin-bottom: 6px;
    }
}

@media (max-width: 600px) {
    header {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
        width: 100%;
        box-sizing: border-box;
    }
    .logo {
        display: none;
    }
    .mainmenu {
        margin-top: 0px;
        display: flex;
        flex-direction: row;
        margin-right: -60px;
        justify-content: flex-end;
        align-items: center;
        flex-wrap: wrap;
        width: 100%;
        padding: 0 5px;
        box-sizing: border-box;
        margin-bottom: 10px; /* Space before language switcher */
    }
    .mainmenu a {
        font-size: 0.7em;
        padding: 4px 8px;
        margin: 2px;
        color: #fff;
        text-decoration: none;
        white-space: nowrap; /* Prevent text within a single link from wrapping */
        border-radius: 3px;
    }
    .lang-switcher {
      display: flex;
      flex-direction: row;
      justify-content: flex-end;
      align-items: center;
      width: 100%;
      padding: 0 8px 6px 8px;
      margin: 0 0 4px 0;
      gap: 6px;
      box-sizing: border-box;
      order: -1;
    }
    .lang-btn {
        margin-top: -170px;
      background: transparent;
      border: 1px solid #fff;
      color: #fff;
      font-size: 0.7em;
      font-weight: 600;
      padding: 3px 10px;
      border-radius: 4px;
      cursor: pointer;
      transition: background 0.2s, color 0.2s;
        background-color: transparent;
        border: 1px solid #fff;
        border-radius: 3px;
        text-decoration: none;
        line-height: 1.2; /* Adjust for small button height */
        cursor: pointer;
    }
    .lang-btn:hover,
    .lang-btn.active,
    .lang-btn:focus {
        background-color: #fff;
        color: #333; /* Dark text on white background for active/hover */
    }

    .parallax {
        height: 48vh;
    }
    .parallax img#logos {
        width: 170px;
        height: 170px;
        top: 25%;
    }
    #typed-text {
        font-size: 1.8em;
        top: 40%;
    }
    .sec h2 {
      padding-top: 32px;
    }
    .sec {
      padding: 0 12px 40px;
    }
    .cta-btn{
      top:calc(60% + 80px);
      font-size:0.9em;
      padding:12px 28px;
      white-space: nowrap;
    }
  .mainmenu a {
    background: none !important;
    color: #fff !important;
  }
  .mainmenu a:hover,
  .mainmenu a:active,
  .mainmenu a:focus,
  .mainmenu a.active,
  .mainmenu a[aria-current] {
    background: none !important;
    color: #fff !important;
    box-shadow: none !important;
    border: none !important;
  }
  .mainmenu a,
  .mainmenu a * {
    color: #fff !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    font-weight: 600 !important;
  }
  .mainmenu a::before,
  .mainmenu a::after,
  .mainmenu a.active::before,
  .mainmenu a.active::after {
    background: none !important;
    box-shadow: none !important;
    border: none !important;
  }
}

@media (max-width: 600px) {
    nav.mainmenu a,
    nav.mainmenu a * {
      color: #fff !important;
      background: none !important;
      font-weight: 600 !important;
      box-shadow: none !important;
      border: none !important;
      text-shadow: none !important;
    }
    nav.mainmenu a.active,
    nav.mainmenu a[aria-current] {
      background: #fff !important;
      color: #111 !important;
      border-radius: 8px !important;
      box-shadow: none !important;
      text-shadow: none !important;
    }
    nav.mainmenu a.active *,
    nav.mainmenu a[aria-current] * {
      color: #111 !important;
    }
    nav.mainmenu a span,
    nav.mainmenu a.active span,
    nav.mainmenu a[aria-current] span {
      background: none !important;
      opacity: 0 !important;
      transform: scale(0) !important;
    }
  }

@media (max-width: 600px) {
  nav.mainmenu a,
  nav.mainmenu a * {
    color: #fff !important;
    background: none !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    border: none !important;
    text-shadow: none !important;
  }
  nav.mainmenu a.active,
  nav.mainmenu a[aria-current] {
    background: #fff !important;
    color: #111 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  nav.mainmenu a.active *,
  nav.mainmenu a[aria-current] * {
    color: #111 !important;
  }
  nav.mainmenu a span,
  nav.mainmenu a.active span,
  nav.mainmenu a[aria-current] span {
    background: none !important;
    opacity: 0 !important;
    transform: scale(0) !important;
  }
}

@media (max-width: 600px) {
  nav.mainmenu a.active,
  nav.mainmenu a[aria-current] {
    background: #fff !important;
    color: #111 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  nav.mainmenu a.active *,
  nav.mainmenu a[aria-current] * {
    color: #111 !important;
    background: transparent !important;
  }
  nav.mainmenu a.active span,
  nav.mainmenu a[aria-current] span {
    background: #fff !important;
    opacity: 1 !important;
    transform: scale(1) !important;
    border-radius: 8px !important;
  }
  nav.mainmenu a:not(.active):not([aria-current]),
  nav.mainmenu a:not(.active):not([aria-current]) * {
    color: #fff !important;
    background: none !important;
  }
}

.logo {
    font-size: 2em;
    color: #fff;
    user-select: none;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

nav.mainmenu a {
    position: relative;
    z-index: 0;                /* текст выше фонового span */
    font-size: 1.1em;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    margin-left: 20px;
    padding: 6px 15px;
    transition: color .5s;
  }
  nav.mainmenu a span {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #fff;
    border-radius: 30px;
    z-index: -1;               /* фон под текстом */
    transform: scale(0);
    opacity: 0;
    transition: transform .5s, opacity .5s;
    pointer-events: none;
  }
  nav.mainmenu a:hover {
    color: #000 !important;
  }
  nav.mainmenu a:hover span {
    transform: scale(1);
    opacity: 1;
  }
  

.cta-btn{
    position:absolute;
    /* немного ниже typed-text: при необходимости подкорректируйте */
    top:calc(50% + 140px);      /* 50 % — середина экрана, +140 px — смещение вниз */
    left:50%;
    transform:translate(-50%,0);
    z-index:10;
  
    padding:14px 34px;
    font-size:1.1em;
    font-weight:600;
    letter-spacing:0.03em;
    color:#fff !important;
    background:#dc0404;
    border:none;
    border-radius:40px;
    text-decoration:none;
    cursor:pointer;
    box-shadow:0 3px 8px rgba(0,0,0,0.35);
    transition:background 0.3s, transform 0.3s;
  }
  .cta-btn:hover{
    background:#ff0000;
    transform:translate(-50%,-2px);
  }
  .about-btn-center {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 32px;
  }
  .about-bottom-btn {
    display: inline-block;
    position: static;
    left: auto;
    top: auto;
    margin: 0 auto;
    padding: 14px 34px;
    transition: box-shadow 0.3s, background 0.3s, transform 0.7s cubic-bezier(.4,1.4,.4,1);
    will-change: transform, opacity;
}

/* Кнопка вылетает справа (десктоп) */
.fly-in-contact {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.about-btn-center .about-bottom-btn {
    opacity: 0;
    pointer-events: none;
    transform: translateX(120%);
    transition: box-shadow 0.3s, background 0.3s, transform 0.7s cubic-bezier(.4,1.4,.4,1), opacity 0.7s cubic-bezier(.4,1.4,.4,1);
    will-change: transform, opacity;
}
.services-btn-center {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 32px;
}
.services-bottom-btn {
    display: inline-block;
    position: static;
    left: auto;
    top: auto;
    color: #fff !important;
    margin: 0 auto;
    padding: 14px 34px;
    transition: box-shadow 0.3s, background 0.3s, transform 0.7s cubic-bezier(.4,1.4,.4,1);
    will-change: transform, opacity;
}
.services-btn-center .services-bottom-btn {
    opacity: 0;
    color: #fff !important;
    pointer-events: none;
    transform: translateX(120%);
    transition: box-shadow 0.3s, background 0.3s, transform 0.7s cubic-bezier(.4,1.4,.4,1), opacity 0.7s cubic-bezier(.4,1.4,.4,1);
    will-change: transform, opacity;
}
.services-btn-center .services-bottom-btn.fly-in-services {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}
.services-btn-center .services-bottom-btn.hide-services-btn {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateX(120%) !important;
}
.about-btn-center .about-bottom-btn.fly-in-contact {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}
.about-btn-center .about-bottom-btn.hide-contact-btn {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateX(120%) !important;
}

.fly-in-contact {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateX(0) !important;
}

.about-btn-center .about-bottom-btn.fly-in-contact {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

/* По умолчанию кнопка видна, но если fly-in-contact нет и секция contact не видна, то скрыта */
.about-btn-center .about-bottom-btn.hide-contact-btn {
    opacity: 0;
    pointer-events: none;
    transform: translateX(120%);
}

@media (max-width: 900px) {
  .about-btn-center .about-bottom-btn {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-120%);
  }
  .about-btn-center .about-bottom-btn.fly-in-contact {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }
  .about-btn-center .about-bottom-btn.hide-contact-btn {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateX(-120%) !important;
  }
  .services-btn-center .services-bottom-btn {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-120%);
  }
  .services-btn-center .services-bottom-btn.fly-in-services {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }
  .services-btn-center .services-bottom-btn.hide-services-btn {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateX(-120%) !important;
  }
}

/* Для мобильных — вылетает слева */

/* PRICES SECTION STYLES */

/* CONTACTS FLEX SECTION */
.sec-contact {
    background: #fff8f0;
    padding: 60px 0 40px 0;
    transition: background 0.5s;
}
.sec-contact h2 {
    color: #dc0404;
    font-size: 2em;
    margin-bottom: 32px;
    letter-spacing: 0.04em;
    text-align: center;
}
.contact-flex {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: nowrap;
}
.contact-info, .contact-map, .contact-form {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(220,4,4,0.08), 0 1.5px 6px rgba(0,0,0,0.07);
    padding: 32px 28px 24px 28px;
    min-width: 260px;
    max-width: 320px;
    flex: 1 1 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    border: 2px solid #fff0e0;
    transition: transform 0.22s cubic-bezier(.4,2,.4,1), box-shadow 0.22s, border-color 0.22s;
}
.contact-info:hover, .contact-map:hover, .contact-form:hover {
    transform: translateY(-7px) scale(1.035);
    box-shadow: 0 8px 32px rgba(220,4,4,0.14), 0 2.5px 12px rgba(0,0,0,0.10);
    border-color: #dc0404;
    z-index: 2;
}
.contact-info h3, .contact-form h3, .contact-map h3 {
    color: #dc0404;
    font-size: 1.2em;
    margin-bottom: 12px;
    text-align: center;
}

.contact-flex {
    min-height: 340px;
    display: flex;
    align-items: stretch;
    overflow: visible;
}

.contact-info:hover, .contact-map:hover, .contact-form:hover {
    transform: scale(1.045);
    box-shadow: 0 8px 32px rgba(220,4,4,0.13), 0 2.5px 12px rgba(0,0,0,0.09);
    z-index: 2;
}
@media (max-width: 900px) {
    .contact-info:hover, .contact-map:hover, .contact-form:hover {
        transform: none;
        box-shadow: 0 2px 12px rgba(220,4,4,0.07);
    }
}

.contact-map iframe {
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 2px 12px #0001;
    border: 0;
}

.contact-info h3, .contact-map h3, .contact-form h3 {
    color: #dc0404;
    font-size: 1.2em;
    margin-bottom: 12px;
    text-align: center;
}

.contact-flex {
    min-height: 340px;
    display: flex;
    align-items: stretch;
}


@media (max-width: 900px) {
    .contact-info, .contact-map, .contact-form {
        min-height: unset;
    }
}

.contact-info h3, .contact-form h3, .contact-map h3 {
    color: #dc0404;
    font-size: 1.2em;
    margin-bottom: 12px;
}
.contact-info p, .contact-info ul {
    margin: 6px 0 8px 0;
    color: #333;
    font-size: 1em;
}
.contact-info a {
    color: #dc0404;
    text-decoration: underline;
}
.regions-served ul {
    margin: 6px 0 0 16px;
    padding: 0;
    font-size: 0.97em;
}
.contact-map {
    text-align: center;
    min-width: 250px;
    max-width: 340px;
    padding: 18px 8px 10px 8px;
}
.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}
.contact-form input, .contact-form textarea {
    border: 1.5px solid #dc0404;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 1em;
    font-family: inherit;
    resize: none;
    background: #fff8f0;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus {
    border-color: #b00202;
    box-shadow: 0 0 0 2px #ffeaea;
}
.contact-form button {
    background: #dc0404;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    padding: 10px 0;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 1.5px 6px rgba(220,4,4,0.10);
}
.contact-form button:hover {
    background: #a00202;
    box-shadow: 0 2.5px 10px rgba(220,4,4,0.18);
}
@media (max-width: 1100px) {
    .contact-flex {
        gap: 18px;
    }
    .contact-info, .contact-map, .contact-form {
        min-width: 180px;
        max-width: 99vw;
        padding: 18px 6vw 12px 6vw;
    }
}
@media (max-width: 900px) {
    .contact-flex {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }
    .contact-info, .contact-map, .contact-form {
        min-width: 0;
        max-width: 100vw;
        margin-bottom: 10px;
    }
}

.sec-contact h2 {
    color: #dc0404;
    font-size: 2em;
    margin-bottom: 32px;
    letter-spacing: 0.04em;
    text-align: center;
}
.contact-flex {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: nowrap;
}
.contact-info, .contact-map, .contact-form {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(220,4,4,0.08), 0 1.5px 6px rgba(0,0,0,0.07);
    padding: 32px 28px 24px 28px;
    min-width: 260px;
    max-width: 320px;
    flex: 1 1 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    border: 2px solid #fff0e0;
    transition: transform 0.22s cubic-bezier(.4,2,.4,1), box-shadow 0.22s, border-color 0.22s;
}
.contact-info:hover, .contact-map:hover, .contact-form:hover {
    transform: translateY(-7px) scale(1.035);
    box-shadow: 0 8px 32px rgba(220,4,4,0.14), 0 2.5px 12px rgba(0,0,0,0.10);
    border-color: #dc0404;
    z-index: 2;
}
@media (max-width: 900px) {
    .contact-info, .contact-map, .contact-form {
        min-width: 0;
        max-width: 100vw;
        padding: 18px 6vw 12px 6vw;
    }
    .contact-info:hover, .contact-map:hover, .contact-form:hover {
        transform: none;
        box-shadow: 0 2px 12px rgba(220,4,4,0.07);
        border-color: #fff0e0;
    }
}

.contact-flex {
    min-height: 340px;
    display: flex;
    align-items: stretch;
    overflow: visible;
}

.contact-info:hover, .contact-map:hover, .contact-form:hover {
    transform: scale(1.045);
    box-shadow: 0 8px 32px rgba(220,4,4,0.13), 0 2.5px 12px rgba(0,0,0,0.09);
    z-index: 2;
}
@media (max-width: 900px) {
    .contact-info:hover, .contact-map:hover, .contact-form:hover {
        transform: none;
        box-shadow: 0 2px 12px rgba(220,4,4,0.07);
    }
}

.contact-map iframe {
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 2px 12px #0001;
    border: 0;
}

.contact-info h3, .contact-map h3, .contact-form h3 {
    color: #dc0404;
    font-size: 1.2em;
    margin-bottom: 12px;
    text-align: center;
}

.contact-flex {
    min-height: 340px;
    display: flex;
    align-items: stretch;
}


@media (max-width: 900px) {
    .contact-info, .contact-map, .contact-form {
        min-height: unset;
    }
}

.contact-info h3, .contact-form h3, .contact-map h3 {
    color: #dc0404;
    font-size: 1.2em;
    margin-bottom: 12px;
}
.contact-info p, .contact-info ul {
    margin: 6px 0 8px 0;
    color: #333;
    font-size: 1em;
}
.contact-info a {
    color: #dc0404;
    text-decoration: underline;
}
.regions-served ul {
    margin: 6px 0 0 16px;
    padding: 0;
    font-size: 0.97em;
}
.contact-map {
    text-align: center;
    min-width: 250px;
    max-width: 340px;
    padding: 18px 8px 10px 8px;
}
.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}
.contact-form input, .contact-form textarea {
    border: 1.5px solid #dc0404;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 1em;
    font-family: inherit;
    resize: none;
    background: #fff8f0;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus {
    border-color: #b00202;
    box-shadow: 0 0 0 2px #ffeaea;
}
.contact-form button {
    background: #dc0404;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    padding: 10px 0;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 1.5px 6px rgba(220,4,4,0.10);
}
.contact-form button:hover {
    background: #a00202;
    box-shadow: 0 2.5px 10px rgba(220,4,4,0.18);
}
@media (max-width: 1100px) {
    .contact-flex {
        gap: 18px;
    }
    .contact-info, .contact-map, .contact-form {
        min-width: 180px;
        max-width: 99vw;
        padding: 18px 6vw 12px 6vw;
    }
}
@media (max-width: 900px) {
    .contact-flex {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }
    .contact-info, .contact-map, .contact-form {
        min-width: 0;
        max-width: 100vw;
        margin-bottom: 10px;
    }
}

.sec-prices {
    background: #fff8f0;
    padding: 60px 0 40px 0;
    text-align: center;
}
.sec-prices h2 {
    color: #dc0404;
    font-size: 2em;
    margin-bottom: 32px;
    letter-spacing: 0.04em;
}
.prices-table {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    margin-bottom: 20px;
}
.price-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(220,4,4,0.08), 0 1.5px 6px rgba(0,0,0,0.07);
    padding: 32px 28px 24px 28px;
    min-width: 260px;
    max-width: 320px;
    transition: transform 0.22s cubic-bezier(.4,2,.4,1), box-shadow 0.22s;
    border: 2px solid #fff0e0;
}
.price-card:hover {
    transform: translateY(-7px) scale(1.035);
    box-shadow: 0 8px 32px rgba(220,4,4,0.14), 0 2.5px 12px rgba(0,0,0,0.10);
    border-color: #dc0404;
}
.price-card h3 {
    color: #dc0404;
    font-size: 1.25em;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
}
.price-amount {
    color: #fff;
    background: #dc0404;
    display: inline-block;
    border-radius: 16px;
    padding: 7px 20px 7px 20px;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 16px;
    margin-top: 5px;
}
.price-amount span {
    font-size: 1.18em;
    font-weight: 700;
}
.price-card ul {
    margin: 16px 0 0 0;
    padding: 0 0 0 18px;
    text-align: left;
    color: #333;
}
.prices-note {
    color: #dc0404;
    font-size: 1em;
    margin-top: 18px;
    font-style: italic;
}
@media (max-width: 900px) {
    .prices-table {
        flex-direction: column;
        align-items: center;
        gap: 18px;
    }
    .price-card {
        min-width: 90vw;
        max-width: 97vw;
        padding: 22px 8vw 18px 8vw;
    }
}

@media (max-width: 900px) {
  .about-btn-center .about-bottom-btn {
    opacity: 0;
    transform: translateX(-120%);
    pointer-events: none;
  }
  .fly-in-contact {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }
}

  .about-bottom-btn:hover {
    background: #ff0000;  /* оставляем смену цвета */
    transform: none;      /* отключаем translate */
  }

.parallax {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    overflow: hidden; /* прячет излишки, чтобы лого не вылазило */
}

.parallax video.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scaleX(-1);
}



.parallax img#logos {
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.85));
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 499px;
    height: 499px;
    /* pointer-events: none; */
    z-index: 5;
    
}

.parallax img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
}

#typed-text {
  position: relative;
  z-index: 10;
  color: #fff;
  margin-top: 20px;
  font-size: 1.10em;
  text-align: center;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.7);
  min-height: 40px;
  max-width: 24vw;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
  animation: fadeIn 1s;
}

@media (min-width: 1600px) {
  #typed-text {
    max-width: 28vw;
    top: 42%;
    font-size: 1.3em;
  }
  .sec {
    padding-left: 180px;
    padding-right: 180px;
  }
}


.parallax img#gate-left {
    position: fixed;
    transform: translate(-282px);
}
.parallax img#gate-right {
    position: fixed;
    transform: translate(305px);
}

.sec {
    position: relative;
    background: #020912;
    padding: 30px 100px;
}

.sec-services {
    background: #1c3c5a;
    padding-bottom: 40px;
    color: #111;
}
.sec-services, .sec-services * {
    color: #111 !important;
}

.sec-services h2 {
    color: #fff !important;
}
.sec-services h3 {
    color: #dc0404;
}
.sec-services p, .sec-services ul, .sec-services li, .services-flex, .service-block, .service-text {
    color: #111;
}

.services-flex {
    display: flex;
    flex-direction: column;
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto;
}
.service-block {
    display: flex;
    align-items: center;
    gap: 36px;
    background: #fff8f0;
    border-radius: 28px;
    box-shadow: 0 4px 32px #0002;
    padding: 32px 40px;
    flex-wrap: wrap;
}
.service-block-reverse {
    flex-direction: row-reverse;
}
.service-img {
    width: 260px;
    height: 260px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 2px 16px #0001;
    border: 5px solid #fff;
    background: #fff;
    flex-shrink: 0;
    margin-bottom: 0;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.7s cubic-bezier(.4,1.4,.4,1), transform 0.7s cubic-bezier(.4,1.4,.4,1);
}
.service-img.img-in-view {
    opacity: 1;
    transform: scale(1);
    animation: pulse-heart 2.1s cubic-bezier(.4,1.4,.4,1) infinite;
}

@keyframes pulse-heart {
  0%   { transform: scale(1); }
  10%  { transform: scale(1.07); }
  22%  { transform: scale(0.98); }
  34%  { transform: scale(1.04); }
  45%  { transform: scale(0.99); }
  60%  { transform: scale(1.03); }
  70%  { transform: scale(1); }
  100% { transform: scale(1); }
}
.service-img-right {
    object-fit: contain;
}
.service-img-left {
    object-fit: cover;
}
.service-text {
    flex: 1;
    min-width: 220px;
}
.service-text h3 {
    font-size: 2em;
    margin-bottom: 12px;
    color: #dc0404 !important;
}
.service-text p {
    font-size: 1.1em;
    margin-bottom: 14px;
    color: #222;
    font-weight: 400;
}
.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 28px;
    font-size: 1.08em;
    color: #333;
}
.service-features li {
    background: #fff0e0;
    border-radius: 12px;
    padding: 8px 18px;
    box-shadow: 0 1px 4px #0001;
    font-weight: 500;
}
@media (max-width: 900px) {
    .service-block, .service-block-reverse {
        flex-direction: column !important;
        align-items: flex-start;
        padding: 28px 14px;
        gap: 22px;
    }
    .service-img {
        margin: 0 auto;
        max-width: 200px;
        max-height: 200px;
        min-width: 200px;
        min-height: 200px;
    }
    .service-features {
        flex-direction: column;
        gap: 10px;
    }
}

.sec-contact {
    background: #000000;
    color: #ffffff;
}

.sec-contact a {
    color: #0a4b78;
    text-decoration: underline;
}

.sec-contact,
.sec-contact p,
.sec-contact a {
    color: #222 !important;
}
.sec-contact h2 {
    color: #fff !important;
}

.sec-contact a {
    text-align: center;
}
.sec h2 {
    font-size: 2em;
    color: #fff;
    margin-bottom: 10px;
    text-align: center;
}

#about h2 {
    color: #fff;
    text-align: center;
    font-size: 2em;
    margin-bottom: 18px;
    letter-spacing: 0.02em;
    font-weight: 700;
}

.sec p {
    font-size: 1em;
    color: #fff;
    font-weight: 300;
    text-align: justify;
    text-indent: 2em;
}

/* Для контактов убираем красную строку */
.sec-contact p {
    text-indent: 0;
}

/* Анимация контейнера и дуги */
.about-img-anim {
  position: relative;
  display: inline-block;
  vertical-align: top;
}

.about-img-arc {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.about-img-right {
  position: relative;
  z-index: 3;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.7s cubic-bezier(.4,1.4,.4,1), transform 0.7s cubic-bezier(.4,1.4,.4,1);
}

.about-img-anim.about-img-anim-visible .about-img-right {
  opacity: 1;
  transform: scale(1);
}

.lang-switcher {
    display: flex;
    gap: 8px;
    margin: 0 0 10px 0;
    justify-content: flex-start;
    align-items: center;
  }
  .lang-btn {
    background: #fff;
    color: #222;
    border: 1px solid #bbb;
    border-radius: 4px;
    padding: 2px 10px;
    font-size: 0.97em;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border 0.2s;
  }
  .lang-flag {
    padding: 2px 2px;
    width: 32px;
    height: 22px;
    background: none;
    border: 2px solid transparent;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .lang-flag svg {
    display: block;
    width: 26px;
    height: 18px;
    border-radius: 3px;
    box-shadow: 0 1px 2px #0001;
  }
  .lang-flag.active,
.lang-flag:focus {
  border-color: #1ec900;
  background: #e7ffe5;
  box-shadow: 0 0 0 3px #1ec90055, 0 2px 8px #1ec90022;
  transform: scale(1.09);
  z-index: 2;
}
.lang-flag:hover {
  box-shadow: 0 0 0 2px #0066ff33, 0 1px 4px #0066ff22;
  transform: scale(1.04);
}
  .lang-btn.active,
  .lang-btn:focus {
    background: #222;
    color: #fff;
    border-color: #222;
    outline: none;
  }
  .lang-switcher {
    margin-bottom: 8px;
  }

@media (max-width: 900px) {
  .d-mobile-only.about-img-anim.about-img-anim-visible .about-img-right {
    opacity: 1;
    transform: scale(1);
  }
}

/* Картинка справа в about */
.about-img-right {
    float: right;
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    margin-left: 32px;
    margin-bottom: 8px;
    margin-top: 6px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.13);
    shape-outside: circle(50%);
    clip-path: circle(50%);
}

@media (max-width: 900px) {
  .about-img-right {
    float: none !important;
    shape-outside: none !important;
    clip-path: circle(50%);
    display: block;
    margin: 18px auto 24px auto;
    width: 70vw;
    max-width: 340px;
    height: 70vw;
    max-height: 340px;
    min-width: 120px;
    min-height: 120px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.16);
  }
}

@media (max-width: 600px) {
  .about-img-anim {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .about-img-right {
    float: none;
    display: block;
    margin: 18px auto 24px auto;
    width: 70vw;
    max-width: 340px;
    height: 70vw;
    max-height: 340px;
    min-width: 180px;
    min-height: 180px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.16);
  }
  .d-desktop-only { display: none !important; }
  .d-mobile-only { display: block !important; }
}

@media (min-width: 601px) {
  .d-desktop-only { display: block !important; }
  .d-mobile-only { display: none !important; }
}

@media (max-width: 900px) {
    header {
        padding: 20px 24px;
    }
    .logo {
        font-size: 1.3em;
    }
    .parallax {
        height: 70vh;
    }
    .parallax img#logos {
        width: 220px;
        height: 220px;
        top: 22%;
    }
    .sec {
        padding: 20px 16px;
    }
    .sec h2 {
        font-size: 2em;
    }
    .sec p {
        font-size: 0.95em;
    }
}

@media (max-width: 600px) {
    #typed-text {
        display: block;
        font-size: 0.7em;
        max-width: 90vw;
        margin: 0;
        position: absolute;
        left: 50%;
        top: 60%;
        transform: translate(-50%, -50%);
        text-align: center;
        z-index: 12;
    }
    #tree-left,
    #tree-right {
        display: none;
    }
    .parallax video.bg-video {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100vw;
        height: 48vh;
        min-width: 100vw;
        min-height: 100%;
        object-fit: cover;
        transform: translate(-50%, -50%) scaleX(-1);
        z-index: 0;
        pointer-events: none;
    }
    html, body {
        width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    header {
        flex-direction: row;
        align-items: center;
        padding: 12px 6px;
    }
    .logo {
        display: none;
    }
    .navigation {
        width: 100vw;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 0 8px;
        box-sizing: border-box;
    }
    .navigation a {
        margin: 0 2px;
        font-size: 1em;
        padding: 4px 6px;
    }
    .parallax {
        height: 48vh;
    }
    .parallax img#logos {
        width: 120px;
        height: 120px;
        top: 30%;
    }
    .parallax img {
        width: 100vw;
        height: auto;
        min-width: 100%;
        min-height: 100%;
    }
    .sec h2 {
        font-size: 1.2em;
    }
    .sec p {
        font-size: 0.85em;
    }
    .sec {
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        padding: 0 12px;
    }
}
/* ======= РљРћРќР•Р¦ РђР”РђРџРўРР’Рђ ======= */

@media (max-width: 600px) {
  .sec h2 {
    padding-top: 32px;
  }
  .sec {
    padding: 0 12px 40px;  /* СЃРІРµСЂС…Сѓ 0, РїРѕ Р±РѕРєР°Рј 12 px, СЃРЅРёР·Сѓ 40 px */
  }
  .cta-btn{
    top:calc(60% + 80px);
    font-size:0.9em;
    padding:12px 28px;
  }
}

