/* ========================================
   FONTS
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ========================================
   RESET & BASE STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    /* Rakod.ru inspired Flat Design - светлая и чистая палитра */
    --color-primary: #AA222E;
    --color-secondary: #8a1b25;
    --color-accent: #ff3333;
    --color-success: #00b359;
    --color-warning: #ff9900;
    --color-info: #6666ff;
    
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg: #f5f5f5;
    --color-bg-light: #ffffff;
    --color-border: #e0e0e0;
    
    /* Suisse Intl font family (используем Inter как близкую альтернативу) */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "SF Mono", "Monaco", "Courier New", monospace;
    
    /* Очень минимальные тени в стиле rakod.ru */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.1);
    
    /* Минимальные скругления */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    
    --transition: all 0.25s ease;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

main {
    flex: 1;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-secondary);
}

ul {
    list-style: none;
}

/* ========================================
   LAYOUT
   ======================================== */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.section__title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-align: center;
    color: var(--color-text);
    letter-spacing: 0;
}

/* ========================================
   HEADER
   ======================================== */

.header {
    background: var(--color-bg-light);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header__top {
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
    padding: 0;
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
}

/* ========================================
   TICKER (Бегущая строка)
   ======================================== */

.ticker {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 0.75rem 0;
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
}

.ticker__wrapper {
    display: flex;
    width: 100%;
}

.ticker__content {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    animation: ticker-scroll 40s linear infinite;
    white-space: nowrap;
    will-change: transform;
}

.ticker:hover .ticker__content {
    animation-play-state: paused;
}

.ticker__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ticker:hover .ticker__item {
    transform: scale(1.05);
}

.ticker__icon {
    width: 16px;
    height: 16px;
    stroke-width: 2;
    color: var(--color-text-light);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.ticker__icon--phone {
    color: var(--color-primary);
    stroke-width: 2.5;
}

.ticker__text {
    color: var(--color-text-light);
    font-weight: 500;
    transition: all 0.3s ease;
}

.ticker__text--phone {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
    text-shadow: 0 0 10px rgba(170, 34, 46, 0.1);
}

.ticker__item:hover .ticker__text--phone {
    color: var(--color-secondary);
    text-shadow: 0 0 15px rgba(170, 34, 46, 0.2);
}

.ticker__separator {
    color: var(--color-border);
    font-size: 0.75rem;
    opacity: 0.6;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .ticker__content {
        gap: 2rem;
        animation-duration: 20s;
    }
    
    .ticker__text {
        font-size: 0.8125rem;
    }
    
    .ticker__text--phone {
        font-size: 0.875rem;
    }
    
    .ticker__icon {
        width: 14px;
        height: 14px;
    }
}

.header__contact {
    display: flex;
    justify-content: center;
    gap: 3.5rem;
    font-size: 0.8125rem;
    color: var(--color-text-light);
    flex-wrap: wrap;
    font-weight: 400;
}

.header__contact span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header__main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo__image {
    height: 60px;
    width: auto;
    display: block;
    object-fit: contain;
    max-width: 200px;
}

/* Navigation */
.nav__list {
    display: flex;
    gap: 1.5rem;
}

.nav__link {
    padding: 0.625rem 1rem;
    color: var(--color-text);
    font-weight: 400;
    border-bottom: 2px solid transparent;
    font-size: 0.9375rem;
}

.nav__link:hover,
.nav__link--active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

/* Search */
.header__search {
    display: flex;
    align-items: center;
    gap: 0;
    min-width: 380px;
    position: relative;
    background: var(--color-bg-light);
    border: 2px solid var(--color-border);
    border-radius: 50px;
    padding: 0.5rem 0.75rem 0.5rem 1.25rem;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.header__search:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(170, 34, 46, 0.08), 0 2px 8px rgba(0, 0, 0, 0.08);
}

.search__wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search__label {
    position: absolute;
    left: 0;
    font-size: 0.9375rem;
    color: var(--color-text-light);
    pointer-events: none;
    white-space: nowrap;
    font-weight: 400;
}

.search__label-static {
    color: var(--color-text);
    font-weight: 500;
}

.search__label-animated {
    color: var(--color-primary);
    font-weight: 600;
}

.search__input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: none;
    background: transparent;
    font-size: 0.9375rem;
    color: var(--color-text);
    outline: none;
    min-width: 0;
}

.search__input::placeholder {
    color: transparent;
}

.search__input:focus + .search__label,
.search__input:not(:placeholder-shown) + .search__label {
    opacity: 0;
}

.search__button {
    padding: 0.5rem 1rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(170, 34, 46, 0.2);
}

.search__button:hover {
    background: #8a1b25;
    transform: scale(1.02);
    box-shadow: 0 3px 6px rgba(170, 34, 46, 0.3);
    color: #ffffff;
}

/* ========================================
   HERO BANNER
   ======================================== */

.hero-banner {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../back.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-banner__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(170, 34, 46, 0.85) 0%,
        rgba(138, 27, 37, 0.75) 50%,
        rgba(44, 44, 44, 0.65) 100%
    );
    z-index: 1;
}

.hero-banner__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 0 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-banner__title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -1px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-banner__subtitle {
    font-size: 1.375rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.btn--hero {
    background: white;
    color: var(--color-primary);
    padding: 1rem 3rem;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid transparent;
}

.btn--hero:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    border-color: white;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   OLD HERO (DEPRECATED - styles removed)
   ======================================== */

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.9375rem;
}

.btn--primary {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 2px 4px rgba(170, 34, 46, 0.2);
}

.btn--primary:hover {
    background: #8a1b25;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(170, 34, 46, 0.3);
    color: #ffffff;
}

.btn--secondary {
    background: var(--color-bg-light);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn--secondary:hover {
    background: var(--color-bg);
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn--block {
    display: block;
    width: 100%;
}

.btn--block + .btn--block {
    margin-top: 0.75rem;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: #2c2c2c;
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer__section h3,
.footer__section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer__section ul {
    list-style: none;
}

.footer__section ul li {
    margin-bottom: 0.5rem;
}

.footer__section a {
    color: rgba(255, 255, 255, 0.8);
}

.footer__section a:hover {
    color: white;
}

.footer__address {
    margin-top: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.footer__legal-info {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__legal-info p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer__legal-info strong {
    color: #fff;
}

.footer__bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   BREADCRUMBS
   ======================================== */

.breadcrumbs {
    padding: 1.25rem 0;
    background: var(--color-bg-light);
    font-size: 0.875rem;
    color: var(--color-text-light);
    font-weight: 500;
}

.breadcrumbs a {
    color: var(--color-primary);
}

/* ========================================
   LOADING STATE
   ======================================== */

.loading {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--color-text-light);
    font-size: 1.125rem;
}

.loading::after {
    content: '...';
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .hero-banner {
        min-height: 500px;
    }
    
    .hero-banner__title {
        font-size: 2.75rem;
    }
    
    .hero-banner__subtitle {
        font-size: 1.25rem;
    }
    
    .btn--hero {
        padding: 0.875rem 2.5rem;
        font-size: 1rem;
    }
    
    .header__main {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .logo {
        order: 1;
        width: 100%;
        justify-content: center;
        margin-bottom: 0.75rem;
    }
    
    .nav {
        order: 2;
        width: 100%;
    }
    
    .header__search {
        order: 3;
        width: 100%;
    }
    
    .nav__list {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .header__search {
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        min-height: 450px;
    }
    
    .hero-banner__content {
        padding: 0 1.5rem;
    }
    
    .hero-banner__title {
        font-size: 2.25rem;
        margin-bottom: 1.25rem;
    }
    
    .hero-banner__subtitle {
        font-size: 1.125rem;
        margin-bottom: 2rem;
    }
    
    .btn--hero {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .header__contact {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .logo__image {
        height: 45px;
        max-width: 150px;
    }
    
    .logo {
        justify-content: center;
        width: 100%;
        margin-bottom: 0.75rem;
    }
    
    .header__main {
        gap: 1rem;
        padding: 0.75rem 0;
        flex-direction: column;
        align-items: center;
    }
    
    .header__search {
        min-width: 100%;
        padding: 0.625rem 0.875rem 0.625rem 1rem;
        max-width: 100%;
        width: 100%;
    }
    
    .search__wrapper {
        max-width: 100%;
        width: 100%;
        min-width: 0;
    }
    
    .search__label {
        font-size: 0.875rem;
    }
    
    .search__input {
        font-size: 0.875rem;
        max-width: 100%;
        width: 100%;
    }
    
    .search__button {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
        flex-shrink: 0;
    }
    
    .section__title {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        min-height: 400px;
    }
    
    .hero-banner__content {
        padding: 0 1rem;
    }
    
    .hero-banner__title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
        letter-spacing: -0.5px;
    }
    
    .hero-banner__subtitle {
        font-size: 1rem;
        margin-bottom: 1.75rem;
    }
    
    .btn--hero {
        padding: 0.75rem 1.75rem;
        font-size: 0.9375rem;
        font-weight: 600;
    }
    
    .container {
        padding: 0 0.5rem;
    }
    
    .header__top {
        padding: 0.5rem 0;
    }
    
    .header__contact {
        gap: 0.375rem;
        font-size: 0.75rem;
    }
    
    .header__main {
        padding: 0.625rem 0;
        flex-direction: column;
        align-items: center;
    }
    
    .logo {
        justify-content: center;
        width: 100%;
        margin-bottom: 0.625rem;
    }
    
    .logo__image {
        height: 38px;
        max-width: 130px;
    }
    
    .nav__list {
        gap: 1rem;
    }
    
    .nav__link {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .header__search {
        padding: 0.5rem 0.75rem 0.5rem 0.875rem;
        border-radius: 40px;
    }
    
    .search__button {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .section__title {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .breadcrumbs {
        padding: 0.875rem 0;
        font-size: 0.8125rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer__content {
        gap: 1.5rem;
    }
}
