/* ========== style.css — обновлённый, адаптивный, сохранивший визуал ========== */

/* Подключаем шрифт (как и у тебя) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root{
    font-size: clamp(14px, 0.95vw, 18px);
    --navbar-height: 4.375rem;
    --avatar-size: 3.125rem;
    --content-num-size: 3.125rem;
    --content-number-font: 1.125rem;
    --hero-title: clamp(2.2rem, 5vw, 4.5rem);
    --hero-subtitle: clamp(1rem, 2vw, 1.8rem);
    --section-padding-vertical: 5rem;
}

/* ========== RESET ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
    overflow-x: hidden;
}

/* ========== ФОНЫ ========== */
.background-images {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.05) 0%,
        rgba(118, 75, 162, 0.05) 25%,
        rgba(240, 147, 251, 0.05) 50%,
        rgba(79, 172, 254, 0.05) 75%,
        rgba(0, 242, 254, 0.05) 100%);
}

/* ========== NAVBAR ========== */
/* Скрываем всё по-умолчанию (на десктопе) */
.mobile-hamburger,
.mobile-drawer,
.mobile-drawer-backdrop {
  display: none;
}


.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: white;
    z-index: 1000;
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    padding: 0;
    border-bottom: .125rem solid #eaeaea;
    transition: background 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: .0625rem solid #eaeaea;
}

.nav-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 1.25rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
}

.logo h1 {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1.8px;
    line-height: 1;
}

.avatar-wrap { display:block; }
.avatar {
  display: block;
  width: var(--avatar-size);
  height: var(--avatar-size);
  object-fit: cover;
  border-radius: .25rem;
}

.main-img {
  max-width: 31.25rem;
  max-height: 31.25rem;
  object-fit: cover;
}
.client-img {
  max-width: 62.5rem;
  max-height: 62.5rem;
  object-fit: cover;
  width: 100%;
}

.nav-center {
    position: absolute;
    left: 0;
    display: flex;
    gap: 1.25rem;
    padding-left: 1.875rem;
}

.nav-link {
    color: #666666;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -1px;
    border-radius: .5rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    transform: translateY(-.0625rem);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: .125rem;
    bottom: 0;
    left: 50%;
    background: #666666;
    transition: all 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

.social-links {
    position: absolute;
    right: 0;
    display: flex;
    gap: .75rem;
    padding-right: 1.25rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    color: #474747;
    text-decoration: none;
    border-radius: .5rem;
    font-size: .75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: .0625rem solid rgba(0, 0, 0, 0.52);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-.125rem);
}

section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--section-padding-vertical) 0;
}

.section-content {
    max-width: 56.25rem;
    margin: 0 auto;
    padding: 0 2.5rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-section {
    background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('images/bg9.jpg') center/cover no-repeat;
    color: #fff;
    text-align: center;
}

.hero-content {
    padding: 2.5rem 1.25rem;
}

.hero-title {
    font-size: var(--hero-title);
    font-weight: 700;
    margin-bottom: 1.875rem;
    color: #fff;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    font-family: 'Inter', sans-serif;
    min-height: 1.2em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: var(--hero-subtitle);
    font-weight: 300;
    color: #fff;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
    font-family: 'Inter', sans-serif;
    min-height: 1.2em;
    line-height: 1.2;
}

.cursor {
    display: inline-block;
    color: #fff;
    font-weight: 100;
    animation: blink 1s infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-subtitle.fade-in-subtitle {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-out;
}

.hero-subtitle.fade-in-subtitle.show {
    opacity: 1;
    transform: translateY(0);
}

.smart-scroll-indicator {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    z-index: 999;
    cursor: pointer;
}

.scroll-arrow {
    width: 3.125rem;
    height: 3.125rem;
    background: rgba(0,0,0,0.8);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
    transition: all 0.3s ease;
    border: .125rem solid rgba(255,255,255,0.2);
}

.scroll-arrow:hover {
    background: rgba(0,0,0,0.9);
    transform: scale(1.1);
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: .125rem solid rgba(255,255,255,0.3);
    animation: simplePulse 2s infinite;
}

@keyframes simplePulse {
    0% { transform: scale(1); opacity: 0; }
    100% { transform: scale(1.1); opacity: 0.5; }
}

/* ========== Between Section  ========== */
.between-section {
    position: relative;
    min-height: 40.75rem;
    text-align: center;
    color: #fff;
    padding: 0;
    overflow: hidden;
}

.between-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
}

.between-section .section-title {
    font-size: 2.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* ========== Content Section ========== */
.content-section {
    background: rgba(255,255,255,0.95);
}

.section-title-blue {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 3.75rem;
    text-align: center;
}

.content-list {
    max-width: 50rem;
    margin: 0 auto;
}

.content-item {
    display: flex;
    align-items: center;
    margin-bottom: 3.125rem;
    text-align: left;
    position: relative;
    gap: 1.25rem;
}

.content-item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: calc(var(--content-num-size)/2);
    top: calc(var(--content-num-size));
    width: 0.125rem;
    height: calc(100% + var(--content-num-size));
    background: #26398b;
    z-index: 1;
}

.content-number {
    width: var(--content-num-size);
    height: var(--content-num-size);
    background: #26398b;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--content-number-font);
    margin-right: 0;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(30,58,138,0.3);
    z-index: 2;
}

.content-text h3 {
    font-size: 1.375rem;
    margin-bottom: .75rem;
    color: #333;
}

.content-link {
    color: #26398b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-link:hover {
    color: #b3b3b3;
}

.content-text p {
    color: #666;
    line-height: 1.7;
    font-size: 1rem;
}

/* Для секции описания на ПК */
.description-section .description-text {
    font-size: 1.15rem; /* увеличить текст на ПК */
    line-height: 1.8;
}

.description-section .cat-illustration svg {
    width: 250px;   /* увеличить картинку */
    height: 200px;
}


/* ========== Accordion Section ========== */
.main-section {
    background: rgba(248,250,252,0.95);
}

.company-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 3.75rem;
    text-align: left;
    max-width: 50rem;
    margin-left: auto;
    margin-right: auto;
}

.accordion-container {
    max-width: 50rem;
    margin: 0 auto;
}

.accordion-item {
    background: #fff;
    margin-bottom: 1.25rem;
    border-radius: .75rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: .0625rem solid rgba(0,0,0,0.05);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5625rem 1.875rem;
    cursor: pointer;
    background: #fff;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: #f8fafc;
}

.accordion-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.accordion-icon {
    font-size: 1.5rem;
    color: #666;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    font-weight: 300;
}

.accordion-item:not(.active) .accordion-icon::before { content: "+"; }
.accordion-item.active .accordion-icon::before { content: "−"; }
.accordion-item.active .accordion-icon { transform: none; }

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8fafc;
}

.accordion-content p {
    margin: .625rem 1.875rem;
    line-height: 1.4;
    color: #555;
    font-size: 1rem;
    text-align: left;
}

.accordion-item.active .accordion-content {
    max-height: 16000px;
}

/* ========== Participation Section ========== */
.participation-section {
    background: rgba(255,255,255,0.95);
}

.participation-content p {
    font-size: 1.125rem;
    text-indent: 1.25rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: .625rem;
    text-align: justify;
    margin-top: .5rem;
}

.cat-illustration-final {
    margin: 3.75rem auto 0;
    text-align: center;
}

/* ========== Footer ========== */
.footer {
    background: #3b3b3b;
    color: #fff;
    padding: 3.75rem 0 2.5rem;
}

.footer-content {
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 2.5rem;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: .5rem 1rem;
    border-radius: .5rem;
}

.footer-nav a:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-.0625rem);
}

.footer-info {
    text-align: center;
    color: #94a3b8;
    font-size: .875rem;
}

.made-by {
    margin-top: .9375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}

.heart {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%,100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.fade-in {
    opacity: 0;
    transform: translateY(1.25rem);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

table {
    border-collapse: collapse;
    width: 80%;
    margin: 0 auto;
    text-align: center;
    font-family: "Times New Roman", serif;
    font-weight: bold;
    color: #555;
    font-size: 1.25rem;
}

td {
    border: .125rem solid black;
    padding: 1.25rem;
}

tr:nth-child(2n) {
    background-color: #e3edf7;
}

h2,h3 {
    text-align: center;
    margin-top: 1.2em;
    margin-bottom: 0.8em;
}

h2 {
    font-size: 1.6em;
    font-weight: 700;
}

h3 {
    font-size: 1.3em;
    font-weight: 600;
}

ul,ol {
    margin-left: 1.6cm;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    color: #555;
    font-size: 1.125rem;
    text-align: justify;
}

li {
    margin-bottom: 0.4em;
    line-height: 1.6;
    list-style-type:"– ";
}

/* ========== MEDIA QUERIES ========== */
@media (max-width:900px){

.section-content,.content-list,.accordion-container,.footer-content{
    width:100%; max-width:100%; padding-left:1rem; padding-right:1rem; box-sizing:border-box;
}

img{max-width:100%; height:auto; display:block;}
.navbar,.nav-container{width:100%; padding-left:1rem; padding-right:1rem; box-sizing:border-box;}
.nav-center{display:none;}
.social-links{display:none;}
.section-content{padding:0 1rem; }
.content-list{max-width:100%; padding:0 1rem;}
.accordion-header{padding:1rem 1rem;}
.avatar{width:3rem; height:2.75rem;}
:root{--content-num-size:2.75rem; --avatar-size:2.75rem;}

.between-section{
     min-height: 40vh; /* секция занимает 70% высоты экрана */
     background-size: cover !important; 
     background-position: center center !important; 
}

.between-section::before{
    content:"";
    transform: scale(1.5);
    position:absolute; top:0; left:0; width:100%; height:100%;
    z-index:-1;
    pointer-events:none;
}
.section-title-blue {
        font-size: 20px; /* уменьшаем размер на мобилках */
        padding: 0 10px; /* небольшой отступ слева/справа */
        word-break: break-word; /* перенос длинных слов */
}

.content-text h3 {
        text-align: left !important;
    }
.main-img {
	width:100%; padding-left:1rem; padding-right:1rem; box-sizing:border-box;
}
.logo { margin-left: 1rem;}

.hero-title { font-size: 2.6rem !important; line-height: 1.2;}
.hero-subtitle { font-size: 1.5rem !important;line-height: 1.3;}
/* ====== Mobile hamburger + drawer ====== */

.mobile-hamburger,
.mobile-drawer,
.mobile-drawer-backdrop {
    display: block;
}

.mobile-hamburger {
    position: absolute;
    top: calc((var(--navbar-height) - 3.8rem) / 2);
    left: -0.25rem;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0.25rem;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 2002; /* выше всего */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.mobile-hamburger:focus { 
    outline: none; 
}

/* Линии бургер-кнопки */
.mobile-hamburger .mh-line {
    width: 90%;
    height: 3px;
    background: #26398b; /* синий цвет */
    border-radius: 2px;
    flex-shrink: 0;
}

/* Боковое меню */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 75%;               
    max-width: 360px;
    height: 100vh;
    transform: translateX(-110%);
    transition: transform 300ms cubic-bezier(.2,.9,.2,1);
    background: #ffffff;
    box-shadow: 2px 0 20px rgba(0,0,0,0.55);
    z-index: 1500;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-drawer .mobile-drawer-inner {
    padding: calc(var(--navbar-height) + 1rem) 1rem 2rem 1rem;
}

.mobile-nav-link {
    display: block;
    padding: .9rem 0;
    color: #666666;
    font-weight: 800;
    letter-spacing: -1px;
    font-size: 1.25rem;
    text-decoration: none;
}

.mobile-social {
    margin-top: 1.25rem;
    display:flex;
    gap: .5rem;
}

.mobile-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    color: #666666;
    text-decoration: none;
    border-radius: .5rem;
    font-size: 1.05rem;
    font-weight: 800;
    transition: all 0.3s ease;
    border: .0625rem solid rgba(0, 0, 0, 0.52);
}

/* Подчеркивание ссылок внутри бургер-меню при фокусе */
.mobile-nav-link:focus,
.mobile-nav-link:focus-visible {
    outline: none !important;
    text-decoration: underline !important;
    text-underline-offset: 4px; /* красивое расстояние */
}


.mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.56);
    opacity: 0;
    transition: opacity 200ms ease;
    z-index: 1499;
    display: none;
}

/* Меню открыто */
body.mobile-drawer-open .mobile-drawer {
    transform: translateX(0);
}

body.mobile-drawer-open .mobile-drawer-backdrop {
    display: block;
    opacity: 1;
}

/* ====== Крестик вместо бургер-линий ====== */
body.mobile-drawer-open .mobile-hamburger .mh-line:nth-child(1),
body.mobile-drawer-open .mobile-hamburger .mh-line:nth-child(3) {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    background: gray; /* цвет крестика */
}

body.mobile-drawer-open .mobile-hamburger .mh-line:nth-child(1) {
    transform: rotate(45deg);
}

body.mobile-drawer-open .mobile-hamburger .mh-line:nth-child(3) {
    transform: rotate(-45deg);
}

body.mobile-drawer-open .mobile-hamburger .mh-line:nth-child(2) {
    display: none;
}







