* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #F6D1C1;
    /* background: #f5e6dc; */
    color: #333;
}

html{
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

a, button, div {
  -webkit-tap-highlight-color: transparent; /* Убирает синюю подсветку в WebKit */
  /* outline: none; */ /* Убирает синюю рамку при фокусе (опционально, но часто нужно) */
}

/* Кастомная стрелка-треугольник вниз для ВСЕХ select на сайте */
select {
    /* Скрываем стандартную стрелку браузера */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    
    /* Отступ справа под нашу иконку (чтобы текст не налезал) */
    padding-right: 35px !important;  /* 35px — оптимально для иконки 12px + отступ */
    
    /* Кастомный треугольник вниз (перевернутый chevron) */
    /* background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath fill='%230065d1' d='M0 0 L6 10 L12 0 Z'/%3E%3C/svg%3E"); */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23007bff' stroke-width='2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;  /* Именно 10px от правого края */
    background-size: 12px 8px;
}

/* Fallback для IE (скрывает native стрелку) */
select::-ms-expand {
    display: none;
}


.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 320px;
    background: linear-gradient(180deg, #3d5a9f 0%, #2a4080 100%);
    color: white;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    border-radius: 0 40px 40px 0;
}

.logo {
    text-align: center;
    margin-bottom: 20px;
}

.logo svg {
    margin-bottom: 10px;
}

.logo h1 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.logo p {
    font-size: 11px;
    line-height: 1.3;
    opacity: 0.9;
}

.social-links {
    display: flex;
    justify-content: center;
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    /* background: rgba(255, 255, 255, 0.2); */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.3);
}

.main-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 30px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #C0C2C9;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s;
    font-size: 14px;
}

.nav-item svg {
    width: 25px;
    height: 25px;
    flex-shrink: 0;
}

.nav-item:hover, .nav-item.active {
    color: white;
}

.sidebar-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #F27C3F 0%, #ff6b3d 100%);
    color: white;
    flex: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 130, 71, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-outline {
    background: transparent;
    color: black;
    border: 1px solid black;
}

.btn-outline:hover {
    background: white;
    color: black
}

.btn-block {
    width: 100%;
}

.btn-large {
    padding: 18px 30px;
    font-size: 16px;
}

.sidebar-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: white;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 320px;
    padding: 30px 40px;
}

.main-content:first-of-type{
    padding-bottom: 0px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 400px;
}

.search-box input {
    border: none;
    outline: none;
    font-size: 14px;
    width: 100%;
}


/* Content Sections */
.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.content-section h2 {
    font-size: 50px;
    color: #3d5a9f;
    /* margin-bottom: 10px; */
}

.subtitle {
    color: #666;
    margin-bottom: 30px;
}

/* Cards Container */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.card {
    border-radius: 20px;
    padding: 30px;
    position: relative;
    box-shadow: 0px 8px 24px rgb(113 113 113 / 68%);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.card-blue {
    background: linear-gradient(135deg, #d4e4f7 0%, #c8ddf5 100%);
}

.card-green {
    background: linear-gradient(135deg, #e8f5d4 0%, #d8efc4 100%);
}

.card-green li:last-child{
    margin-bottom: 48px;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #3d5a9f;
}

.card-image {
    position: absolute;
    top: -30px;
    right: 20px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
}

.card-list {
    list-style: none;
    margin: 20px 0;
    font-weight: 500;
}

.card-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #555;
}

.card-list img {
    max-width: 24px;
    max-height: 24px;
}

.card-price {
    margin: 20px 0;
    padding: 15px 0;
    gap: 15px;
    display: flex;
    align-items: center;
}

.card-price span {
    font-size: inherit;
    /* color: #666; */
    font-weight: bold;
}

.card-price strong {
    font-size: 24px;
    color: #ff6b3d;
    /* display: block; */
    /* margin-top: 5px; */
}

.card-buttons {
    display: flex;
    gap: 10px;
}

.card-buttons .btn {
    flex: 1;
}

/* Teachers Grid */
.section-title {
    font-size: 24px;
    color: #3d5a9f;
    margin: 40px 0 30px;
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    /* margin-bottom: 30px; */
}

.teacher-card {
    /* background: white; */
    border-radius: 15px;
    /* padding: 20px; */
    text-align: center;
}

.teacher-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 10px;
    /* border: 3px solid #ff6b3d; */
}

.teacher-card h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.teacher-card p {
    font-size: 12px;
    color: #999;
}

/* Pricing Section */
.pricing-section {
    margin: 40px 0;
}

.orange-title {
    color: #F27C3F;
    display: flex;
    justify-content: center;
}

.blue-title {
    color: #31509D;
    display: flex;
    justify-content: center;
}

.pricing-wrapper{
    /* padding: 10px; */
    background-color: rgba(255, 255, 255, 33%);
    margin-top: 20px;
    padding: 25px 30px;
    border-radius: 36px;
}

.pricing-tabs {
    display: flex;
    gap: 4px;
    margin: 25px 0 0;
    justify-content: center;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 50px;
    border: none;
    background: #e6e6e6;
    color: #555;
    border-radius: 20px 20px 0 0;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 15px;
}

.tab-btn.active {
    background: #3d5a9f;
    color: white;
}

.tab-btn-orange {
    padding: 12px 50px;
    border: none;
    background: #e6e6e6;
    color: #555;
    border-radius: 20px 20px 0 0;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 15px;
}

.tab-btn-orange.active {
    background: #F27C3F;
    color: white;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #3d5a9f;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 15px;
}

.pricing-card h4 {
    font-size: 14px;
    margin-bottom: 15px;
    min-height: 40px;
}

.pricing-card-orange h4 {
    font-size: 14px;
    margin-bottom: 15px;
    min-height: 40px;
}

.price-small {
    color: #ff6b3d;
    /* font-weight: 600; */
    font-size: 16px;
    display: flex;
    gap: 4px;
}

.price-large {
    color: #ff6b3d;
    margin: 5px 0;
    font-style: italic;
    display: flex;
    gap: 5px;
    text-align: left;
    padding-left: 5%;
}

.description {
    font-size: 13px;
    color: #585858;
    margin-top: 12px;
    line-height: 1.5;
}

.note {
    font-size: 12px;
    color: #31509D;
    /* font-style: italic; */
    font-weight: bold;
    padding-top: 2rem;
}

.pricing-block {
    background: white;
    border-radius: 24px;
    padding: 40px 30px 0px;
    /* margin-top: 20px; */
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.pricing-block-orange {
    background: white;
    border-radius: 24px;
    padding: 40px 20% 0px;
    /* margin-top: 20px; */
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.note-bottom {
    text-align: center;
    font-size: 13px;
    color: #585858;
    /* font-style: italic; */
    margin: 30px 0 10px;
    padding-top: 20px;
    /* border-top: 1px dashed #ddd; */
    font-weight: bold;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.prob-lesson{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    justify-content: center;
}

/* Иконка вылезает на 50% вверх */
.icon-wrapper {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.icon-wrapper img {
    width: 70px;
    height: 70px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.15));
}

/* Карточка с отступом сверху, чтобы иконка не перекрывала текст */
.pricing-card {
    position: relative;
    background: #D2E2EF;
    border-radius: 20px;
    padding: 50px 20px 10px; /* сверху место под иконку */
    /* box-shadow: 0 10px 25px rgba(0,0,0,0.1); */
    text-align: center;
    flex: 1;
    /* min-width: 260px; */
}

.pricing-card-orange {
    position: relative;
    background: #FDE2D7;
    border-radius: 20px;
    padding: 50px 20px 10px; /* сверху место под иконку */
    /* box-shadow: 0 10px 25px rgba(0,0,0,0.1); */
    text-align: center;
    flex: 1;
    /* min-width: 260px; */
}

.card-body {
    margin-top: 10px; /* чтобы текст не прижимался к иконке */
}

/* Стрелки: горизонтальные на десктопе, вертикальные на мобиле */
.arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.arrow img {
    width: 50px;
    height: auto;
}

.arrow-desktop {
    display: block;
}

.arrow-mobile {
    display: none;
}

/* Мобильная версия — переворачиваем стрелки вниз и ставим по центру */



/* Reviews */
.reviews-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.rating-summary h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.rating-number {
    font-size: 36px;
    font-weight: bold;
    margin: 10px 0;
}

.stars {
    color: #ffc107;
    font-size: 20px;
    margin: 10px 0;
}

.reviews-count {
    font-size: 14px;
    color: #666;
}

.reviews-count span {
    font-weight: bold;
}

.reviews-tabs {
    display: flex;
    gap: 10px;
}

.reviews-iframe {
    min-height: 400px;
    background: #f9f9f9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.pricing-content.active {
    display: block;
}

.pricing-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.icon img{
    width: 70px;
    height: 70px;
}

.pricing-card h4 {
    font-size: 17px;
    color: #31509D;
    margin-bottom: 12px;
    /* font-weight: 600; */
    font-weight: bold;
}

.pricing-card-orange h4 {
    font-size: 17px;
    color: #31509D;
    margin-bottom: 12px;
    /* font-weight: 600; */
    font-weight: bold;
}

.duration {
    font-size: 16px;
    color: #555;
    /* margin: 8px 0; */
    line-height: 1.4;
    display: flex;
    align-items: center;
    /* gap: 20px; */
    justify-content: center;
}

.arrow {
    font-size: 32px;
    /* color: #3d5a9f; */
    /* font-weight: bold; */
    margin: -1%;
    z-index: 2;
    align-content: center;
}

.arrow_last-child{
    margin: -2%;
}

/* Анимация появления */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Team Grid */
.team-grid {
    background: white;
    padding: 30px;
    border-radius: 15px;
}

.small-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.small-photos-grid img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    object-fit: cover;
}

.orange-label {
    background: #ff6b3d;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    display: inline-block;
    margin: 20px 0;
    font-size: 14px;
}

.medium-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.team-member p {
    font-size: 12px;
    line-height: 1.5;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.leader-card {
    text-align: center;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
}

.leader-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.leader-card p {
    font-size: 13px;
    line-height: 1.6;
}

/* Repetitoram Section */
.salary-section {
    background: white;
    padding: 30px 50px;
    border-radius: 15px;
    margin: 30px 0;
    border: 1px solid #F27C3F;
    /* width: 50%; */
}

.salary-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #31509D;
}

.salary-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.salary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* padding: 15px; */
    /* background: #f9f9f9; */
    /* border-radius: 8px; */
}

.salary-item span {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    display: flex;
    gap: 8px;
}

.salary-item strong {
    color: #F27C3F;
    font-weight: 700;
}

.calculator-section {
    background: white;
    padding: 30px 50px;
    border-radius: 15px;
    margin: 30px 0;
    border: 1px solid #F27C3F;
    /* width: 50%; */
}

.calculator-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #31509D;
}

.calculator-inputs {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: stretch;
}

.input-field {
    flex: 2;
    padding: 12px 20px;
    border: 1px solid #0087FE;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
    background-color: #D2E2EF;
    text-align: center;
}

.input-field:focus {
    border-color: #3d5a9f;
}

.calculator-result {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    /* padding: 20px 0; */
    /* background: #f9f9f9; */
    /* border-radius: 8px; */
    /* margin: 20px 0; */
    gap: 20px;
}

.calculator-result span {
    font-size: 16px;
    color: #8E8E93;
}

.calculator-result strong {
    font-size: 21px;
    color: #F27C3F;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 800px;
    width: 90%;
    max-height: 100vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 35px;
    height: 35px;
    border: none;
    background: #ff6b3d;
    color: white;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.modal-close:hover {
    background: #e55a2f;
}

.modal-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #3d5a9f;
}

.modal-content p {
    color: #666;
    /* margin-bottom: 25px; */
    /* font-size: 14px; */
}

.modal-content b {
    color: #31509D;
}

.form-group {
    margin-top: 25px;
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    /* margin-bottom: 10px; */
    color: #585858;
}

.radio-group, .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-group label, .checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;  /* 2 колонки: имя, телефон, мессенджер, кнопка */
    gap: 15px;
    align-items: end;                        /* Выравниваем по нижнему краю (кнопка не прыгает) */
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    /* background: #f9f9f9; */
    /* border-radius: 10px; */
    /* margin: 20px 0; */
}

.contact-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.contact-card strong {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
}

.contact-card p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    width: 40px;
    height: 40px;
    background: #3d5a9f;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 1280px) {
    .card-image{
        width: 90px;
        height: 90px;
    }

    .arrow{
        margin: -2%;
    }

    .arrow_last-child{
        margin: -3%;
    }

    .icon-wrapper {
    top: -30px;
    }

    .icon-wrapper img {
        width: 140%;
        height: 100%;
        filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
    }
}


/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 250px;
    }

    .main-content {
        margin-left: 250px;
        padding: 20px 30px;
    }

    .cards-container {
        grid-template-columns: 1fr;
    }

    .pricing-cards {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        flex-direction: column;
    }

    .icon-wrapper img {
        width: 100%;
        height: 100%;
        filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
    }
    
    .pricing-card {
        margin-top: 40px;
        padding-bottom: 3%;
    }

    .pricing-card-orange {
        margin-top: 40px;
        padding-bottom: 3%;
    }

    .arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
}

@media (max-width: 768px) {
    header{
        margin-left: 10%;
        margin-top: 10px;
    }
    .mobile-menu-toggle {
        display: flex;
    }

    .subtitle {
        color: #666;
        margin-bottom: 30px;
        padding-left: 2rem;
        text-align: center;
    }

    .pricing-cards {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        flex-direction: column;
    }

    .icon-wrapper img {
        width: 80px;
        filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
    }
    
    .pricing-card{
        margin-top: 40px;
    }

    .pricing-card-orange{
        margin-top: 40px;
    }

    .sidebar {
        width: 280px;
        position: fixed;
        left: -280px;
        top: 0;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
    }

    .sidebar.active {
        left: 0;
    }

    .main-content {
        margin-left: 0;
        padding: 0 20px 20px;
        width: 100%;
    }

    .container {
        flex-direction: row;
    }

    .cards-container {
        grid-template-columns: 1fr;
        gap: 50px;
        margin-top: 50px;
    }

    .card-image {
        width: 80px;
        height: 80px;
        top: -30px;
        right: 15px;
    }

    .card h3 {
        font-size: 18px;
        max-width: calc(100% - 80px);
    }

    .header {
        flex-direction: column;
        gap: 15px;
        border-radius: 15px;
        padding: 15px 20px;
    }

    .search-box {
        max-width: 100%;
    }

    .content-section h2 {
        font-size: 24px;
    }


    .arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }

    .calculator-inputs {
        flex-direction: column;
    }

    .input-row {
        grid-template-columns: 1fr;
    }

    .reviews-header {
        flex-direction: column;
        gap: 20px;
    }

    .teachers-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 15px;
    }

    .leadership-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .salary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .calculator-result {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .content-section.active h2{
        text-align: center;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 15px 15px;
    }

    .icon-wrapper img {
        width: 110%;
        filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
    }

    .pricing-block, .pricing-block-orange{
        border-radius: 10px 10px 24px 24px;
    }

    .pricing-tabs{
        gap: 0;
    }

    .content-section h2 {
        font-size: 20px;
    }

    .subtitle {
        font-size: 14px;
    }

    .card {
        padding: 20px;
        /* margin: 20px 0; */
    }

    .card h3 {
        font-size: 16px;
    }

    .card-list li {
        font-size: 13px;
    }

    .card-price strong {
        font-size: 20px;
    }

    .card-buttons {
        flex-direction: column;
    }

    .modal-content {
        padding: 30px 20px;
        width: 95%;
    }

    .modal-content h3 {
        font-size: 18px;
    }

    .small-photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
        gap: 8px;
    }

    .teachers-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 12px;
    }

    .teacher-card {
        padding: 15px;
    }

    .teacher-card img {
        width: 60px;
        height: 60px;
    }

    .teacher-card h4 {
        font-size: 13px;
    }

    .teacher-card p {
        font-size: 11px;
    }

    .pricing-section {
        margin: 30px 0;
    }

    .pricing-card {
        padding: 15px;
    }

    .pricing-card h4 {
        font-size: 13px;
        min-height: auto;
    }

    .pricing-card-orange {
        padding: 15px;
    }

    .pricing-card-orange h4 {
        font-size: 13px;
        min-height: auto;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .price-large {
        font-size: 18px;
    }

    .pricing-tabs {
        flex-wrap: wrap;
    }

    .tab-btn, .tab-btn-orange {
        padding: 10px 16px;
        font-size: 13px;
    }


    .section-title {
        font-size: 20px;
    }

    .orange-title {
        font-size: 13px;
        padding: 8px 16px;
    }

    .medium-photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 15px;
    }

    .team-member img {
        width: 60px;
        height: 60px;
    }

    .team-member p {
        font-size: 11px;
    }

    .leadership-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
    }

    .leader-card {
        padding: 15px;
    }

    .leader-card img {
        width: 80px;
        height: 80px;
    }

    .leader-card p {
        font-size: 12px;
    }

    .salary-section,
    .calculator-section {
        padding: 20px;
    }

    .salary-section h3,
    .calculator-section h3 {
        font-size: 16px;
    }

    .salary-item {
        padding: 12px;
    }

    .salary-item span {
        font-size: 13px;
    }

    .salary-item strong {
        font-size: 16px;
    }

    .btn-large {
        padding: 15px 25px;
        font-size: 15px;
    }

    .rating-number {
        font-size: 28px;
    }

    .stars {
        font-size: 18px;
    }

    .form-group label {
        font-size: 13px;
    }

    .input-field {
        padding: 10px 16px;
        font-size: 13px;
    }

    .contact-card {
        padding: 15px 0;
    }

    .contact-card img {
        width: 50px;
        height: 50px;
    }

    .reviews-iframe {
        min-height: 300px;
    }

    .logo h1 {
        font-size: 22px;
    }

    .logo p {
        font-size: 10px;
    }

    .nav-item {
        font-size: 13px;
        padding: 10px 12px;
    }

    .sidebar-buttons .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .main-content {
        padding: 10px 10px 10px;
    }

    .card {
        padding: 15px;
    }

    .modal-content {
        padding: 25px 15px;
    }

    .teachers-grid,
    .leadership-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .small-photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
        gap: 6px;
    }
}

/* ===== ИНДИКАТОР ОНЛАЙНА НА АВАТАРКЕ ===== */
.avatar-wrapper {
  position: relative;           /* Только обёртка позиционируется */
  display: inline-block;
}

.online-indicator {
  position: absolute;
  top: -7px;
  right: -6px;
  bottom: 0;                    /* Прижат к нижнему правому углу аватарки */
  /* right: 0; */
  width: 20px;
  height: 20px;
  background-color: #9CEC5B;
  border: 4px solid white;      /* Белая обводка — чтобы красиво легло на фото */
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Опционально: анимация пульсации (очень модно сейчас) */
.online-indicator::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: inherit;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  opacity: 0.6;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  70% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* ===== О НАС — ИЕРАРХИЯ С ОБВОДКАМИ И СТРЕЛКАМИ ===== */
.about-hierarchy {
    padding: 60px 0px;
    text-align: center;
}

.hierarchy-block {
    position: relative;
    padding: 2% 1%;
    /* margin-bottom: 30px; */
    border: 1px solid #F27C3F;
    border-radius: 30px;
}

.hierarchy-block.no-border {
    border: none;
    background: transparent;
    padding: 0;
}

.hierarchy-block:nth-of-type(5), .hierarchy-block:nth-of-type(7) {
    max-width: 1000px;           /* ограничиваем ширину */
    margin: 0 auto 0px;      /* центрируем по горизонтали + отступы */
    /* padding: 50px 40px; */
    border: 1px solid #F27C3F;
    border-radius: 40px;
    /* background: white; */
    /* box-shadow: 0 20px 40px rgba(0,0,0,0.12); */
}

.block-label {
    position: absolute;
    top: 0;                          /* Прижимаем к верху блока */
    left: 50%;
    transform: translate(-50%, -100%); /* Центрируем по горизонтали и поднимаем на половину своей высоты */
    background: #F27C3F;
    color: white;
    padding: 6px 30px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 20px;
    white-space: nowrap;
    /* box-shadow: 0 4px 15px rgba(242, 124, 63, 0.4); */
    z-index: 10;
}

/* Стрелки вниз */
.connector-line {
    width: 1px;
    height: 6rem;
    background: #FF6B3D;
    margin: 0px auto;
    /* border-radius: 3px; */
    position: relative;
    /* box-shadow: 0 4px 10px rgba(255,107,61,0.3); */
}

/* Фото учеников */
.students-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(55px, 1fr));
    gap: 14px;
}

.students-grid img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 20%;
    object-fit: cover;
    /* box-shadow: 0 4px 10px rgba(0,0,0,0.12); */
}

/* Репетиторы */
.tutors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 25px;
}

.tutors-grid img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 20%;
    object-fit: cover;
}

/* Менеджеры */
/* Сетка менеджеров — теперь строго по центру */
.managers-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);   /* 6 карточек в ряд */
    gap: 30px;
    justify-content: center;                 /* центрируем карточки внутри */
    max-width: 100%;
    margin: 0 auto;
}

.manager-card {
    display: flex;
    flex-direction: column;
    align-items: center;           /* центрируем фото и текст */
    text-align: center;
}

.manager-card img {
    width: 100px;
    height: 100px;
    border-radius: 20%;
    object-fit: cover;
    margin-bottom: -3%;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    z-index: 1;
}

.manager-card p {
    width: 100%;                   /* ← ГЛАВНОЕ: фиксированная ширина блока с именем */
    min-height: 60px;              /* ← одинаковая высота у всех */
    display: flex;
    align-items: center;
    justify-content: center;       /* текст по центру по вертикали и горизонтали */
    padding: 12px 8px;
    font-size: 15px;
    font-weight: 600;
    background: white;
    border: 2px solid #2D55B4;
    border-radius: 20px;
    box-sizing: border-box;
    line-height: 1.4;
    word-wrap: break-word;         /* перенос длинных слов */
    flex-direction: column;
}

.manager-card span {
    display: block;
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

/* Руководство */
.leadership-final {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
    padding-top: 20px;
}
.leader-final {
    text-align: center;
}
.leader-final img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 15px;
    box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}
.leader-final p {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}
.leader-final span {
    display: block;
    font-size: 14px;
    color: #FF6B3D;
    margin-top: 6px;
}
/* Мобильная версия */
@media (max-width: 768px) {
    .about-hierarchy {
        padding: 40px 15px;
        border-radius: 25px;
    }
    .hierarchy-block {
        padding: 30px 15px;
        /* margin-bottom: 40px; */
    }
    .block-label {
        font-size: 16px;
        padding: 10px 30px;
        top: 0;
    }
    .connector-line {
        height: 60px;
        margin: 0 auto;
    }
    .connector-line::after {
        bottom: -15px;
        border-left: 15px solid transparent;
        border-right: 15px solid transparent;
        border-top: 25px solid #FF6B3D;
    }

    .students-grid { grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 10px; }
    .tutors-grid { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 18px; }
    .managers-grid { grid-template-columns: repeat(3, 1fr); gap: 25px; }
    .leadership-final { gap: 30px; }
    .leader-final img { width: 120px; height: 120px; }

    .hierarchy-block:nth-of-type(3) {
        max-width: 90%;
        padding: 40px 20px;
        margin: 0px auto;
    }

    .managers-grid {
        grid-template-columns: repeat(3, 1fr);  /* 3 в ряд на мобиле */
        gap: 25px;
    }

    .manager-card img {
        width: 90px;
        height: 90px;
    }

}

.btn-anket{
    background: linear-gradient(135deg, #F27C3F 0%, #ff6b3d 100%);
    color: white;
    padding: 18px 30px;
    font-size: 16px;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    display: flex;
    align-items: center;
}

.btn-anket div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.btn-anket div span{
    font-size: 15px;
    font-style: italic;
    font-weight: 100;
}

.checkbox-group {
    margin: 20px 0;
    text-align: left;
}


.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #3d5a9f;
    border-radius: 6px;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
}

#agree-checkbox:checked + .checkmark {
    background: #3d5a9f;
}

#agree-checkbox:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    color: white;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
}

#submit-anketa {
    transition: opacity 0.3s;
    margin-top: 10px;
}


/* Окно пожаловаться */
.phone_admin{
    display: flex;
    gap: 17px;
    font-weight: bold;
    align-items: center;
    margin-bottom: 20px;
}

.phone_admin p{
    font-size: 17px;
    margin-bottom: 0px;
}

.pozhalovatsya_kontakt{
    display:flex;
    gap:12px
}

/* Основной контейнер — вертикальный стек рядов */
.questions-grid {
    display: flex;
    flex-direction: column;
    /* gap: 40px; */                  /* Расстояние между рядами вопросов */
    margin: 0 0 30px 0;
}

/* Горизонтальный ряд — две колонки на одном уровне */
.question-row {
    display: flex;
    gap: 40px;                  /* Расстояние между левой и правой колонкой */
    align-items: flex-start;    /* Выравнивание по верху (важно!) */
}

/* Каждая колонка в ряду */
.question-column {
    flex: 1;                    /* Равная ширина */
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

/* Радио-группы */
.radio-group.vertical {
    display: flex;
    flex-direction: column;
    /* gap: 12px; */
    margin-top: 8px;
}

.radio-group.vertical label {
    font-size: 15px;
    cursor: pointer;
    /* padding: 6px 0; */
}

/* Адаптив: на мобильных и планшетах — одна колонка */
@media (max-width: 868px) {
    .question-row {
        flex-direction: column;
        gap: 30px;
    }
    
    .question-column {
        min-width: auto;
    }
}

.radio-group label{
    accent-color:#2D55B4
}

footer {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    /* color: #666666;                  Основной вариант: баланс subtle + readable */
    color: #777777;               /* Альтернатива: ещё менее заметный
    /* color: #555555;               /* Если нужно надёжнее по contrast */
    margin-top: 20px;
    margin-bottom: 10px;
    opacity: 0.9;                    /* Дополнительно смягчить (опционально, ~10% fade) */
    }

footer div:last-child {
    text-align: right;
}

/* Делаем текст в дефолтном option серым, как placeholder */
select option.placeholder-option {
    color: #999; /* или #aaa, #6c757d (bootstrap secondary) */
    font-style: italic; /* опционально — как placeholder */
}

/* Когда пользователь выбрал реальное значение — возвращаем чёрный цвет */
select option:not(.placeholder-option) {
    color: #000;
}

/* Альтернатива: если хочешь стилизовать через :invalid или пустое значение */
select:required:invalid {
    color: #666666;
}
select:required:valid {
    color: #000;
}

