/* ============================================
   АДАПТИВНЫЕ СТИЛИ
   ============================================ */

/* Планшеты и небольшие ноутбуки */
@media (max-width: 1024px) {
    .second-container {
        padding: 0 25px;
    }

    .second-hero {
        padding: 100px 0;
        min-height: 550px;
    }

    .second-hero-title {
        font-size: 48px;
    }

    .second-hero-subtitle {
        font-size: 22px;
    }

    .second-hero-text p {
        font-size: 16px;
    }

    .second-section-title {
        font-size: 40px;
    }

    .second-section-subtitle {
        font-size: 17px;
    }

    .second-services-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .second-capability-item {
        padding: 35px 30px;
    }

    .second-capability-value {
        font-size: 50px;
    }

    .second-advantages-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .second-process-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .second-step-arrow {
        display: none;
    }

    .second-text-tabs-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .second-text-tab-btn {
        padding: 15px 20px;
        font-size: 13px;
    }

    .second-footer-contacts {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Планшеты (портретная ориентация) */
@media (max-width: 768px) {
    .second-container {
        padding: 0 20px;
    }

    section {
        padding: 70px 0;
    }

    /* Hero Section */
    .second-hero {
        padding: 80px 0;
        min-height: auto;
    }

    .second-hero-shape-1,
    .second-hero-shape-3,
    .second-hero-shape-5 {
        display: none;
    }

    .second-hero-shape-2,
    .second-hero-shape-4 {
        width: 300px;
        height: 300px;
    }

    .second-hero-grid {
        background-size: 30px 30px;
        opacity: 0.3;
    }

    .second-hero-title {
        font-size: 38px;
        margin-bottom: 20px;
    }

    .second-hero-subtitle {
        font-size: 20px;
        margin-bottom: 30px;
    }

    .second-hero-text {
        margin-bottom: 35px;
    }

    .second-hero-text p {
        font-size: 15px;
        line-height: 1.8;
    }

    .second-btn {
        padding: 16px 40px;
        font-size: 16px;
    }

    /* Section Headers */
    .second-section-header {
        margin-bottom: 50px;
    }

    .second-section-title {
        font-size: 34px;
    }

    .second-section-subtitle {
        font-size: 16px;
        margin-top: 20px;
    }

    /* About Section */
    .second-about {
        padding: 35px 0;
    }

    .second-about .second-section-header {
        margin-bottom: 25px;
    }

    .second-about-content {
        min-height: 300px;
    }

    .second-about-item {
        width: 240px;
        height: 180px;
        padding: 15px;
    }

    .second-about-item h3 {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .second-about-item p {
        font-size: 12px;
        line-height: 1.5;
        -webkit-line-clamp: 6;
        line-clamp: 6;
    }

    .second-about-toggle-btn {
        padding: 16px 40px;
        font-size: 16px;
    }

    /* Services Section */
    .second-services-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .second-capability-item {
        padding: 35px 28px;
    }

    .second-capability-value {
        font-size: 48px;
    }

    .second-capability-label {
        font-size: 16px;
    }

    .second-capability-item h3 {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .second-capability-item p {
        font-size: 14px;
        line-height: 1.75;
    }

    /* Text Block Section */
    .second-text-block {
        padding: 35px 0;
    }

    .second-text-block .second-section-header {
        margin-bottom: 25px;
    }

    .second-text-tab-btn {
        padding: 14px 18px;
        font-size: 13px;
    }

    .second-text-tab-pane {
        padding: 25px;
    }

    .second-text-tab-pane p {
        font-size: 14px;
        line-height: 1.75;
    }

    /* Advantages Section */
    .second-advantages-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .second-advantage-item {
        padding: 30px;
    }

    .second-advantage-item h3 {
        font-size: 21px;
        margin-bottom: 12px;
    }

    .second-advantage-item p {
        font-size: 15px;
        line-height: 1.75;
    }

    /* Process Section */
    .second-process-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .second-process-step {
        padding: 40px 30px;
    }

    .second-step-number {
        font-size: 64px;
    }

    .second-step-content h3 {
        font-size: 24px;
        margin-bottom: 18px;
    }

    .second-step-content p {
        font-size: 15px;
        line-height: 1.8;
    }

    /* Footer */
    .second-footer {
        padding: 70px 0 50px;
    }

    .second-footer-content {
        gap: 35px;
    }

    .second-footer-title {
        font-size: 26px;
        margin-bottom: 35px;
        letter-spacing: 2px;
        padding-bottom: 20px;
    }

    .second-footer-title::before {
        width: 70px;
        height: 3px;
        top: -12px;
    }

    .second-footer-title::after {
        width: 90px;
        height: 4px;
    }

    .second-footer-contacts {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 35px;
    }

    .second-footer-link {
        font-size: 16px;
        padding: 20px 25px;
        gap: 18px;
    }

    .second-footer-link:hover {
        transform: translateY(-5px) scale(1.01);
    }

    .second-footer-icon {
        width: 46px;
        height: 46px;
        min-width: 46px;
        border-radius: 12px;
    }

    .second-footer-link:hover .second-footer-icon {
        transform: scale(1.15) rotate(6deg);
    }

    .second-footer-text {
        font-size: 15px;
    }
}

/* Мобильные устройства */
@media (max-width: 480px) {
    .second-container {
        padding: 0 15px;
    }

    section {
        padding: 50px 0;
    }

    /* Hero Section */
    .second-hero {
        padding: 60px 0;
    }

    .second-hero-shape {
        filter: blur(25px);
        animation-duration: 15s;
    }

    .second-hero-shape-4 {
        display: none;
    }

    .second-hero-grid {
        display: none;
    }

    .second-hero-decoration {
        width: 60%;
        clip-path: polygon(40% 0, 100% 0, 100% 100%, 0% 100%);
    }

    .second-hero-title {
        font-size: 30px;
        margin-bottom: 18px;
        line-height: 1.2;
    }

    .second-hero-subtitle {
        font-size: 18px;
        margin-bottom: 25px;
        line-height: 1.4;
    }

    .second-hero-text {
        margin-bottom: 30px;
    }

    .second-hero-text p {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 15px;
    }

    .second-btn {
        padding: 12px 28px;
        font-size: 14px;
        display: block;
        margin: 0 auto;
        text-align: center;
        max-width: 280px;
    }

    .second-btn-primary {
        padding: 12px 28px;
        font-size: 14px;
    }

    /* Section Headers */
    .second-section-header {
        margin-bottom: 40px;
    }

    .second-section-title {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .second-section-title::after {
        width: 60px;
        height: 4px;
        bottom: -12px;
    }

    .second-section-subtitle {
        font-size: 15px;
        margin-top: 18px;
        line-height: 1.6;
    }

    /* About Section */
    .second-about {
        padding: 30px 0;
    }

    .second-about .second-section-header {
        margin-bottom: 20px;
    }

    .second-about-content {
        min-height: 250px;
    }

    .second-about-item {
        width: 200px;
        height: 160px;
        padding: 12px;
    }

    .second-about-item h3 {
        font-size: 14px;
        margin-bottom: 6px;
        line-height: 1.3;
    }

    .second-about-item p {
        font-size: 11px;
        line-height: 1.5;
        -webkit-line-clamp: 5;
        line-clamp: 5;
    }

    .second-about-toggle-btn {
        padding: 14px 30px;
        font-size: 14px;
        width: 100%;
        max-width: 300px;
    }

    /* Services Section */
    .second-services-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .second-capability-item {
        padding: 30px 22px;
    }

    .second-capability-number {
        margin-bottom: 20px;
    }

    .second-capability-value {
        font-size: 42px;
    }

    .second-capability-label {
        font-size: 15px;
    }

    .second-capability-item h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .second-capability-item p {
        font-size: 13px;
        line-height: 1.7;
    }

    /* Text Block Section */
    .second-text-block {
        padding: 30px 0;
    }

    .second-text-block .second-section-header {
        margin-bottom: 20px;
    }

    .second-text-tabs {
        border-radius: 8px;
    }

    .second-text-tabs-nav {
        gap: 0;
        border-bottom-width: 1px;
    }

    .second-text-tab-btn {
        padding: 12px 14px;
        font-size: 12px;
        border-bottom-width: 2px;
    }

    .second-text-tab-pane {
        padding: 20px 18px;
        min-height: 150px;
    }

    .second-text-tab-pane p {
        font-size: 13px;
        line-height: 1.7;
    }

    /* Advantages Section */
    .second-advantages-content {
        gap: 20px;
    }

    .second-advantage-item {
        padding: 25px 20px;
    }

    .second-advantage-item h3 {
        font-size: 19px;
        margin-bottom: 10px;
    }

    .second-advantage-item p {
        font-size: 14px;
        line-height: 1.7;
    }

    /* Process Section */
    .second-process-content {
        gap: 25px;
    }

    .second-process-step {
        padding: 35px 25px;
        border-radius: 16px;
    }

    .second-step-icon {
        margin-bottom: 20px;
    }

    .second-step-number {
        font-size: 56px;
    }

    .second-step-content h3 {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .second-step-content p {
        font-size: 14px;
        line-height: 1.75;
    }

    /* Footer */
    .second-footer {
        padding: 60px 0 40px;
    }

    .second-footer-content {
        gap: 30px;
    }

    .second-footer-title {
        font-size: 22px;
        margin-bottom: 30px;
        letter-spacing: 1.5px;
        padding-bottom: 18px;
    }

    .second-footer-title::before {
        width: 60px;
        height: 2px;
        top: -10px;
    }

    .second-footer-title::after {
        width: 80px;
        height: 3px;
    }

    .second-footer-contacts {
        gap: 15px;
        margin-top: 30px;
    }

    .second-footer-link {
        font-size: 14px;
        padding: 18px 20px;
        gap: 15px;
        border-radius: 12px;
    }

    .second-footer-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        border-radius: 10px;
    }

    .second-footer-text {
        font-size: 14px;
        line-height: 1.5;
    }
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
    .second-container {
        padding: 0 12px;
    }

    .second-hero-title {
        font-size: 26px;
    }

    .second-hero-subtitle {
        font-size: 16px;
    }

    .second-section-title {
        font-size: 24px;
    }

    .second-about-item {
        width: 180px;
        height: 150px;
        padding: 10px;
    }

    .second-about-item h3 {
        font-size: 13px;
    }

    .second-about-item p {
        font-size: 10px;
    }

    .second-capability-value {
        font-size: 38px;
    }

    .second-capability-item h3 {
        font-size: 18px;
    }

    .second-step-number {
        font-size: 48px;
    }

    .second-step-content h3 {
        font-size: 20px;
    }

    .second-footer-title {
        font-size: 20px;
    }

    .second-footer-link {
        font-size: 13px;
        padding: 16px 18px;
    }
}

/* Ландшафтная ориентация на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
    .second-hero {
        padding: 60px 0;
        min-height: auto;
    }

    .second-hero-title {
        font-size: 32px;
    }

    section {
        padding: 50px 0;
    }
}

/* Высокие экраны (более 1920px) */
@media (min-width: 1921px) {
    .second-container {
        max-width: 1600px;
    }

    .second-hero-title {
        font-size: 64px;
    }

    .second-section-title {
        font-size: 52px;
    }
}