/* Reset and base styles */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Мобильная адаптация контейнера */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .contact-form-section .container {
        padding: 0 10px;
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 10px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 28px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-list a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-list a:hover {
    color: #3498db;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-social {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: background 0.3s;
}

.header-social-link.vk {
    background: #4a76a8;
}

.header-social-link.telegram {
    background: #0088cc;
}

.header-social-link:hover {
    opacity: 0.8;
}

.phone {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone-icon {
    font-size: 18px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    text-align: center;
}

.btn-primary {
    background-color: #3498db;
    color: #fff;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.btn-secondary:hover {
    background-color: #3498db;
    color: #fff;
}

.btn-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    margin: 5px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-vk {
    background-color: #4a76a8;
    color: #fff;
}

.btn-vk:hover {
    background-color: #3a5a7c;
}

.btn-telegram {
    background-color: #0088cc;
    color: #fff;
}

.btn-telegram:hover {
    background-color: #006699;
}

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.burger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero */
.hero {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-start;
    position: relative;
    margin-top: 0;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.35) 0%, rgba(20,40,80,0.25) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    padding: 60px 30px 50px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 7px 20px;
    border-radius: 30px;
    margin-bottom: 22px;
}

.hero h1 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 18px;
    line-height: 1.25;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.hero-founders {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 18px;
}

.hero-founder {
    text-align: center;
}

.hero-founder-photo {
    display: block;
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.5);
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    margin: 0 auto 18px auto;
}

.hero-name {
    font-size: 30px;
    font-weight: 700;
    color: #e8eaf0;
    margin-bottom: 14px;
    line-height: 1.7;
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

.hero-founder-name {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 14px;
    text-align: center;
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

.hero-quote {
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-style: normal;
    color: #ffffff;
    margin-bottom: 14px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

.hero-quote + .hero-quote {
    margin-top: -10px;
    margin-bottom: 14px;
}

.hero-quote:last-of-type {
    font-size: 20px;
    font-weight: 300;
    text-transform: none;
    letter-spacing: 0;
    color: #f0f4ff;
}

.hero-desc {
    font-size: 20px;
    font-weight: 300;
    color: #e8eaf0;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-services {
    margin-bottom: 28px;
}

.hero-services-title {
    font-size: 17px;
    font-weight: 400;
    color: #e8eaf0;
    margin-bottom: 12px;
    line-height: 1.5;
}

.hero-services-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 16px;
}

.hero-services-list li {
    font-size: 15px;
    font-weight: 400;
    color: #ffffff;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 6px 10px;
    backdrop-filter: blur(4px);
    line-height: 1.4;
}

.hero .hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    font-weight: 300;
    color: #ddd;
}

.hero-list {
    list-style: none;
    margin-bottom: 38px;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 20px 30px;
    gap: 0;
}

.hero-list li {
    font-size: 16px;
    padding: 7px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #f0f4ff;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.hero-list li:last-child {
    border-bottom: none;
}

.hero-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: #27ae60;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(39,174,96,0.4);
}

.hero-check svg {
    width: 15px;
    height: 15px;
    display: block;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.hero-buttons .btn {
    width: calc(35% - 8px);
    padding: 10px 16px;
    font-size: 14px;
}

/* Мобильная адаптация кнопок */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 80%;
        padding: 12px 20px;
        font-size: 16px;
    }
}

.btn-vk {
    background-color: #4a76a8;
    color: #fff;
}

.btn-vk:hover {
    background-color: #3a5a82;
}

.btn-telegram {
    background-color: #0088cc;
    color: #fff;
}

.btn-telegram:hover {
    background-color: #006699;
}

/* Sections */
section {
    padding: 100px 0;
}

h2 {
    font-size: 36px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 60px;
    color: #2c3e50;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.service-card {
    background-color: #f8f9fa;
    padding: 32px 24px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #2c3e50;
    font-weight: 600;
}

.service-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Work types */
.work-types {
    background: #1a1a2e;
    padding: 80px 0;
}

.work-types h2 {
    color: #ffffff;
    text-align: center;
    font-size: 36px;
    margin-bottom: 12px;
}

.work-types h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #3498db;
    margin: 15px auto 0;
    border-radius: 2px;
}

.work-types-subtitle {
    text-align: center;
    color: #a0aec0;
    font-size: 17px;
    margin-bottom: 48px;
}

.work-types-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.work-type-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: default;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 80px;
}

.work-type-card:hover {
    background: rgba(52,152,219,0.2);
    border-color: #3498db;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(52,152,219,0.2);
}

.work-type-num {
    font-size: 32px;
    font-weight: 700;
    color: #3498db;
    line-height: 1;
    margin-bottom: 10px;
    opacity: 0.7;
}

.work-type-name {
    font-size: 16px;
    font-weight: 500;
    color: #e8eaf0;
    line-height: 1.4;
}

/* Why us */
.why-us {
    background: linear-gradient(135deg, #e8f4f8 0%, #d1ecf1 100%);
    padding: 100px 0;
}

.why-us h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #3498db;
    margin: 15px auto 0;
    border-radius: 2px;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.why-us-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.why-us-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
    transition: left 0.5s;
}

.why-us-card:hover::before {
    left: 100%;
}

.why-us-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.why-us-card:hover::after {
    transform: scaleX(1);
}

.why-us-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.why-us-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    margin: 0 auto 25px;
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
    transition: all 0.3s;
}

.why-us-card:hover .why-us-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 15px 35px rgba(52, 152, 219, 0.5);
}

.why-us-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 700;
}

.why-us-card p {
    color: #666;
    line-height: 1.6;
    font-size: 16px;
}

/* How we work */
.how-we-work {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 100px 0;
    position: relative;
}

.how-we-work h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #3498db;
    margin: 15px auto 0;
    border-radius: 2px;
}

.timeline {
    position: relative;
    padding: 60px 0;
    max-width: 1100px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #3498db;
    transform: translateX(-50%);
    border-radius: 2px;
    z-index: 1;
}

.timeline-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 100px;
    position: relative;
}

.timeline-item .timeline-content,
.timeline-item .timeline-image {
    width: 45%;
    max-width: 460px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    padding: 28px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 2;
}

.timeline-item .timeline-content:hover,
.timeline-item .timeline-image:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.14);
}

.timeline-item .timeline-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* Чередование сторон */
.timeline-item:not(.even) {
    flex-direction: row;
}

.timeline-item.even {
    flex-direction: row-reverse;
}

/* Номер этапа */
.timeline-number {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 3;
    box-shadow: 0 0 0 8px #fff;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .timeline {
        padding: 40px 0;
    }

    .timeline-line {
        left: 28px;
        transform: none;
    }

    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        margin-bottom: 70px;
        gap: 24px;
    }

    .timeline-item .timeline-content,
    .timeline-item .timeline-image {
        width: 100%;
        max-width: none;
    }

    .timeline-number {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        margin: 0 0 16px 0;
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }

    .timeline-item .timeline-content {
        order: 1;
    }

    .timeline-item .timeline-image {
        order: 2;
    }
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.tab-button {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    color: #666;
}

.tab-button.active {
    color: #3498db;
    border-bottom-color: #3498db;
}

.tab-button:hover {
    color: #3498db;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.portfolio-grid-full {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.work-item {
    text-align: center;
}

.work-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.work-item p {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}
   

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.portfolio-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

.portfolio-button {
    text-align: center;
}

/* Reviews */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.review p {
    font-size: 16px;
    margin-bottom: 20px;
    font-style: italic;
    color: #555;
}

.review-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-author span:first-child {
    font-weight: 600;
    color: #2c3e50;
}

.reviews-button {
    text-align: center;
    margin-top: 40px;
}

/* Reviews Page */
.reviews-page {
    padding: 80px 0;
    min-height: 100vh;
}

.reviews-page h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 42px;
}

.reviews-page-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
    font-size: 18px;
}

.reviews-all-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.reviews-back {
    text-align: center;
    margin-top: 60px;
}

.review-type {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.review {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.review p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #555;
    line-height: 1.6;
}

.review-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
    margin-top: auto;
}

.review-bottom .review-type {
    margin-top: 0;
}

/* Contact form */
.contact-form-section {
    background-color: #f8f9fa;
}

.contact-form-section h2 {
    color: #2c3e50;
}

.contact-form-section p {
    text-align: center;
    margin-bottom: 40px;
    color: #666;
}

.contact-manager {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 36px;
}

.contact-manager-photo img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 3px solid #e8a020;
    display: block;
    margin: 0 auto 12px;
}

.contact-manager-name {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 6px;
}

.contact-manager-hours {
    font-size: 14px;
    color: #666;
}

.social-links {
    text-align: center;
    margin: 20px 0;
}

#contact-form {
    max-width: 500px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

#contact-form input,
#contact-form select,
#contact-form textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #333;
}

#contact-form input::placeholder,
#contact-form select::placeholder,
#contact-form textarea::placeholder {
    color: #999;
    opacity: 1;
}

#contact-form select option {
    color: #999;
    opacity: 1;
}

#contact-form button {
    padding: 15px;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-section p,
.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    margin-bottom: 10px;
    display: block;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-social {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-social-link {
    display: inline-block;
    padding: 10px 16px;
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-align: center;
}

.footer-social-link:hover {
    background-color: #2980b9;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.footer-vk {
    background-color: #4a76a8;
}

.footer-vk:hover {
    background-color: #3a5a7c;
}

.footer-telegram {
    background-color: #0088cc;
}

.footer-telegram:hover {
    background-color: #006699;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #34495e;
    padding-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 5px 0;
    }

    .header .container {
        flex-wrap: wrap;
        gap: 10px;
    }

    .logo {
        font-size: 18px;
    }

    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    .nav-list.active {
        display: flex;
    }

    .burger {
        display: flex;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
    }

    .header-right {
        display: flex;
        margin-right: 50px;
    }

    .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        display: none;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-list li {
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }

    .phone {
        font-size: 14px;
        white-space: nowrap;
    }

    .header-right .btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .btn {
        font-size: 14px;
        padding: 8px 16px;
    }

    .hero {
        min-height: 100vh;
        padding-top: 60px;
    }

    .hero-content {
        padding: 40px 16px 40px;
        text-align: center;
        max-width: 100%;
    }

    .hero h1 {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .hero-quote {
        font-size: 18px;
    }

    .hero-desc {
        font-size: 15px;
        margin-bottom: 22px;
    }

    .hero-list {
        margin-bottom: 24px;
        padding: 14px 18px;
        width: 100%;
    }

    .hero-list li {
        font-size: 14px;
        justify-content: flex-start;
        padding: 6px 0;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .why-us-card {
        padding: 30px 20px;
    }

    .why-us-icon {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }

    .why-us-card h3 {
        font-size: 22px;
    }

    .why-us-card p {
        font-size: 15px;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    /* Reviews Page - Mobile */
    .reviews-page {
        padding: 60px 0;
    }

    .reviews-page h1 {
        font-size: 32px;
    }

    .reviews-page-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .reviews-all-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .review {
        padding: 20px;
        min-height: auto;
    }

    .review p {
        font-size: 15px;
    }

    .review-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .reviews-button {
        margin-top: 30px;
        padding: 0 15px;
    }

    .reviews-button .btn {
        width: 100%;
        text-align: center;
    }

    .reviews-back {
        margin-top: 40px;
        padding: 0 15px;
    }

    .reviews-back .btn {
        width: 100%;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Work Types - оптимизация для мобильных */
    .work-types {
        padding: 60px 0;
    }

    .work-types h2 {
        font-size: 26px;
        margin-bottom: 8px;
    }

    .work-types-subtitle {
        font-size: 15px;
        margin-bottom: 32px;
        padding: 0 10px;
    }

    .work-types-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .work-type-card {
        padding: 18px 14px;
    }

    .work-type-num {
        font-size: 26px;
        margin-bottom: 8px;
    }

    .work-type-name {
        font-size: 14px;
        line-height: 1.3;
    }

    /* Services - мобильная оптимизация */
    section {
        padding: 60px 0;
    }

    h2 {
        font-size: 26px;
        margin-bottom: 40px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .service-card {
        padding: 24px 18px;
    }

    .service-card h3 {
        font-size: 16px;
    }

    .service-card p {
        font-size: 13px;
    }

    /* Portfolio tabs - мобильная оптимизация */
    .tabs {
        flex-wrap: wrap;
        gap: 8px;
        padding: 0 10px;
    }

    .tab-button {
        padding: 10px 16px;
        font-size: 15px;
    }

    .portfolio-grid-full {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .work-item img {
        height: 220px;
    }

    .work-item-title {
        font-size: 16px;
    }

    .work-item-btn-gallery {
        font-size: 13px;
        padding: 9px 14px;
    }

    /* Reviews - мобильная оптимизация */
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .review {
        padding: 24px 18px;
    }

    /* Contact form - мобильная оптимизация */
    .contact-manager-photo img {
        width: 120px;
        height: 120px;
    }

    .contact-manager-name {
        font-size: 18px;
    }

    #contact-form {
        padding: 0 10px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    #contact-form input,
    #contact-form select,
    #contact-form textarea {
        font-size: 15px;
        padding: 12px;
        width: 100%;
        box-sizing: border-box;
    }

    #contact-form button {
        padding: 14px;
        font-size: 16px;
    }

    .contact-form-section {
        padding: 50px 0;
    }

    .contact-manager-photo img {
        width: 120px;
        height: 120px;
    }

    .contact-manager-name {
        font-size: 18px;
    }

    .contact-form-section h2 {
        font-size: 28px;
    }

    .contact-form-section p {
        font-size: 15px;
        margin-bottom: 25px;
    }

    #contact-form {
        gap: 15px;
    }

    /* Footer - мобильная оптимизация */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-section h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    /* Hero services list - мобильная оптимизация */
    .hero-services-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .hero-services-list li {
        font-size: 14px;
        text-align: left;
    }

    /* Founder photos - мобильная оптимизация */
    .hero-founders {
        gap: 24px;
    }

    .hero-founder-photo {
        width: 160px;
        height: 160px;
        border-radius: 50%;
    }

    .hero-name {
        font-size: 24px;
    }
}

/* Tablet (iPad, Android tablets) */
@media (min-width: 769px) and (max-width: 1024px) {
    .reviews-all-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .portfolio-grid-full {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .reviews-page h1 {
        font-size: 38px;
    }

    .review {
        padding: 25px;
    }

    /* Contact form - планшетная оптимизация */
    .contact-form-section {
        padding: 60px 0;
    }

    #contact-form {
        max-width: 450px;
    }

    #contact-form input,
    #contact-form select,
    #contact-form textarea {
        padding: 14px;
    }
}

/* Very small phones */
@media (max-width: 380px) {
    .reviews-page h1 {
        font-size: 26px;
    }

    .reviews-page-subtitle {
        font-size: 14px;
    }

    .review p {
        font-size: 14px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 400px) {
    .work-types-grid {
        grid-template-columns: 1fr;
    }

    .work-type-card {
        padding: 20px 16px;
    }

    .work-type-name {
        font-size: 15px;
    }

    .hero h1 {
        font-size: 22px;
    }

    .hero-founders {
        gap: 16px;
    }

    .hero-founder-photo {
        width: 140px;
        height: 140px;
        border-radius: 50%;
    }

    .hero-name {
        font-size: 22px;
    }

    .hero-quote {
        font-size: 16px;
    }

    /* Contact form - очень маленькие экраны */
    .contact-form-section {
        padding: 40px 0;
    }

    .contact-form-section h2 {
        font-size: 24px;
    }

    #contact-form input,
    #contact-form select,
    #contact-form textarea {
        padding: 12px;
        font-size: 14px;
    }

    #contact-form button {
        padding: 12px;
        font-size: 15px;
    }

    .contact-manager-photo img {
        width: 100px;
        height: 100px;
    }

    .contact-manager-name {
        font-size: 16px;
    }

    .footer-social {
        gap: 8px;
    }

    .footer-social-link {
        padding: 8px 12px;
        font-size: 12px;
    }

    .btn {
        font-size: 15px;
        padding: 10px 20px;
        width: 100%;
        max-width: 280px;
    }
}

/* =====================
   Portfolio full page
   ===================== */
.portfolio-full {
    flex: 1;
    padding-top: 140px;
}

.portfolio-tg-notice {
    margin: 18px 0 32px;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    max-width: 760px;
}

.portfolio-tg-notice a {
    color: #2980b9;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(41, 128, 185, 0.35);
    transition: color 0.2s, border-color 0.2s;
}

.portfolio-tg-notice a:hover {
    color: #1a5f8a;
    border-color: #1a5f8a;
}

@media (max-width: 600px) {
    .portfolio-tg-notice {
        font-size: 14px;
        margin: 14px 0 24px;
    }
}

.portfolio-grid-full {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.work-item {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.work-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.work-item img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

.work-item p {
    padding: 15px;
    color: #555;
    font-size: 15px;
    font-weight: 500;
}

/* =====================
   Modal
   ===================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.modal-window {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}

.modal-overlay.is-open .modal-window {
    transform: scale(1);
}

/* Scrollbar inside modal */
.modal-window::-webkit-scrollbar {
    width: 6px;
}
.modal-window::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 16px 16px 0;
}
.modal-window::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* Close button */
.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.55);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s;
    flex-shrink: 0;
}

.modal-close:hover {
    background: rgba(0,0,0,0.85);
}

.modal-close svg {
    display: block;
    flex-shrink: 0;
}

/* Slider */
.modal-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #111;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}

.modal-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.modal-slide {
    min-width: 100%;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.45);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0;
    transition: opacity 0.25s, background 0.2s;
    flex-shrink: 0;
}

.slider-arrow svg {
    display: block;
    flex-shrink: 0;
}

.modal-slider:hover .slider-arrow {
    opacity: 1;
}

.slider-arrow:hover {
    background: rgba(0,0,0,0.75);
}

/* Всегда показывать стрелки на мобильных */
@media (max-width: 768px) {
    .slider-arrow {
        opacity: 1;
    }
}

.slider-arrow--prev {
    left: 12px;
}

.slider-arrow--next {
    right: 12px;
}

.slider-arrow:disabled {
    opacity: 0 !important;
    pointer-events: none;
}

/* Dots */
.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 5;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.slider-dot.is-active {
    background: #fff;
    transform: scale(1.3);
}

/* Modal info */
.modal-info {
    padding: 22px 24px 28px;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
    line-height: 1.3;
}

.modal-description {
    font-size: 15px;
    color: #555;
    line-height: 1.65;
}

.desc-line {
    display: block;
    margin-bottom: 5px;
}

.desc-line:last-child {
    margin-bottom: 0;
}

/* Responsive modal */
@media (max-width: 600px) {
    .modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .modal-window {
        max-width: 100%;
        max-height: 92vh;
        border-radius: 20px 20px 0 0;
    }

    .modal-slider {
        border-radius: 20px 20px 0 0;
        aspect-ratio: 1 / 1;
    }

    .slider-arrow {
        opacity: 1;
        width: 38px;
        height: 38px;
        font-size: 22px;
    }
}

/* =====================
   Call Modal
   ===================== */
.call-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.call-modal-overlay.is-open {
    display: flex;
}

.call-modal-window {
    max-width: 420px;
    width: 100%;
    background: #fff;
    border-radius: 16px;
    overflow: visible;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.call-modal-body {
    padding: 48px 32px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.call-modal-icon {
    font-size: 52px;
    margin-bottom: 18px;
    line-height: 1;
    animation: call-ring 1.2s ease-in-out infinite;
    transform-origin: top center;
}

.call-modal-photo {
    margin-bottom: 14px;
}

.call-modal-photo img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 3px solid #e8a020;
    display: block;
    margin: 0 auto;
}

@keyframes call-ring {
    0%, 100% { transform: rotate(0deg); }
    10%       { transform: rotate(-18deg); }
    20%       { transform: rotate(18deg); }
    30%       { transform: rotate(-12deg); }
    40%       { transform: rotate(12deg); }
    50%       { transform: rotate(0deg); }
}

.call-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
    line-height: 1.3;
}

.call-modal-subtitle {
    font-size: 15px;
    color: #777;
    margin-bottom: 24px;
}

.call-modal-phone {
    display: inline-block;
    font-size: 30px;
    font-weight: 700;
    color: #3498db;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.2s;
    margin-bottom: 8px;
}

.call-modal-phone:hover {
    color: #2980b9;
}

.call-modal-hint {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 24px;
}

.call-modal-divider {
    width: 100%;
    height: 1px;
    background: #eee;
    margin-bottom: 20px;
}

.call-modal-or {
    font-size: 14px;
    color: #888;
    margin-bottom: 16px;
}

.call-modal-btn {
    width: 100%;
    font-size: 16px;
    padding: 14px 24px;
}

@media (max-width: 600px) {
    .call-modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .call-modal-window {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
    }

    .call-modal-body {
        padding: 36px 24px 32px;
    }

    .call-modal-phone {
        font-size: 26px;
    }

    .call-modal-title {
        font-size: 22px;
    }
}

/* ===========================================
   НОВЫЕ СТИЛИ — Изменения по ТЗ (2026-04-30)
   =========================================== */

/* --- 1. Секция «Как мы работаем» — новая сетка вместо таймлайна --- */
.timeline-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.timeline-grid-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    padding: 28px 24px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.timeline-grid-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.14);
}

.timeline-grid-number {
    width: 56px;
    height: 56px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.timeline-grid-item h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.timeline-grid-item p {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .timeline-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .timeline-grid-item {
        padding: 24px 18px;
    }
    
    .timeline-grid-number {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
    
    .timeline-grid-item h3 {
        font-size: 18px;
    }
    
    .timeline-grid-item p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .timeline-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

/* --- 2. Секция с кнопками категорий (вместо портфолио на главной) --- */
.category-buttons {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.category-buttons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.category-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 40px 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    text-decoration: none;
    color: #2c3e50;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    min-height: 180px;
}

.category-btn:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(52, 152, 219, 0.2);
    background: #ebf5fb;
}

.category-btn-icon {
    font-size: 48px;
    line-height: 1;
}

.category-btn-text {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .category-buttons-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .category-btn {
        padding: 30px 20px;
        min-height: 140px;
    }
    
    .category-btn-icon {
        font-size: 40px;
    }
    
    .category-btn-text {
        font-size: 16px;
    }
}

/* --- 3. Страница категории --- */
.category-page {
    flex: 1;
    padding-top: 140px;
    padding-bottom: 80px;
}

.category-article {
    max-width: 800px;
    margin: 0 auto 50px;
    padding: 36px;
    background: #f8f9fa;
    border-radius: 16px;
    border-left: 4px solid #3498db;
}

.category-article p {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 16px;
}

.category-article p:last-child {
    margin-bottom: 0;
}

.category-article ul {
    margin: 12px 0 16px 24px;
}

.category-article li {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 8px;
}

.category-works-title {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 40px;
}

.category-back {
    text-align: center;
    margin-top: 50px;
}

.no-works-message {
    text-align: center;
    grid-column: 1 / -1;
    font-size: 18px;
    color: #888;
    padding: 40px 0;
}

@media (max-width: 768px) {
    .category-page {
        padding-top: 100px;
    }
    
    .category-article {
        padding: 24px 20px;
    }
    
    .category-article p {
        font-size: 15px;
    }
    
    .category-works-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
}

/* --- 4. Обновлённый дизайн карточки работы (без описания) --- */
.work-item-footer {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.work-item-title {
    color: #444;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.work-item-btn-gallery {
    padding: 10px 16px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.work-item-btn-gallery:hover {
    background: #2980b9;
}

/* Сетка 2 в ряд на десктопе */
.portfolio-grid-full {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* --- 5. Модальное окно — только галерея, без текста --- */
.modal-slider.gallery-only {
    border-radius: 16px;
}

/* --- 6. Скрытие старого таймлайна (используется только новая сетка) --- */
.timeline,
.timeline-line,
.timeline-item,
.timeline-item.even {
    display: none;
}