@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --color-blue: var(--cp-primary, #2b7de9);
    --color-green: var(--cp-accent, #00c47d);
    --color-dark: var(--cp-text, #0f1c2e);
    --color-light: var(--cp-surface-soft, #ecf0f1);
    --color-white: #ffffff;
    --color-gray: var(--cp-muted, #6b7a8d);
    --bg-light: var(--cp-bg, #f7faff);
    --bg-light-blue: var(--cp-surface-soft, #eef4fd);
    --bg-blue-soft: #e4eefa;
    --shadow: var(--cp-shadow-soft, 0 4px 16px rgba(15, 28, 46, 0.08), 0 1px 4px rgba(15, 28, 46, 0.05));
    --shadow-hover: var(--cp-shadow-card, 0 12px 32px rgba(43, 125, 233, 0.18), 0 4px 12px rgba(15, 28, 46, 0.1));
    --shadow-lg: 0 24px 48px rgba(15, 28, 46, 0.15);
    --border-radius: var(--cp-radius, 10px);
    --border-radius-lg: var(--cp-radius-lg, 18px);
    --max-width: 1200px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --gradient-blue: linear-gradient(135deg, var(--cp-primary, #2563eb) 0%, var(--cp-primary-2, #1d4ed8) 100%);
    --gradient-green: linear-gradient(135deg, var(--cp-accent, #00c47d) 0%, #0d9488 100%);
    --gradient-dark: linear-gradient(135deg, var(--cp-text, #0f1c2e) 0%, #1e2d40 100%);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--color-dark);
    background: #f7faff;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
}

/* Контактная информация (как в about) */
.contact-info {
    padding: 2rem 0;
}

.contact-info__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.contact-info__item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.contact-info__item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.contact-info__icon {
    font-size: 2rem;
    color: var(--color-blue);
}

.contact-info__content h3 {
    font-size: 1rem;
    color: var(--color-gray);
    margin-bottom: 0.3rem;
}

.contact-info__content p {
    font-weight: 600;
    font-size: 0.95rem;
}

.contact-info__link {
    color: var(--color-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.contact-info__link:hover {
    text-decoration: underline;
}

/* Герой-секция с брендом (как в about) */
.hero-brand {
    padding: 2rem 0;
}

.hero-brand__content {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.95), rgba(46, 204, 113, 0.95));
    border-radius: var(--border-radius);
    padding: 3rem;
    color: var(--color-white);
    text-align: center;
    box-shadow: var(--shadow-hover);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-brand__subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    display: block;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.hero-brand__title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.hero-brand__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--color-white);
    color: var(--color-blue);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-brand__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: var(--color-blue);
    color: var(--color-white);
}

/* Хлебные крошки */
/* Заголовок страницы */
.page-header {
    padding: 1rem 0 2rem;
}

.page-header__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-dark);
    position: relative;
    padding-bottom: 1rem;
}

.page-header__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--color-blue);
    border-radius: 2px;
}

/* Основной контент */
.delivery-main {
    padding: 2rem 0;
}

.delivery-main__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.delivery-block, .payment-block {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-hover);
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.delivery-block__title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--color-blue);
    position: relative;
    padding-bottom: 0.5rem;
}

.delivery-block__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--color-blue);
    border-radius: 2px;
}

.delivery-block__section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(52, 152, 219, 0.2);
}

.delivery-block__section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.delivery-block__subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--color-dark);
}

.delivery-block__item {
    margin-bottom: 1.5rem;
}

.delivery-block__item-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--color-blue);
}

.delivery-block__list {
    list-style: none;
}

.delivery-block__list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.delivery-block__list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--color-green);
    font-size: 0.9rem;
}

.delivery-block__text {
    margin-bottom: 0.8rem;
}

.delivery-block__note {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(52, 152, 219, 0.1);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--color-blue);
}

.delivery-block__note p {
    margin-bottom: 0.3rem;
    font-weight: 500;
}

/* Таблица доставки */
.delivery-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.delivery-table th {
    background: var(--color-blue);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.delivery-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(52, 152, 219, 0.2);
    background: rgba(255, 255, 255, 0.8);
}

.delivery-table tr:last-child td {
    border-bottom: none;
}

.delivery-table tr:hover td {
    background: rgba(52, 152, 219, 0.1);
}

/* Блок оплаты */
.payment-block__content {
    padding: 1rem 0;
}

.payment-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(52, 152, 219, 0.05);
    border-radius: var(--border-radius-lg);
    margin-bottom: 2rem;
    border: 1px solid rgba(52, 152, 219, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.payment-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.payment-card__icon {
    font-size: 3rem;
    color: var(--color-blue);
}

.payment-card__title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--color-dark);
}

.payment-card__text {
    margin-bottom: 0.5rem;
    color: #34495e;
}

.payment-note {
    text-align: right;
}

.payment-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-blue);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.payment-back:hover {
    background: rgba(52, 152, 219, 0.1);
    gap: 0.8rem;
}

/* Навигационные табы (как в about) */
.nav-tabs {
    padding: 3rem 0;
}

.nav-tabs__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.nav-tabs__col {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(52, 152, 219, 0.2);
    transition: all 0.3s ease;
}

.nav-tabs__col:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.nav-tabs__title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: var(--color-blue);
    position: relative;
    padding-bottom: 0.5rem;
}

.nav-tabs__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--color-blue);
}

.nav-tabs__list {
    list-style: none;
}

.nav-tabs__list li {
    margin-bottom: 0.5rem;
}

.nav-tabs__list a {
    color: var(--color-dark);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: block;
    padding: 0.3rem 0;
}

.nav-tabs__list a:hover {
    color: var(--color-blue);
    padding-left: 0.5rem;
}

/* Контактный блок (как в about) */
.cta {
    padding: 2rem 0 4rem;
}

.cta__content {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.95), rgba(46, 204, 113, 0.95));
    border-radius: var(--border-radius);
    padding: 2rem;
    color: var(--color-white);
    box-shadow: var(--shadow-hover);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.cta__brand-name {
    font-size: 2rem;
    font-weight: 700;
}

.cta__contacts {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta__contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

.cta__contact-item i {
    font-size: 1.2rem;
}

.cta__contact-item a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
}

.cta__contact-item a:hover {
    text-decoration: underline;
}

/* Анимации */
@keyframes gradientShiftSoft {
    0% { background-position: 0% 0%; }
    33% { background-position: 50% 50%; }
    66% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

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

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

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 1024px) {
    .delivery-main__grid {
        grid-template-columns: 1fr;
    }
    
    .nav-tabs__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-info__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-brand__title {
        font-size: 2rem;
    }
    
    .page-header__title {
        font-size: 2rem;
    }
    
    .delivery-table {
        font-size: 0.9rem;
    }
    
    .delivery-table th,
    .delivery-table td {
        padding: 0.8rem;
    }
    
    .cta__content {
        flex-direction: column;
        text-align: center;
    }
    
    .cta__contacts {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .contact-info__grid {
        grid-template-columns: 1fr;
    }
    
    .nav-tabs__grid {
        grid-template-columns: 1fr;
    }
    
    .hero-brand__content {
        padding: 2rem;
    }
    
    .hero-brand__title {
        font-size: 1.5rem;
    }
    
    .delivery-block,
    .payment-block {
        padding: 1.5rem;
    }
    
    .payment-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
    }
    
    .delivery-table {
        display: block;
        overflow-x: auto;
    }
}

@media print {
    .header, .footer, .breadcrumbs, .cta, .contact-info, .hero-brand {
        display: none;
    }
    
    .delivery-block,
    .payment-block {
        box-shadow: none;
        background: white;
    }
}

/* ========== ФОРМА ОБРАТНОЙ СВЯЗИ ========== */
.contact-form-section {
    padding: 4rem 0;
    background: var(--bg-light-blue);
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-hover);
    padding: 2.5rem;
    border: 1px solid rgba(52, 152, 219, 0.2);
    transition: transform 0.3s ease;
}

.form-container:hover {
    transform: translateY(-5px);
}

.form-container .section-title {
    display: block;
    text-align: center;
    margin-bottom: 1rem;
}

.form-container .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.form-description {
    text-align: center;
    color: var(--color-gray);
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.form-row {
    margin-bottom: 1.2rem;
}

.form-row:last-child {
    margin-bottom: 0;
}

.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.9);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

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

.checkbox-row {
    display: flex;
    align-items: center;
}

.contact-form .checkbox {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.9rem;
    color: var(--color-gray);
    cursor: pointer;
}

.contact-form .checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--color-blue);
}

.contact-form .checkbox a {
    color: var(--color-blue);
    text-decoration: none;
}

.contact-form .checkbox a:hover {
    text-decoration: underline;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    font-size: 0.95rem;
    text-decoration: none;
}

.btn--primary {
    background: var(--gradient-blue);
    color: white;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.btn--primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.btn--primary:hover::before {
    left: 100%;
}

.btn--primary:hover {
    background: var(--gradient-blue);
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.btn--large {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .form-container {
        padding: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    body,
    .fade-enter,
    .contact-info__item,
    .payment-card {
        animation: none;
        transition: none;
    }
}