@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Michroma&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* Базовый ресет стилей */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption,
tbody, tfoot, thead, tr, th, td, article, aside,
canvas, details, embed, figure, figcaption, footer,
header, hgroup, menu, nav, output, ruby, section,
summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    outline: none;
}
html { 
    height: 100%; 
    background-color: #050511; 
}
body {
    font-size: 62.5%;
    line-height: 1;
    font-family: Arial, Tahoma, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden; /* Переопределяется в adaptive.css */
}
article, aside, details, figcaption, figure, footer,
header, hgroup, menu, nav, section { display: block; }
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; }
strong { font-weight: bold; }
input { outline: none; }
table {
    border-collapse: collapse;
    border-spacing: 0;
}
img { border: 0; max-width: 100%; }
a { text-decoration: none; color: #ffffff;}

/* --- Основная структура --- */

.vertical-wrapper {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: auto;
}

.horizontal-wrapper {
    display: flex;
    flex-direction: row;
    width: 100vw;
    height: 100vh;
    white-space: nowrap;
}

.section {
    min-width: 100vw;
    height: 100vh;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.container{
    max-width: 1300px;
    height: 100%;
    width: calc(100% - 20px);
    display: flex;
    margin: 0 auto;
    flex-direction: column;
    font-family: Montserrat, sans-serif;
    text-align: left;
    white-space: normal;
    word-wrap: break-word;
    color: #ffffff;
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    clip: rect(0,0,0,0);
    border: 0;
}

/* --- Главная секция --- */
.main{
    background-image: url("../images/bg_main.png");
    background-size: cover;
    background-position: top right;
    background-position-y: -70px;
}

/* --- Header --- */
header {
    width: calc(100% - 20px);
    max-width: 1300px;
    display: flex;
    gap: 30px;
    height: 50px;
    justify-content: right;
    align-items: center;
    font-family: Inter, sans-serif;
    position: absolute;
    left: 50%;
    z-index: 50;
    transform: translateX(-50%);
    top: clamp(10px, 5vw, 30px);
    transition: opacity 0.5s ease-in-out, margin-top 0.5s ease-in-out;
}

nav { width: auto; }

.menu {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

header a {
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    position: relative;
    text-decoration: none;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    margin-bottom: 5px;
}

header.fade-out { opacity: 0; margin-top: -50px; }
header.fade-in { opacity: 1; margin-top: 0; }

header a::after,
header > a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.5s;
}

header a:hover::after { width: 100%; }

.header_button {
    display: flex;
    color: #000000;
    padding: 10px 17px 10px 17px;
    background-color: #ffffff;
    border-radius: 30px;
    cursor: pointer;
}
.header_button::after { content: none; }

/* --- Main Content --- */
.main_logo_section{
    display: flex;
}
.text_logo_block{
    display: flex;
    flex-direction: column;
    margin-top: 300px;
}
.text_image{
  max-width: 800px;
  width: 100%;
}

.logo-text {
    max-width: 400px;
    margin-top: 30px;
    margin-left: 70px;
    font-size: 26px;
    font-weight: 400;
    line-height: 34px;
}

.logo_gif{
  position:relative;
  max-width: 450px;
  width: 100%;
  margin-top: 150px;
  margin-left: 60px;
}

.sectors{
    margin-top: 100px;
    display: flex;
    flex-wrap: nowrap;
    position: sticky;
    left: 0;
    width: 100%;
    pointer-events: none;
}

.sectors img {
    width: 100%;
    display: block;
}

.our_plus_text{
    font-size: 28px;
    font-weight: 800;
    line-height: 35px;
    display: flex;
    position: relative;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.our_plus_text:nth-of-type(1){ margin-top: 40px; margin-left: 50px; }
.our_plus_text:nth-of-type(2){ margin-left: 60px; }
.our_plus_text:nth-of-type(3){ margin-top: 40px; margin-left: 100px; }
.our_plus_text:nth-of-type(4){ margin-left: 100px; }

/* --- Competencies & Services --- */
.competencies {
    background-size: cover;
    background-position: center center;
    position: relative;
}

.bg_1{ background-image: url("../images/bg_1.png"); }
.bg_2{ background-image: url("../images/bg_2.png"); }
.bg_3{ background-image: url("../images/bg_3.png"); }
.bg_4{ background-image: url("../images/bg_4.png"); }
.bg_5{ background-image: url("../images/bg_5.png"); }

.competencies__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.competencies__title {
    font-size: 50px;
    font-weight: 400;
    line-height: 56px;
    text-align: center;
    text-transform: uppercase;
    top: 150px;
    position: relative;
    z-index: 10;
}

.all_comp{
    margin-top: 425px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
}

.competencies__blocks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-top: 250px;
    width: 100%;
}

.competencies__block {
    z-index: 2;
    font-size: 20px;
    font-style: italic;
    font-weight: 400;
    line-height: 23px;
    text-align: center;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    position: absolute;
}

.competencies__block:nth-of-type(1) { margin-left: -75%; margin-top: 30%; }
.competencies__block:nth-of-type(2) { margin-left: -25%; margin-top: -23%; }
.competencies__block:nth-of-type(3) { margin-left: 25%; margin-top: 30%; }
.competencies__block:nth-of-type(4) { margin-left: 75%; margin-top: -23%; }

.right_text_section{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 45px;
    max-width: 600px;
    padding-top: 85px;
    padding-left: 20px;
}

.title_compet_about{
    font-size: 32px;
    font-style: italic;
    font-weight: 400;
    line-height: 38px;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
}

.text_compet_about{
    font-size: 22px;
    font-weight: 400;
    line-height: 26px;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    max-width: 570px;
}

.compet_about_list{ padding-left: 20px; }

.compet_about_elem{
    font-size: 22px;
    font-weight: 400;
    line-height: 26px;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    padding-left: 10px;
}
.compet_about_elem::marker{
    content: url(../images/cube_rose.svg);
}

.competitions_big_image{
    width: auto;
    height: min(70vh, 490px);
}

/* ========================================= */
/* MODAL FORM STYLES */
/* ========================================= */

.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
}

.modal-container {
    background: rgba(20, 10, 60, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    margin: 5% auto;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    color: #fff;
    font-family: Montserrat, sans-serif;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal-btn:hover,
.close-modal-btn:focus {
    color: #fff;
    text-decoration: none;
}

.modal-title {
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.modal-subtitle {
    text-align: center;
    font-size: 14px;
    color: #d0d0d0;
    margin-bottom: 25px;
    line-height: 1.4;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-input, .form-textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px 15px;
    color: #fff;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s, background 0.3s;
}

.form-input:focus, .form-textarea:focus {
    border-color: #ff00de;
    background: rgba(255, 255, 255, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-submit-btn {
    margin-top: 10px;
    padding: 14px;
    background-color: #ffffff;
    color: #000;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    font-family: Inter, sans-serif;
}

.form-submit-btn:hover {
    background-color: #ff9ef4;
    transform: scale(1.02);
}

.form-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background-color: #ccc;
}

.form-response {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
    line-height: 1.4;
    min-height: 20px;
}

.form-response.success { color: #4eff95; }
.form-response.error { color: #ff4e4e; }