/* Переменные цветов */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #f59e0b;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding: 2rem;
    margin-top: -70px;
    padding-top: 70px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    font-weight: 600;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-color);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--dark-bg);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
    color: var(--dark-bg);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

/* Section Styles */
section {
    padding: 5rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================
   ЗАГОЛОВКИ СЕКЦИЙ - ИСПРАВЛЕНО
   ============================================ */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    color: var(--text-dark);
    position: relative;
    display: block;  /* ← БЫЛО inline-block */
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
    margin: 0.75rem auto 0;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
    display: block;
    width: 100%;
    padding: 0 1rem;
}

/* About Section */
.about {
    background: var(--light-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    height: 400px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

.features-list {
    list-style: none;
    margin-top: 2rem;
}

.features-list li {
    padding: 0.8rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.features-list i {
    color: var(--accent-color);
    font-size: 1.3rem;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    border-color: var(--primary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Equipment Section */
.equipment {
    background: var(--dark-bg);
    color: var(--white);
}

/* ИСПРАВЛЕНО: убрали inline-block и transform */
.equipment .section-title {
    color: var(--white);
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.equipment-card {
    background: rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.equipment-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
}

.equipment-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.equipment-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.equipment-card p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

/* Advantages Section */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.advantage-card {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.advantage-card:hover {
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transform: translateX(5px);
}

.advantage-icon {
    min-width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.advantage-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.advantage-content p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Portfolio Section */
.portfolio {
    background: var(--light-bg);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.portfolio-item {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 60px rgba(0,0,0,0.12);
}

.portfolio-image {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.portfolio-content p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.portfolio-region {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.3rem 0.8rem;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.region-badge {
    padding: 0.5rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-weight: 600;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: var(--light-bg);
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-dark);
}

.contact-method:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateX(5px);
}

.contact-method:hover i {
    color: var(--white);
}

.contact-method i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 40px;
    text-align: center;
}

.contact-method span {
    font-weight: 600;
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */

/* Планшеты */
@media (max-width: 991px) {
    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }
}

/* Большие телефоны */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        height: 300px;
    }

    section {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 1.8rem;
        padding: 0 0.75rem;
    }

    .section-title::after {
        width: 50px;
        height: 3px;
    }

    .section-subtitle {
        font-size: 0.95rem;
        padding: 0 1rem;
        margin-bottom: 2rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    /* Hero */
    .hero h1 {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    .hero-subtitle {
        font-size: clamp(1rem, 3.5vw, 1.3rem);
    }

    .hero-description {
        font-size: clamp(0.9rem, 3vw, 1rem);
    }
}

/* Средние телефоны */
@media (max-width: 575px) {
    .section-title {
        font-size: 1.6rem;
        padding: 0 0.5rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
        padding: 0 0.75rem;
    }

    .hero h1 {
        font-size: clamp(1.4rem, 6vw, 1.8rem);
    }

    .hero-subtitle {
        font-size: clamp(0.95rem, 3.5vw, 1.1rem);
    }

    .hero-description {
        font-size: clamp(0.85rem, 3vw, 0.95rem);
    }

    .about-content h3 {
        font-size: clamp(1.1rem, 4vw, 1.4rem);
    }

    .service-card h3 {
        font-size: clamp(1rem, 4vw, 1.2rem);
    }

    .equipment-card h3 {
        font-size: clamp(0.95rem, 4vw, 1.1rem);
    }

    .advantage-content h3 {
        font-size: clamp(1rem, 4vw, 1.15rem);
    }

    .portfolio-content h3 {
        font-size: clamp(0.95rem, 4vw, 1.1rem);
    }

    .contact-info h3 {
        font-size: clamp(1.1rem, 4.5vw, 1.4rem);
    }
}

/* Маленькие телефоны */
@media (max-width: 480px) {
    .section-title {
        font-size: 1.4rem;
        padding: 0 0.5rem;
    }

    .section-title::after {
        width: 40px;
        height: 3px;
    }

    .section-subtitle {
        font-size: 0.85rem;
        padding: 0 0.6rem;
    }

    .hero h1 {
        font-size: clamp(1.3rem, 6.5vw, 1.6rem);
    }

    .hero-subtitle {
        font-size: clamp(0.9rem, 3.5vw, 1rem);
    }

    .hero-description {
        font-size: clamp(0.8rem, 3vw, 0.9rem);
    }

    .about-content h3 {
        font-size: clamp(1rem, 4.5vw, 1.2rem);
    }

    .about-content p {
        font-size: clamp(0.8rem, 3vw, 0.9rem);
    }

    .service-card h3 {
        font-size: clamp(0.95rem, 4.5vw, 1.1rem);
    }

    .service-card p {
        font-size: clamp(0.75rem, 3vw, 0.85rem);
    }

    .equipment-card h3 {
        font-size: clamp(0.85rem, 4vw, 1rem);
    }

    .equipment-card p {
        font-size: clamp(0.7rem, 3vw, 0.8rem);
    }

    .advantage-content h3 {
        font-size: clamp(0.9rem, 4vw, 1.05rem);
    }

    .advantage-content p {
        font-size: clamp(0.75rem, 3vw, 0.85rem);
    }

    .portfolio-content h3 {
        font-size: clamp(0.85rem, 4vw, 1rem);
    }

    .portfolio-content p {
        font-size: clamp(0.7rem, 3vw, 0.8rem);
    }

    .contact-info h3 {
        font-size: clamp(1rem, 5vw, 1.2rem);
    }

    .contact-info p {
        font-size: clamp(0.8rem, 3vw, 0.9rem);
    }
}

/* Очень маленькие телефоны */
@media (max-width: 360px) {
    .section-title {
        font-size: 1.25rem;
        padding: 0 0.4rem;
    }

    .section-title::after {
        width: 35px;
        height: 2px;
    }

    .section-subtitle {
        font-size: 0.8rem;
        padding: 0 0.5rem;
    }

    .hero h1 {
        font-size: clamp(1.2rem, 7vw, 1.4rem);
    }

    .hero-subtitle {
        font-size: clamp(0.85rem, 3.5vw, 0.95rem);
    }

    .hero-description {
        font-size: clamp(0.75rem, 3vw, 0.85rem);
    }

    .service-card h3,
    .equipment-card h3,
    .advantage-content h3,
    .portfolio-content h3 {
        font-size: clamp(0.8rem, 4.5vw, 0.95rem);
    }

    .service-card p,
    .equipment-card p,
    .advantage-content p,
    .portfolio-content p {
        font-size: clamp(0.65rem, 3vw, 0.75rem);
    }
}

/* ============================================
   КОМПАКТНЫЕ КАРТОЧКИ ДЛЯ МОБИЛЬНЫХ
   ============================================ */

@media (max-width: 991px) {
    .service-card {
        padding: 1.5rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .service-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .service-card p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

@media (max-width: 767px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-card {
        padding: 1.25rem;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    .service-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .service-card p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

@media (max-width: 575px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .service-card {
        padding: 1rem;
        border-radius: 12px;
    }

    .service-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
    }

    .service-card h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .service-card p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .service-card {
        padding: 0.9rem;
        border-radius: 10px;
    }

    .service-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .service-card h3 {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
    }

    .service-card p {
        font-size: 0.75rem;
        line-height: 1.4;
    }
}

@media (max-width: 360px) {
    .services-grid {
        gap: 0.5rem;
    }

    .service-card {
        padding: 0.75rem;
        border-radius: 8px;
    }

    .service-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }

    .service-card h3 {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }

    .service-card p {
        font-size: 0.7rem;
        line-height: 1.3;
    }
}

/* EQUIPMENT */
@media (max-width: 767px) {
    .equipment-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .equipment-card {
        padding: 1rem;
    }

    .equipment-card i {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .equipment-card h3 {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }

    .equipment-card p {
        font-size: 0.75rem;
    }
}

@media (max-width: 575px) {
    .equipment-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .equipment-card {
        padding: 0.9rem;
    }

    .equipment-card i {
        font-size: 1.8rem;
        margin-bottom: 0.4rem;
    }

    .equipment-card h3 {
        font-size: 0.85rem;
    }

    .equipment-card p {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .equipment-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .equipment-card {
        padding: 0.75rem;
    }

    .equipment-card i {
        font-size: 1.5rem;
        margin-bottom: 0.3rem;
    }

    .equipment-card h3 {
        font-size: 0.75rem;
    }

    .equipment-card p {
        font-size: 0.65rem;
    }
}

@media (max-width: 360px) {
    .equipment-card {
        padding: 0.6rem;
    }

    .equipment-card i {
        font-size: 1.3rem;
    }

    .equipment-card h3 {
        font-size: 0.7rem;
    }

    .equipment-card p {
        font-size: 0.6rem;
    }
}

/* ADVANTAGES */
@media (max-width: 767px) {
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .advantage-card {
        padding: 1.25rem;
        gap: 1rem;
    }

    .advantage-icon {
        min-width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .advantage-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
    }

    .advantage-content p {
        font-size: 0.85rem;
    }
}

@media (max-width: 575px) {
    .advantages-grid {
        gap: 0.75rem;
    }

    .advantage-card {
        padding: 1rem;
        gap: 0.75rem;
    }

    .advantage-icon {
        min-width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .advantage-content h3 {
        font-size: 1rem;
    }

    .advantage-content p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .advantage-card {
        padding: 0.9rem;
    }

    .advantage-icon {
        min-width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .advantage-content h3 {
        font-size: 0.95rem;
    }

    .advantage-content p {
        font-size: 0.75rem;
    }
}

@media (max-width: 360px) {
    .advantage-card {
        padding: 0.75rem;
    }

    .advantage-icon {
        min-width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .advantage-content h3 {
        font-size: 0.9rem;
    }

    .advantage-content p {
        font-size: 0.7rem;
    }
}

/* PORTFOLIO */
@media (max-width: 767px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .portfolio-image {
        height: 200px;
    }

    .portfolio-content {
        padding: 1rem;
    }

    .portfolio-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .portfolio-content p {
        font-size: 0.85rem;
    }

    .portfolio-region {
        font-size: 0.8rem;
        padding: 0.25rem 0.6rem;
    }
}

@media (max-width: 575px) {
    .portfolio-image {
        height: 180px;
    }

    .portfolio-content {
        padding: 0.9rem;
    }

    .portfolio-content h3 {
        font-size: 1rem;
    }

    .portfolio-content p {
        font-size: 0.8rem;
    }

    .portfolio-region {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .portfolio-image {
        height: 160px;
    }

    .portfolio-content {
        padding: 0.75rem;
    }

    .portfolio-content h3 {
        font-size: 0.95rem;
    }

    .portfolio-content p {
        font-size: 0.75rem;
    }
}

@media (max-width: 360px) {
    .portfolio-image {
        height: 140px;
    }

    .portfolio-content {
        padding: 0.6rem;
    }

    .portfolio-content h3 {
        font-size: 0.9rem;
    }

    .portfolio-content p {
        font-size: 0.7rem;
    }

    .portfolio-region {
        font-size: 0.7rem;
        padding: 0.15rem 0.4rem;
    }
}

/* ОТСТУПЫ СЕКЦИЙ */
@media (max-width: 767px) {
    section {
        padding: 3rem 1rem;
    }
}

@media (max-width: 575px) {
    section {
        padding: 2rem 0.75rem;
    }
}

@media (max-width: 480px) {
    section {
        padding: 1.5rem 0.5rem;
    }
}

@media (max-width: 360px) {
    section {
        padding: 1.25rem 0.5rem;
    }
}