/* ---- ОБЩИЕ СТИЛИ (hero уменьшен для внутренних страниц) ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; line-height: 1.6; color: #1f2937; background: #f5f8fc; }
a { text-decoration: none; }
:root {
    --primary-blue: #1a4a7a;
    --accent-blue: #4a90d9;
}
@keyframes wheelIn {
    from { transform: translateX(-100%) rotate(0deg); opacity: 0; }
    to { transform: translateX(0) rotate(360deg); opacity: 1; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
header {
    background: linear-gradient(135deg, #1a4a7a 0%, #4a90d9 100%);
    color: #fff;
    position: relative;
    padding: 20px 0;
    min-height: 100px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.white-strip-wrapper {
    position: absolute;
    left: 0;
    top: 15px;
    height: 110px;
    width: 145px;
    z-index: 30;
    display: flex;
    align-items: center;
    padding-left: 15px;
}
.white-strip-shadow {
    position: absolute;
    top: 10px;
    left: -15px;
    width: calc(100% + 25px);
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    clip-path: polygon(0 0, 100% 0, 81% 100%, 0 100%);
    z-index: 1;
    filter: blur(16px);
}
.white-strip-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
    z-index: 2;
}
.white-strip-wrapper .logo-wrapper {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
}
.white-strip-wrapper .logo-wrapper .logo {
    display: inline-block;
    animation: wheelIn 1.2s ease-out forwards;
}
.white-strip-wrapper .logo-wrapper .logo img {
    height: 80px;
    width: auto;
    display: block;
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 80px;
    padding-right: 40px;
    flex-wrap: wrap;
}
.company-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}
.company-name a { color: inherit; text-decoration: none; cursor: pointer; }
.company-name small {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: #b0cceb;
    margin-top: 2px;
}
.contacts-header {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    margin-left: auto;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}
.contact-row-top, .contact-row-bottom {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 15px;
}
.contacts-header a {
    color: #d4e2f7;
    font-size: 1rem;
    transition: 0.2s;
}
.contacts-header a:hover { color: var(--accent-blue); }
.contacts-header a i { margin-right: 6px; }
.social-icons-header {
    display: flex;
    align-items: center;
    gap: 12px;
}
.social-icons-header a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    line-height: 1;
}
.social-icons-header a:hover { transform: scale(1.1); }
.icon-max {
    display: inline-block;
    width: 28px;
    height: 28px;
    background: url('https://maxicons.ru/icons/Max_logo.svg') center / contain no-repeat;
}
.social-icons-header .fa-vk {
    color: #ffffff;
    font-size: 28px;
    transition: 0.2s;
    filter: drop-shadow(0 0 4px rgba(255,255,255,0.2));
}
.social-icons-header a:hover .fa-vk {
    filter: drop-shadow(0 0 12px rgba(255,255,255,0.9));
    transform: scale(1.1);
}
.datetime-display {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 400;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(2px);
    font-family: 'Inter', sans-serif;
}
nav {
    background: #ffffff;
    padding: 12px 0;
    border-bottom: 1px solid #dbe3ed;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    padding-left: 100px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 20px;
}
nav a {
    color: var(--primary-blue);
    font-weight: 600;
    transition: 0.2s;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    display: inline-block;
    line-height: 1.2;
}
nav a:hover {
    color: var(--accent-blue);
    border-bottom-color: var(--accent-blue);
}
nav .dropdown {
    position: relative;
    display: inline-block;
}
nav .dropdown::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 12px;
    background: transparent;
    pointer-events: auto;
}
nav .dropdown > a { padding: 4px 0; }
nav .dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% - 4px);
    left: 0;
    background: #ffffff;
    min-width: 220px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 8px 0;
    z-index: 1000;
}
nav .dropdown-content a {
    display: block;
    padding: 8px 20px;
    color: var(--primary-blue);
    font-weight: 400;
    border-bottom: none;
    margin-right: 0;
    white-space: nowrap;
}
nav .dropdown-content a:hover {
    background: #f0f6fc;
    color: var(--accent-blue);
    border-bottom: none;
}
nav .dropdown:hover .dropdown-content { display: block; }

/* HERO – БЕЗ КАРТИНКИ (УМЕНЬШЕННАЯ ЗОНА) */
.hero {
    position: relative;
    background: linear-gradient(135deg, #1a4a7a 0%, #4a90d9 100%);
    padding: 70px 0;
    text-align: center;
    color: #ffffff;
}
.hero .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.hero h1 {
    font-size: 2.4rem;
    margin-bottom: 12px;
    font-weight: 700;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}
.hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    font-weight: 500;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    text-transform: lowercase;
}

.about-preview {
    padding: 50px 0;
    background: #fff;
    text-align: center;
}
.about-preview .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.about-preview h2 {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 20px;
}
.about-preview p {
    max-width: 700px;
    margin: 0 auto;
    color: #3a5a7a;
    font-size: 1.1rem;
}

.map-section {
    padding: 50px 0;
    background: #fff;
}
.map-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.map-section h2 {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 25px;
    text-align: center;
}
.map-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 25%;
    max-height: 260px;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
.map-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
footer {
    background: var(--primary-blue);
    color: #b0cceb;
    padding: 30px 0;
    text-align: center;
    border-top: 3px solid var(--accent-blue);
}
footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
footer a { color: var(--accent-blue); transition: 0.2s; }
footer a:hover { color: #fff; }
.footer-links {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
}
.footer-links a:hover { transform: scale(1.05); }
.footer-links .icon-max {
    display: inline-block;
    width: 22px;
    height: 22px;
    background: url('https://maxicons.ru/icons/Max_logo.svg') center / contain no-repeat;
}
.footer-links .fa-vk {
    color: #ffffff;
    font-size: 22px;
    transition: 0.2s;
    filter: drop-shadow(0 0 4px rgba(255,255,255,0.2));
}
.footer-links a:hover .fa-vk {
    filter: drop-shadow(0 0 12px rgba(255,255,255,0.9));
    transform: scale(1.1);
}

@media (max-width: 768px) {
    header { min-height: 80px; padding: 15px 0; }
    .white-strip-wrapper { width: 120px; height: 90px; top: 12px; padding-left: 12px; }
    .white-strip-shadow { top: 8px; left: -12px; width: calc(100% + 20px); clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%); filter: blur(13px); background: rgba(0,0,0,0.7); }
    .white-strip-bg { clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%); }
    .white-strip-wrapper .logo-wrapper .logo img { height: 65px; }
    .header-content { padding-left: 60px; padding-right: 15px; flex-direction: column; gap: 10px; align-items: center; }
    .company-name { font-size: 1.2rem; text-align: center; }
    .contacts-header { flex-direction: row !important; flex-wrap: wrap; justify-content: center; width: 100%; margin-left: 0; gap: 5px; }
    .contact-row-top, .contact-row-bottom { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 5px 10px; }
    .contacts-header a { margin: 0; font-size: 0.85rem; }
    .social-icons-header { margin-left: 0; }
    .datetime-display { font-size: 0.75rem; padding: 2px 10px; }
    nav .container { padding-left: 20px; gap: 8px 12px; }
    nav .dropdown-content { min-width: 180px; left: -10px; top: calc(100% - 2px); }
    .hero { padding: 50px 0; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .map-section { padding: 35px 0; }
    .map-section h2 { font-size: 1.6rem; }
    .map-wrapper { padding-bottom: 35%; max-height: 200px; }
}
@media (max-width: 480px) {
    header { min-height: 70px; padding: 10px 0; }
    .white-strip-wrapper { width: 90px; height: 70px; top: 8px; padding-left: 8px; }
    .white-strip-shadow { top: 6px; left: -10px; width: calc(100% + 16px); clip-path: polygon(0 0, 100% 0, 83% 100%, 0 100%); filter: blur(10px); background: rgba(0,0,0,0.65); }
    .white-strip-bg { clip-path: polygon(0 0, 100% 0, 75% 100%, 0 100%); }
    .white-strip-wrapper .logo-wrapper .logo img { height: 50px; }
    .header-content { padding-left: 50px; padding-right: 10px; }
    .company-name { font-size: 1rem; }
    .contacts-header a { font-size: 0.8rem; }
    .datetime-display { font-size: 0.7rem; padding: 2px 8px; width: 100%; text-align: center; margin-top: 2px; border-radius: 5px; }
    nav .container { padding-left: 10px; gap: 6px 10px; }
    nav .dropdown-content { min-width: 160px; left: -5px; top: calc(100% - 2px); }
    .hero { padding: 40px 0; }
    .hero h1 { font-size: 1.6rem; }
    .hero p { font-size: 0.9rem; }
    .map-wrapper { max-height: 150px; padding-bottom: 40%; }
}