/*
 * ═══════════════════════════════════════════════════════════════
 *  about.css  —  Страница «О компании»
 *  Импортирует общий дизайн-стандарт из shared.css и добавляет
 *  стили, специфичные только для этой страницы.
 *
 *  ДИЗАЙН-СТАНДАРТ ПРОЕКТА «ГАРАНТ ТЕХНОЛОГИЙ»
 *  ─────────────────────────────────────────────
 *  Шрифт:      Manrope (Google Fonts)
 *  Цвета:
 *    --gt-blue-dark   #1A3A6B   (тёмно-синий, заголовки)
 *    --gt-blue-mid    #385AAB   (основной синий, sidebar)
 *    --gt-blue-light  #7DB4FF   (светло-синий, акцент)
 *    --gt-blue-pale   #EAF1FB   (фон акцентных элементов)
 *    --gt-bg          #F0F4FF   (фон страницы)
 *    --gt-white       #FFFFFF
 *    --gt-text        #1C2B4A   (основной текст)
 *    --gt-muted       #6B7A8F   (вторичный текст)
 *    --gt-border      rgba(56,90,171,0.12)
 *  Радиусы:    14–22px
 *  Тени:       0 4px 20px rgba(0,0,0,0.08) (карточки)
 *              0 6px 25px rgba(0,0,0,0.08) (хедер)
 *  Анимации:   fadeInUp, fadeInLeft, slideInUp (см. ниже)
 * ═══════════════════════════════════════════════════════════════
 */

/* ── CSS Variables ────────────────────────────────────────────── */
:root {
    --gt-blue-dark:  #1A3A6B;
    --gt-blue-mid:   #385AAB;
    --gt-blue-light: #7DB4FF;
    --gt-blue-pale:  #EAF1FB;
    --gt-bg:         #F0F4FF;
    --gt-white:      #FFFFFF;
    --gt-text:       #1C2B4A;
    --gt-muted:      #6B7A8F;
    --gt-border:     rgba(56, 90, 171, 0.12);
    --gt-shadow-sm:  0 2px 12px rgba(26, 58, 107, 0.07);
    --gt-shadow-md:  0 4px 20px rgba(0, 0, 0, 0.08);
    --gt-shadow-lg:  0 12px 40px rgba(26, 58, 107, 0.14);
    --gt-radius-sm:  10px;
    --gt-radius-md:  16px;
    --gt-radius-lg:  22px;
    --sidebar-width: 340px;
}

/* ── Reset & Base ─────────────────────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', 'Inter', sans-serif;
    background: var(--gt-bg);
    color: var(--gt-text);
    line-height: 1.5;
}

/* ── Layout ───────────────────────────────────────────────────── */
.guest-container {
    display: flex;
    min-height: 100vh;
}

/* ── Sidebar ──────────────────────────────────────────────────── */
/*
 * СТАНДАРТ: Сайдбар одинаковый на всех страницах.
 * Градиент: linear-gradient(35deg, #385AAB 11%, #7DB4FF 100%)
 * Ширина:   340px (гостевые) / 340px (админ)
 */
.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    position: sticky;
    top: 0;
    flex-shrink: 0;
    background: linear-gradient(35deg, #385AAB 11%, #7DB4FF 100%);
    overflow: hidden;
}

/* Декоративный блик сверху */
.sidebar::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.sidebar-content {
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

/* Sidebar nav header — скрыт на ПК, виден только в мобильном drawer */
.sidebar-nav-header { display: none; }

/* Логотип в сайдбаре */
.logo {
    margin-bottom: 20px;
    margin-left: 50px;
}

.logo img { display: block; }

/* Nav links */
.sidebar-nav {
    display: flex;
    flex-direction: column;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.nav-link span {
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 400;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.25);
}

.has-submenu {
    position: relative;
}

.submenu {
    display: none;
    margin-top: 10px;
    margin-left: 20px;
    flex-direction: column;
    gap: 10px;
}

.submenu.active {
    display: flex;
}

.submenu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    width: 257px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(40, 70, 136, 0.3);
}

.submenu-item:hover {
    background: rgba(40, 70, 136, 0.9);
    backdrop-filter: blur(10px);
    transform: translateX(4px);
}

.submenu-item span {
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
}

.arrow-icon {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.arrow-icon.rotated {
    transform: rotate(180deg);
}

/* ── Main wrapper ─────────────────────────────────────────────── */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* ── Header ───────────────────────────────────────────────────── */
/*
 * СТАНДАРТ: Хедер одинаковый на всех гостевых страницах.
 * Высота 100px, белый, тень 0 6px 25px rgba(0,0,0,0.08)
 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.guest-header {
    height: 100px;
    background: var(--gt-white);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    border-bottom: 1px solid rgba(0, 84, 145, 0.05);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-left h1 {
    font-size: 25px;
    font-weight: 700;
    color: #005491;
    letter-spacing: -0.01em;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-right img {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 8px;
}

.header-right img:hover {
    opacity: 0.8;
    background: rgba(0, 84, 145, 0.08);
    transform: scale(1.05);
}

/* ── About content wrapper ────────────────────────────────────── */
.about-content-wrapper {
    padding: 40px 48px 48px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    animation: fadeInUp 0.55s ease both;
}

/* ── Company intro card ───────────────────────────────────────── */
.about-company-card {
    background: var(--gt-white);
    border-radius: var(--gt-radius-lg);
    padding: 36px 44px;
    border: 1px solid var(--gt-border);
    box-shadow: var(--gt-shadow-md);
    position: relative;
    overflow: hidden;
}

.about-company-card::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 240px; height: 180px;
    background: radial-gradient(circle at top right, rgba(125, 180, 255, 0.1), transparent 70%);
    pointer-events: none;
}

.about-company-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--gt-blue-dark);
    letter-spacing: -0.025em;
    margin-bottom: 14px;
}

.about-company-desc {
    font-size: 15px;
    font-weight: 400;
    color: var(--gt-muted);
    line-height: 1.75;
    max-width: 820px;
}

.about-company-desc strong {
    color: #005491;
    font-weight: 600;
}

/* ── Section heading ──────────────────────────────────────────── */
/*
 * СТАНДАРТ: Заголовки разделов используют левую вертикальную
 * полосу (4px, градиент синий). Применяется на всех страницах.
 */
.about-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--gt-blue-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.01em;
}

.about-section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 22px;
    border-radius: 2px;
    background: linear-gradient(180deg, #385AAB, #7DB4FF);
    flex-shrink: 0;
}

/* ── Services grid ────────────────────────────────────────────── */
.about-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.about-service-card {
    background: var(--gt-white);
    border: 1px solid var(--gt-border);
    border-radius: var(--gt-radius-md);
    padding: 18px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.28s ease, transform 0.28s ease, border-color 0.28s ease;
}

/* Shimmer sweep on hover */
.about-service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
        transparent 40%,
        rgba(125,180,255,0.1) 50%,
        transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
    pointer-events: none;
}
.about-service-card:hover::after { transform: translateX(100%); }

.about-service-card:hover {
    box-shadow: 0 8px 28px rgba(26, 58, 107, 0.14);
    transform: translateY(-3px);
    border-color: rgba(125, 180, 255, 0.45);
}

/* Карточка на всю ширину (п. 13) */
.about-service-card--wide {
    grid-column: 1 / -1;
}

.about-service-num {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, #385AAB, #7DB4FF);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.about-service-text {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--gt-text);
    line-height: 1.5;
    padding-top: 6px;
}

/* ── Price banner ─────────────────────────────────────────────── */
.about-price-banner {
    background: linear-gradient(90deg, #385AAB 0%, #5b85cc 60%, #7DB4FF 100%);
    border-radius: var(--gt-radius-md);
    padding: 16px 28px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 14px;
}

.about-price-banner::before {
    content: '◆';
    font-size: 10px;
    opacity: 0.7;
    flex-shrink: 0;
}

/* ── Advantages grid ──────────────────────────────────────────── */
.about-advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.about-advantage-card {
    background: var(--gt-white);
    border: 1px solid var(--gt-border);
    border-radius: var(--gt-radius-lg);
    padding: 28px 18px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    animation: fadeInUp 0.5s ease both;
}

.about-advantage-card:nth-child(1) { animation-delay: 0.1s; }
.about-advantage-card:nth-child(2) { animation-delay: 0.18s; }
.about-advantage-card:nth-child(3) { animation-delay: 0.26s; }
.about-advantage-card:nth-child(4) { animation-delay: 0.34s; }

.about-advantage-card:hover {
    box-shadow: 0 12px 36px rgba(26, 58, 107, 0.14);
    transform: translateY(-5px);
}

.about-advantage-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--gt-blue-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-advantage-label {
    font-size: 12.5px;
    font-weight: 600;
    color: #385AAB;
    line-height: 1.4;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
   СТАНДАРТ: Футер одинаковый на всех гостевых страницах.
   Белый, border-top, padding 30px 65px.
   Анимация на contact-item: hover translateX(4px)  ← СОХРАНЕНА
   ══════════════════════════════════════════════════════════════ */
.footer-about {
    background-color: var(--gt-white);
    border-top: 1px solid #E5E9F0;
    padding: 30px 65px 30px;
    margin-top: auto;
    animation: slideInUp 0.6s ease-out 0.3s both;
}

.footer-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: #005491;
    margin-bottom: 35px;
    letter-spacing: -0.02em;
}

.footer-contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px 50px;
    max-width: 900px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    /* АНИМАЦИЯ ФУТЕРА: сдвиг вправо при наведении */
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(4px);
}

.contact-label {
    font-size: 15px;
    color: var(--gt-muted);
    font-weight: 500;
}

.contact-value {
    font-size: 17.5px;
    color: var(--gt-text);
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
}

a.contact-value {
    color: #005491;
    transition: color 0.3s ease;
}

a.contact-value:hover {
    color: #0077cc;
    text-decoration: underline;
}

.address .contact-value {
    font-weight: 400;
    color: #2C3E5A;
}

/* ══════════════════════════════════════════════════════════════
   MODAL: Связаться с нами
   СТАНДАРТ: Модалка одинаковая на всех гостевых страницах.
   ══════════════════════════════════════════════════════════════ */
.contact-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 25, 50, 0.5);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.contact-modal-overlay.active {
    display: flex;
}

.contact-modal-container {
    background: var(--gt-white);
    border-radius: var(--gt-radius-lg);
    width: 520px;
    max-width: 95vw;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(26, 58, 107, 0.18);
    animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.92) translateY(20px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.contact-modal-header {
    padding: 28px 32px 22px;
    border-bottom: 1px solid rgba(56, 90, 171, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.contact-modal-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--gt-blue-dark);
    letter-spacing: -0.02em;
}

.contact-modal-close {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--gt-border);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.contact-modal-close:hover {
    background: var(--gt-blue-pale);
}

.contact-form {
    padding: 24px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    max-height: calc(90vh - 90px);
}

.form-group {
    width: 100%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid rgba(56, 90, 171, 0.18);
    border-radius: var(--gt-radius-sm);
    font-family: 'Manrope', 'Inter', sans-serif;
    font-size: 15px;
    color: var(--gt-text);
    background: var(--gt-bg);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #385AAB;
    box-shadow: 0 0 0 3px rgba(56, 90, 171, 0.1);
    background: var(--gt-white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #BBC2C7;
}

.form-group textarea {
    min-height: 120px;
    max-height: 180px;
    resize: vertical;
}

.contact-submit-btn {
    align-self: flex-end;
    padding: 12px 32px;
    background: linear-gradient(135deg, #385AAB, #7DB4FF);
    border: none;
    border-radius: var(--gt-radius-sm);
    font-family: 'Manrope', 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
    margin-top: 4px;
}

.contact-submit-btn:hover {
    opacity: 0.92;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(56, 90, 171, 0.3);
}

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

/* Scrollbar */
.contact-form::-webkit-scrollbar { width: 5px; }
.contact-form::-webkit-scrollbar-thumb { background: #c0cfe8; border-radius: 4px; }
.contact-form::-webkit-scrollbar-track { background: transparent; }

/* ══════════════════════════════════════════════════════════════
   ANIMATIONS
   СТАНДАРТ: Используются на всех страницах проекта.
   ══════════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}

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

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

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1200px) {
    .about-advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .about-services-grid {
        grid-template-columns: 1fr;
    }

    .about-service-card--wide {
        grid-column: 1;
    }

    .about-advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-modal-container {
        width: 90%;
    }
}

/* Mobile layout is handled by mobile.css (hamburger drawer system) */

/* ══════════════════════════════════════════════════════════════
   CERTIFICATION PAGE SPECIFIC STYLES
   ══════════════════════════════════════════════════════════════ */

/* Ссылка в карточке компании */
.about-company-link {
    color: #005491;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: opacity 0.3s ease;
}

.about-company-link:hover {
    opacity: 0.7;
}

/* Описание сертификации */
.cert-description-box {
    background: var(--gt-white);
    border: 1px solid var(--gt-border);
    border-radius: var(--gt-radius-md);
    padding: 20px 24px;
    animation: fadeInUp 0.5s ease both;
}

.cert-description-box p {
    font-size: 15px;
    color: var(--gt-text);
    line-height: 1.75;
}

.cert-description-box strong {
    color: #005491;
    font-weight: 600;
}

/* Таблица сравнения */
.cert-table-wrapper {
    overflow-x: auto;
    animation: fadeInUp 0.5s ease both 0.1s;
}

.cert-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--gt-white);
    border-radius: var(--gt-radius-md);
    overflow: hidden;
    border: 1px solid var(--gt-border);
    box-shadow: var(--gt-shadow-sm);
}

.cert-table tbody tr {
    transition: background 0.25s ease;
}

.cert-table tbody tr:nth-child(odd) {
    background: var(--gt-blue-pale);
}

.cert-table tbody tr:hover {
    background: rgba(125, 180, 255, 0.15);
}

.cert-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gt-border);
    text-align: left;
    font-size: 14px;
    color: var(--gt-text);
    line-height: 1.6;
}

.cert-table td:first-child {
    width: 200px;
    font-weight: 600;
    color: #005491;
    background-color: inherit;
}

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

/* Animations delay for cert elements */
.about-section:nth-of-type(2) { animation-delay: 0.05s; }
.about-section:nth-of-type(3) { animation-delay: 0.1s; }
.about-section:nth-of-type(4) { animation-delay: 0.15s; }
