/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Верхняя часть шапки */
.top-header {
    background-color: #3e637d;
    color: #fff;
    padding: 15px 0;
}

.header-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.header-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 200px;
}

.header-item i {
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
}

/* Название компании */
.company-name {
    flex-direction: column;
    align-items: flex-start;
    min-width: 250px;
    flex-shrink: 0;
}

.company-name h1 {
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.company-name .subtitle {
    font-size: 14px;
    font-weight: 300;
    margin: 0;
    opacity: 0.9;
}

/* Адрес */
.address {
    font-size: 16px;
}

/* Время работы */
.working-hours {
    align-items: center;
}

.hours-text {
    font-size: 16px;
    line-height: 1.4;
}

/* Email */
.email a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: opacity 0.3s;
}

.email a:hover {
    opacity: 0.8;
}

/* Телефон */
.phone a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: opacity 0.3s;
}

.phone a:hover {
    opacity: 0.8;
}

/* Нижняя часть шапки (особенности) */
.features-section {
    background-color: #f6f6f6;
    padding: 40px 0;
}

.features-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.coat-of-arms {
    flex-shrink: 0;
}

.coat-of-arms img {
    max-width: 150px;
    height: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    flex: 1;
}

.feature-item {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.feature-item h3 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #333;
}

.feature-item p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

.feature-item strong {
    color: #333;
    font-weight: 600;
}

/* Секция с информацией и слайдером */
.info-slider-section {
    padding: 60px 0;
    background-color: #fff;
}

.info-slider-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

/* Левая часть - информация */
.info-block {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.main-title {
    font-size: 36px;
    font-weight: 300;
    color: #333;
    line-height: 1.3;
    margin: 0;
}

.price-text {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin: 0;
}

.price {
    color: #c82824;
    font-weight: 600;
    font-size: 20px;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.service-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2574A9;
    border-radius: 8px;
    color: #fff;
    font-size: 24px;
}

.service-content h3 {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin: 0 0 8px 0;
}

.service-content p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.warranty-text {
    color: #2574A9;
    font-weight: 600;
    text-decoration: underline;
}

.order-btn {
    display: inline-block;
    padding: 18px 40px;
    background-color: #c82824;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    border-radius: 5px;
    transition: background-color 0.3s;
    align-self: flex-start;
}

.order-btn:hover {
    background-color: #a0201c;
}

.certification-text {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.certification-text strong {
    color: #333;
    font-weight: 600;
}

/* Правая часть - слайдер */
.slider-block {
    position: relative;
}

.slider-container {
    position: relative;
    width: 100%;
    max-width: 553px;
    margin: 0 auto;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.slide {
    display: none;
    width: 100%;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background-color 0.3s;
    z-index: 10;
}

.slider-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: #2574A9;
}

/* Секция с шагами и контактами */
.steps-section {
    padding: 60px 0;
    background-color: #fff;
}

.steps-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex: 1;
    min-width: 200px;
    position: relative;
}

.steps-wrapper > .step-item:not(.step-contact):nth-child(1)::after,
.steps-wrapper > .step-item:not(.step-contact):nth-child(2)::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 0;
    width: 1px;
    height: 60px;
    background-color: #ddd;
}

.step-number {
    font-size: 48px;
    font-weight: 700;
    color: #2574A9;
    line-height: 1;
    flex-shrink: 0;
    min-width: 60px;
}

.step-divider {
    display: none;
}

.step-content {
    flex: 1;
}

.step-content p {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

.step-link {
    color: #2574A9;
    text-decoration: underline;
    transition: color 0.3s;
}

.step-link:hover {
    color: #1a5a8a;
}

/* Контактная информация */
.step-contact {
    align-items: center;
    gap: 15px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: #2574A9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    flex-shrink: 0;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-phone {
    font-size: 21px;
    font-weight: 700;
    color: #2574A9;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s;
}

.contact-phone:hover {
    color: #1a5a8a;
}

.contact-location {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 0;
}

/* Секция каталога */
.catalog-section {
    padding: 60px 0;
    background-color: #fff;
}

.catalog-title {
    font-size: 36px;
    font-weight: 300;
    text-align: center;
    color: #333;
    margin: 0 0 50px 0;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.catalog-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
    display: flex;
    flex-direction: column;
}

.catalog-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f5f5f5;
}

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

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
}

.card-content h3 {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.card-region {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.card-price {
    margin: 8px 0;
}

.card-price p {
    font-size: 15px;
    color: #333;
    margin: 4px 0;
    line-height: 1.5;
}

.price-value {
    color: #c82824;
    font-weight: 600;
}

.price-old {
    text-decoration: line-through;
    opacity: 0.6;
    color: #666;
    font-weight: 500;
    margin-right: 5px;
}

.card-btn {
    display: block;
    padding: 12px 20px;
    background-color: #2574A9;
    color: #fff;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    border-radius: 5px;
    transition: background-color 0.3s;
    margin-top: auto;
}

.card-btn:hover {
    background-color: #1a5a8a;
}

/* Секция вариантов оплаты */
.payment-section {
    padding: 60px 0;
    background-color: #fff;
}

.payment-title {
    font-size: 36px;
    font-weight: 300;
    text-align: center;
    color: #333;
    margin: 0 0 50px 0;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.payment-card {
    background-color: #fff;
    border-radius: 5px;
    padding: 25px 20px;
    box-shadow: 0px 24px 30px 0px rgba(236, 236, 236, 0.92);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.payment-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.payment-card h3 {
    font-size: 20px;
    font-weight: 400;
    color: #2574A9;
    margin: 0;
    line-height: 1.3;
}

.payment-card p {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

.payment-logos {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.payment-logos img {
    height: 30px;
    width: auto;
    object-fit: contain;
}

/* Секция рамок для номеров */
.frames-section {
    padding: 60px 0;
    background-color: #fff;
}

.frames-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.frame-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
    display: flex;
    flex-direction: column;
}

.frame-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.frame-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #f5f5f5;
}

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

.frame-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
}

.frame-content h3 {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.frame-content > p {
    font-size: 15px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.frame-price {
    font-size: 16px;
    color: #333;
    margin: 8px 0;
    font-weight: 500;
}

.frame-price span {
    color: #c82824;
    font-weight: 600;
}

/* Секция сравнения подделки и оригинала */
.comparison-section {
    padding: 60px 0;
    background-color: #fff;
}

.comparison-title {
    font-size: 36px;
    font-weight: 300;
    text-align: center;
    color: #333;
    margin: 0 0 50px 0;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.comparison-card {
    background-color: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: box-shadow 0.3s, border-color 0.3s;
}

.comparison-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #2574A9;
}

.comparison-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #f5f5f5;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comparison-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.comparison-card h3 {
    font-size: 20px;
    font-weight: 500;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.comparison-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comparison-list li {
    font-size: 16px;
    color: #333;
    line-height: 1.5;
    padding-left: 25px;
    position: relative;
}

.comparison-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2574A9;
    font-weight: bold;
    font-size: 18px;
}

.comparison-warning {
    font-size: 14px;
    color: #c82824;
    font-style: italic;
    margin: 0;
    padding: 10px;
    background-color: #fff5f5;
    border-left: 3px solid #c82824;
    border-radius: 3px;
}

.comparison-success {
    font-size: 14px;
    color: #28a745;
    font-style: italic;
    margin: 0;
    padding: 10px;
    background-color: #f0fff4;
    border-left: 3px solid #28a745;
    border-radius: 3px;
}

.comparison-info {
    font-size: 14px;
    color: #2574A9;
    font-style: italic;
    margin: 0;
    padding: 10px;
    background-color: #f0f7ff;
    border-left: 3px solid #2574A9;
    border-radius: 3px;
}

/* Основной контент */
.main-content {
    padding: 40px 0;
    min-height: 400px;
}

/* Адаптивность для планшетов */
@media (max-width: 991px) {
    .header-content {
        justify-content: flex-start;
    }
    
    .header-item {
        min-width: 180px;
    }
    
    .features-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .coat-of-arms {
        align-self: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }
    
    .info-slider-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .main-title {
        font-size: 28px;
    }
}

/* Адаптивность для мобильных */
@media (max-width: 767px) {
    .top-header {
        padding: 20px 0;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .header-column {
        width: 100%;
        min-width: auto;
    }
    
    .header-item {
        width: 100%;
        min-width: auto;
        padding: 8px 0;
    }
    
    .company-name {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding-bottom: 15px;
    }
    
    .company-name h1 {
        font-size: 24px;
    }
    
    .address,
    .working-hours,
    .email,
    .phone {
        font-size: 16px;
    }
    
    .email a {
        font-size: 15px;
    }
    
    .phone a {
        font-size: 18px;
    }
    
    .features-section {
        padding: 30px 0;
    }
    
    .features-content {
        gap: 20px;
    }
    
    .coat-of-arms img {
        max-width: 100px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-item {
        padding: 20px;
    }
    
    .feature-item h3 {
        font-size: 20px;
    }
    
    .info-slider-section {
        padding: 40px 0;
    }
    
    .info-slider-wrapper {
        gap: 30px;
    }
    
    .main-title {
        font-size: 24px;
    }
    
    .service-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .service-content h3 {
        font-size: 16px;
    }
    
    .order-btn {
        padding: 15px 30px;
        font-size: 14px;
        width: 100%;
    }
    
    .slider-container {
        max-width: 100%;
    }
    
    .steps-section {
        padding: 40px 0;
    }
    
    .steps-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    
    .step-item {
        width: 100%;
        min-width: auto;
    }
    
    .step-number {
        font-size: 40px;
        min-width: 50px;
    }
    
    .step-item:not(.step-contact):not(:last-of-type)::after {
        display: none;
    }
    
    .step-content p {
        font-size: 15px;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .contact-phone {
        font-size: 18px;
    }
    
    .catalog-section {
        padding: 40px 0;
    }
    
    .catalog-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .catalog-title {
        font-size: 24px;
    }
    
    .payment-section {
        padding: 40px 0;
    }
    
    .payment-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .payment-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .payment-card {
        padding: 20px;
    }
    
    .payment-icon {
        width: 50px;
        height: 50px;
    }
    
    .payment-card h3 {
        font-size: 18px;
    }
    
    .payment-card p {
        font-size: 15px;
    }
    
    .card-image {
        height: 180px;
    }
    
    .card-content {
        padding: 15px;
    }
    
    .card-content h3 {
        font-size: 16px;
    }
    
    .comparison-section {
        padding: 40px 0;
    }
    
    .comparison-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .comparison-image {
        height: 200px;
    }
    
    .comparison-card {
        padding: 20px;
    }
    
    .comparison-card h3 {
        font-size: 18px;
    }
    
    .comparison-list li {
        font-size: 15px;
    }
    
    .frames-section {
        padding: 40px 0;
    }
    
    .frames-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .frame-image {
        height: 200px;
    }
    
    .frame-item h3 {
        font-size: 16px;
    }
    
    .frame-item > p {
        font-size: 14px;
    }
    
    .frame-price {
        font-size: 15px;
    }
    
    .order-form-section {
        padding: 50px 0;
    }
    
    .order-form-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .order-title {
        font-size: 28px;
        text-align: center;
    }
    
    .order-form-container {
        padding: 30px 20px;
    }
    
    .form-title {
        font-size: 20px;
    }
    
    .feature-content h3 {
        font-size: 16px;
    }
    
    .feature-content p {
        font-size: 13px;
    }
}

/* Секция формы заказа */
.order-form-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(37, 116, 169, 0.05) 0%, rgba(255, 255, 255, 0.1) 100%);
    position: relative;
}

.order-form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Левая часть: Информация */
.order-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.order-title {
    font-size: 36px;
    font-weight: 300;
    color: #2574A9;
    line-height: 1.4;
    margin: 0;
}

.order-title strong {
    font-weight: 500;
    color: #333;
}

.order-features {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.order-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.feature-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.feature-content p {
    font-size: 14px;
    color: #6a6a6a;
    margin: 0;
    line-height: 1.5;
}

/* Правая часть: Форма */
.order-form-container {
    background-color: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-title {
    font-size: 24px;
    font-weight: 500;
    color: #333;
    text-align: center;
    margin: 0 0 30px 0;
    line-height: 1.4;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-group .required {
    color: #c82824;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 15px;
    color: #2574A9;
    font-size: 18px;
    z-index: 1;
}

.input-wrapper input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    color: #333;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #2574A9;
    box-shadow: 0 0 0 3px rgba(37, 116, 169, 0.1);
}

.input-wrapper input::placeholder {
    color: #999;
}

/* Стили для ошибок валидации в форме на странице */
.order-form .t-input-error {
    color: #c82824;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.order-form .js-error-control-box .input-wrapper input {
    border-color: #c82824;
}

.order-form .js-error-control-box .t-input-error {
    display: block;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background-color: #c82824;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #b0201d;
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #333;
}

.modal-title {
    font-size: 24px;
    font-weight: 500;
    color: #333;
    text-align: center;
    margin: 0 0 30px 0;
    line-height: 1.4;
}

.modal .form-group {
    margin-bottom: 25px;
}

.modal .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.modal .input-wrapper i {
    position: absolute;
    left: 15px;
    color: #2574A9;
    font-size: 18px;
    z-index: 1;
}

.modal .input-wrapper input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    color: #333;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.modal .input-wrapper input:focus {
    outline: none;
    border-color: #2574A9;
    box-shadow: 0 0 0 3px rgba(37, 116, 169, 0.1);
}

.modal .input-wrapper input::placeholder {
    color: #999;
}

.modal .t-input-error {
    color: #c82824;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.modal .js-error-control-box .input-wrapper input {
    border-color: #c82824;
}

.modal .js-error-control-box .t-input-error {
    display: block;
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .company-name h1 {
        font-size: 20px;
    }
    
    .header-item {
        font-size: 14px;
    }
    
    .phone a {
        font-size: 16px;
    }
}

/* Секция с картой и контактами */
.map-section {
    padding: 0;
    background-color: #f5f5f5;
}

.map-container {
    display: grid;
    grid-template-columns: 400px 1fr;
    min-height: 600px;
    position: relative;
}

/* Карточка с контактами */
.map-contacts-card {
    background-color: #fff;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
    overflow-y: auto;
}

.contacts-title {
    font-size: 28px;
    font-weight: 500;
    color: #333;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.contacts-label {
    font-size: 28px;
    font-weight: 500;
}

.contacts-company {
    font-size: 24px;
    font-weight: 500;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-item i {
    color: #2574A9;
    font-size: 20px;
    margin-top: 3px;
    flex-shrink: 0;
}

.contact-text {
    flex: 1;
}

.contact-text p {
    font-size: 15px;
    color: #333;
    margin: 0;
    line-height: 1.6;
}

.contact-text a {
    color: #2574A9;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-text a:hover {
    color: #1a5a8a;
    text-decoration: underline;
}

.phone-number {
    font-size: 20px;
    font-weight: 500;
    display: inline-block;
    margin-top: 5px;
}

.map-buttons {
    margin-top: 10px;
}

.map-btn {
    display: block;
    padding: 12px 20px;
    background-color: #2574A9;
    color: #fff;
    text-decoration: none;
    text-align: center;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.map-btn:hover {
    background-color: #1a5a8a;
}

/* Обертка для карты */
.map-wrapper {
    width: 100%;
    height: 100%;
    min-height: 600px;
    position: relative;
}

#yandex-map {
    width: 100%;
    height: 100%;
    min-height: 600px;
}

/* Адаптивность для планшетов */
@media (max-width: 991px) {
    .map-container {
        grid-template-columns: 350px 1fr;
    }
    
    .map-contacts-card {
        padding: 30px 20px;
    }
    
    .contacts-title {
        font-size: 22px;
    }
}

/* Адаптивность для мобильных */
@media (max-width: 767px) {
    .map-container {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .map-contacts-card {
        padding: 25px 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        order: 2;
    }
    
    .map-wrapper {
        order: 1;
        min-height: 400px;
    }
    
    #yandex-map {
        min-height: 400px;
    }
    
    .contacts-title {
        font-size: 20px;
    }
    
    .contact-item {
        gap: 12px;
    }
    
    .contact-item i {
        font-size: 18px;
    }
    
    .contact-text p {
        font-size: 14px;
    }
    
    .map-buttons {
        flex-direction: row;
        gap: 10px;
    }
    
    .map-btn {
        flex: 1;
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 30px 20px;
        width: 95%;
    }
    
    .modal-title {
        font-size: 20px;
        margin-bottom: 25px;
    }
    
    .modal-close {
        right: 15px;
        top: 15px;
        font-size: 24px;
    }
}

/* Футер */
.footer {
    background-color: #fff;
    color: #2574A9;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
}

.footer-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 200px;
}

.footer-item i {
    font-size: 20px;
    color: #2574A9;
    flex-shrink: 0;
}

/* Название компании в футере */
.footer .company-name {
    flex-direction: column;
    align-items: flex-start;
    min-width: 250px;
    flex-shrink: 0;
}

.footer .company-name h2 {
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
    color: #2574A9;
}

.footer .company-name .subtitle {
    font-size: 14px;
    font-weight: 300;
    margin: 0;
    color: #2574A9;
    opacity: 0.8;
}

/* Адрес в футере */
.footer .address {
    font-size: 16px;
    color: #2574A9;
}

/* Время работы в футере */
.footer .working-hours {
    align-items: center;
}

.footer .hours-text {
    font-size: 16px;
    line-height: 1.4;
    color: #2574A9;
}

/* Email в футере */
.footer .email a {
    color: #2574A9;
    text-decoration: none;
    font-size: 16px;
    transition: opacity 0.3s;
}

.footer .email a:hover {
    opacity: 0.7;
}

/* Телефон в футере */
.footer .phone a {
    color: #2574A9;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: opacity 0.3s;
}

.footer .phone a:hover {
    opacity: 0.7;
}

/* Адаптивность футера для планшетов */
@media (max-width: 991px) {
    .footer-content {
        gap: 15px;
    }
    
    .footer-item {
        min-width: 180px;
    }
    
    .footer .company-name h2 {
        font-size: 24px;
    }
}

/* Адаптивность футера для мобильных */
@media (max-width: 767px) {
    .footer {
        padding: 25px 0;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .footer-column {
        width: 100%;
        min-width: auto;
    }
    
    .footer-item {
        width: 100%;
        min-width: auto;
        padding: 8px 0;
    }
    
    .footer .company-name {
        width: 100%;
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 15px;
    }
    
    .footer .company-name h2 {
        font-size: 22px;
    }
    
    .footer .address,
    .footer .working-hours,
    .footer .email,
    .footer .phone {
        font-size: 15px;
    }
    
    .footer .email a {
        font-size: 14px;
    }
    
    .footer .phone a {
        font-size: 16px;
    }
}

