/* Base Styles and Variables */
:root {
    --primary-color: #8B0000;
    --secondary-color: #F5F5DC;
    --accent-color: #D4AF37;
    --text-color: #333;
    --border-color: #8B0000;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --font-main: 'Arial', sans-serif;
    --font-heading: 'Georgia', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--secondary-color);
    background-image: repeating-conic-gradient(
        rgba(139, 0, 0, 0.03) 0deg 10deg,
        rgba(139, 0, 0, 0.02) 10deg 20deg,
        rgba(139, 0, 0, 0.01) 20deg 30deg
    );
    line-height: 1.6;
    position: relative;
    padding-bottom: 20px;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid var(--border-color);
    background-color: rgba(245, 245, 220, 0.9);
    box-shadow: 0 0 15px var(--shadow-color);
    position: relative;
    margin-top: 100px;
}

main::before {
    content: '';
    position: absolute;
    top: 30px;
    right: 40px;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.1;
    border-radius: 50%;
    animation: stampEffect 1.5s ease-out;
}

@keyframes stampEffect {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-15deg);
    }
    50% {
        opacity: 0.2;
    }
    100% {
        opacity: 0.1;
        transform: scale(1) rotate(0deg);
    }
}

section {
    margin-bottom: 60px;
    padding: 30px;
    border-bottom: 1px dashed rgba(139, 0, 0, 0.3);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

button, .cta-button {
    cursor: pointer;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
    display: inline-block;
}

button:hover, .cta-button:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(51, 51, 51, 0.9);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    display: none;
}

.cookie-banner p {
    margin: 0;
    padding-right: 20px;
}

.cookie-banner button {
    white-space: nowrap;
    background-color: var(--accent-color);
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 60px;
    width: auto;
}

nav ul {
    display: flex;
    gap: 20px;
}

nav li {
    position: relative;
}

nav a {
    padding: 5px 10px;
    font-weight: bold;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 0;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: typing 3.5s steps(40, end);
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    border-right: 3px solid var(--primary-color);
    animation-fill-mode: forwards;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

.hero-content h1 span {
    color: var(--accent-color);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transform: rotate(2deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Route Map Section */
.route-map-section {
    position: relative;
}

.map-container {
    height: 500px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.map {
    width: 100%;
    height: 100%;
    background-color: #f9f5eb;
    position: relative;
}

.map-stop {
    position: absolute;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #333;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.map-stop:hover {
    transform: scale(1.5);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.7);
    z-index: 2;
}

.map-stop-info {
    position: absolute;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 10px;
    width: 200px;
    display: none;
    z-index: 3;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-legend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 10px;
}

.bus-stop {
    background-color: #333;
}

.recharge-point {
    background-color: var(--accent-color);
}

.kiosk {
    background-color: var(--primary-color);
}

/* Ticket Machine Section */
.ticket-machine-container {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.ticket-machine {
    width: 100%;
    max-width: 600px;
    background-color: #e6e6cd;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.machine-screen {
    background-color: white;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
}

.recharge-form {
    display: grid;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.payment-method {
    margin-top: 10px;
}

.payment-options {
    display: flex;
    gap: 15px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

/* Стили для чекбокса согласия с условиями */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    cursor: pointer;
    font-size: 0.9rem;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 18px;
    width: 18px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    position: relative;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #f5f5f5;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.machine-slot {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-slot,
.bill-slot {
    height: 60px;
    background-color: #333;
    border-radius: 5px;
    flex: 1;
    margin: 0 10px;
    position: relative;
    overflow: hidden;
}

.card-animation,
.bill-animation {
    width: 80%;
    height: 40px;
    background-color: var(--accent-color);
    position: absolute;
    top: 10px;
    left: 10%;
    transform: translateY(-100%);
    transition: transform 1s ease;
}

.submit-btn {
    padding: 12px;
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Стили для сообщения об успешной отправке запроса */
.success-message {
    text-align: center;
    padding: 20px 10px;
}

.success-icon {
    width: 60px;
    height: 60px;
    background-color: #4CAF50;
    border-radius: 50%;
    color: white;
    font-size: 36px;
    line-height: 60px;
    margin: 0 auto 20px;
}

.success-message h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.success-message p {
    margin-bottom: 10px;
}

.success-message strong {
    color: var(--primary-color);
}

.success-message .submit-btn {
    margin-top: 20px;
}

/* Transport Showcase Section */
.showcase-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.card-3d-container {
    perspective: 1000px;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.card-3d {
    width: 450px;
    height: 350px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1s;
}

.card-3d:hover {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-front {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.card-front img {
    width: 100%;
    height: 70%;
    object-fit: cover;
}

.card-info {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    height: 30%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-info h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.card-info p {
    font-size: 1.1rem;
    line-height: 1.4;
}

.card-back {
    background-color: var(--primary-color);
    color: white;
    transform: rotateY(180deg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    overflow: visible;
}

.balance-display {
    text-align: center;
    padding: 15px 0;
}

.balance {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--accent-color);
    margin: 8px 0;
}

.card-details {
    text-align: left;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 10px;
    margin-top: 10px;
}

.card-details p {
    margin: 5px 0;
    font-size: 0.95rem;
}

.transport-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.transport-option {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s;
    min-height: 350px;
    display: flex;
    flex-direction: column;
}

.transport-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.transport-option img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.transport-option h3 {
    padding: 15px 15px 5px;
    font-size: 1.3rem;
}

.transport-option p {
    padding: 5px 15px 15px;
    flex-grow: 1;
    font-size: 1rem;
    line-height: 1.5;
}

/* Recharge Schedule Section */
.schedule-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.timeline {
    position: relative;
    padding: 30px 0;
}

.timeline-bar {
    height: 10px;
    background-color: #e0e0c9;
    border-radius: 5px;
    position: relative;
}

.timeline-progress {
    position: absolute;
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 5px;
    width: 0;
    transition: width 1s ease;
}

.current-time-marker {
    position: absolute;
    top: -10px;
    width: 20px;
    height: 30px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transform: translateX(-50%);
    left: 0;
}

.current-time-marker::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--primary-color);
}

.timeline-hours {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: #666;
    font-size: 0.9rem;
}

.timeline-peaks {
    position: relative;
    height: 100px;
    margin-top: 20px;
}

.peak {
    position: absolute;
    width: 100px;
    bottom: 0;
}

.peak-bar {
    width: 100%;
    background-color: rgba(139, 0, 0, 0.2);
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    position: relative;
}

.peak-label {
    position: absolute;
    top: -25px;
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

.morning-peak {
    left: 15%;
}

.morning-peak .peak-bar {
    height: 80px;
}

.lunch-peak {
    left: 45%;
}

.lunch-peak .peak-bar {
    height: 50px;
}

.evening-peak {
    left: 70%;
}

.evening-peak .peak-bar {
    height: 90px;
}

.best-times {
    background-color: #f9f5eb;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 20px;
}

.best-times ul {
    list-style: none;
    padding: 0;
}

.best-times li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed #ddd;
    padding: 10px 0;
}

.best-times li:last-child {
    border-bottom: none;
}

.time {
    font-weight: bold;
}

.waiting-time {
    color: #666;
}

/* Benefits Section */
.benefits-section {
    overflow: hidden;
}

.benefits-carousel {
    margin: 30px 0;
    overflow: visible;
    position: relative;
}

.carousel-track {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.benefit-card {
    min-width: 250px;
    padding: 20px;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.benefit-card:hover {
    transform: translateY(-10px);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background-color: var(--accent-color);
    border-radius: 50%;
    position: relative;
}

.benefit-icon::before,
.benefit-icon::after {
    content: '';
    position: absolute;
}

.early-bird::before {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: white;
    top: 15px;
    left: 15px;
}

.weekend-pass::before {
    width: 40px;
    height: 20px;
    background-color: white;
    top: 20px;
    left: 10px;
    border-radius: 10px;
}

.student-discount::before {
    width: 20px;
    height: 30px;
    background-color: white;
    top: 15px;
    left: 20px;
    border-radius: 5px;
}

.family-plan::before {
    width: 30px;
    height: 20px;
    background-color: white;
    top: 20px;
    left: 15px;
    border-radius: 5px 5px 0 0;
}

.tourist-pass::before {
    width: 30px;
    height: 20px;
    background-color: white;
    top: 20px;
    left: 15px;
    border-radius: 0;
}

.loyalty-rewards::before {
    width: 30px;
    height: 30px;
    background-color: white;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    top: 15px;
    left: 15px;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    background-color: #f9f5eb;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
}

.question-toggle {
    width: 20px;
    height: 20px;
    position: relative;
}

.question-toggle::before,
.question-toggle::after {
    content: '';
    position: absolute;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.question-toggle::before {
    width: 100%;
    height: 2px;
    top: 9px;
}

.question-toggle::after {
    width: 2px;
    height: 100%;
    left: 9px;
}

.faq-item.active .question-toggle::after {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

/* Footer Styles */
footer {
    background-color: var(--secondary-color);
    border-top: 1px solid var(--border-color);
    padding: 40px 20px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
}

.footer-logo img {
    height: 60px;
    width: auto;
    margin-bottom: 15px;
}

.footer-links {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-column {
    flex: 1;
    min-width: 180px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

address {
    font-style: normal;
    line-height: 1.8;
}

.copyright {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(139, 0, 0, 0.2);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
    }
    
    .hero-content, .hero-image {
        width: 100%;
    }
    
    .map-container {
        height: 400px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 10px 15px;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--secondary-color);
        flex-direction: column;
        padding: 20px;
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    nav ul.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    section {
        padding: 20px 15px;
    }
    
    .card-3d-container {
        height: 280px;
    }
    
    .card-3d {
        width: 320px;
        height: 250px;
    }
    
    .card-info {
        padding: 15px;
    }
    
    .card-info h3 {
        font-size: 1.3rem;
        margin-bottom: 5px;
    }
    
    .card-info p {
        font-size: 0.95rem;
        line-height: 1.3;
    }
    
    .card-back {
        padding: 15px;
    }
    
    .balance {
        font-size: 1.8rem;
        margin: 5px 0;
    }
    
    .card-details p {
        font-size: 0.9rem;
        margin: 3px 0;
    }
    
    .transport-options {
        grid-template-columns: 1fr;
    }
    
    .timeline-peaks {
        display: none;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-links {
        gap: 20px;
    }
    
    .carousel-track {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .card-3d-container {
        height: 260px;
    }
    
    .card-3d {
        width: 280px;
        height: 230px;
    }
    
    .card-front img {
        height: 65%;
    }
    
    .card-info {
        height: 35%;
        padding: 12px;
    }
    
    .card-info h3 {
        font-size: 1.2rem;
        margin-bottom: 4px;
    }
    
    .card-info p {
        font-size: 0.9rem;
        line-height: 1.2;
    }
    
    .card-back {
        padding: 12px;
    }
    
    .balance-display {
        padding: 10px 0;
    }
    
    .balance {
        font-size: 1.6rem;
    }
    
    .card-details {
        padding-top: 8px;
        margin-top: 8px;
    }
    
    .card-details p {
        font-size: 0.85rem;
        margin: 2px 0;
    }
    
    .benefit-card {
        min-width: 200px;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .carousel-track {
        grid-template-columns: 1fr;
    }
} 