:root {
    --dark: #00203f;
    --primary-dark: #1e3a5f;
    --primary: #2a506e;
    --primary-light: #3a6a8a;
    --accent: #2d5f5c;
    --accent-light: #3a7b78;
    --muted: #4a4b69;
    --muted-light: #6a6b85;
    --bg: #f5f6f8;
    --bg-light: #f8f9fa;
    --text: #333;
    --text-light: #555;
    --border: #e0e0e0;
    --shadow: rgba(0,0,0,0.06);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--bg);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 100; }

.header__top { background: var(--dark); color: #fff; padding: 8px 0; font-size: 15px; border-radius: 0 0 12px 12px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; }

.header__info { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; flex: 1; }

.header__search { display: flex; gap: 4px; align-items: center; }

.header__search input { padding: 4px 10px; border: none; border-radius: 4px; font-size: 14px; background: rgba(255,255,255,0.15); color: #fff; width: 160px; outline: none; }

.header__search input::placeholder { color: rgba(255,255,255,0.6); }

.header__search input:focus { background: rgba(255,255,255,0.25); }

.header__search button { background: none; border: none; cursor: pointer; font-size: 16px; padding: 0 6px; color: #fff; line-height: 1; }

.header__main { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; gap: 20px; }

/* Logo */
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); flex-shrink: 0; }

.logo__icon {
    display: flex;
    align-items: center;
}

.logo__text strong { font-size: 24px; color: var(--primary-dark); display: block; }

.logo__text small { font-size: 14px; color: #666; }

/* Navigation */
.nav__list { display: flex; list-style: none; gap: 4px; }

.nav__link { display: block; padding: 10px 16px; text-decoration: none; color: var(--text); font-weight: 500; border-radius: 6px; transition: background 0.2s, color 0.2s; font-size: 16px; }

.nav__link:hover { background: #ecf0f1; color: var(--primary-dark); }

.nav__link--active { background: var(--primary); color: #fff; }

.nav__link--active:hover { background: var(--primary-dark); color: #fff; }

.dropdown--active { background: #ecf0f1; color: var(--primary-dark) !important; font-weight: 600; }

/* Dropdown */
.nav__item--dropdown { position: relative; }

.dropdown { display: none; position: absolute; top: 100%; left: 0; background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,0.12); border-radius: 8px; min-width: 300px; padding: 8px 0; z-index: 50; list-style: none; }

.nav__item--dropdown:hover .dropdown { display: block; }

.dropdown a { display: block; padding: 10px 20px; text-decoration: none; color: var(--text); font-size: 15px; transition: background 0.2s; }

.dropdown a:hover { background: #ecf0f1; color: var(--primary-dark); }

/* Nav toggle */
.nav-toggle { display: none; background: none; border: 2px solid var(--primary-dark); color: var(--primary-dark); font-size: 24px; padding: 6px 12px; border-radius: 6px; cursor: pointer; }

/* Main */
.main { min-height: 60vh; }

/* Page Hero */
.page-hero { background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%); color: #fff; text-align: center; }

.page-hero { height: 70px; display: flex; align-items: center; justify-content: center; }

.page-hero .container { padding: 0 20px; }

.page-hero h1 { font-size: 30px; margin-bottom: -10px; margin-top: -11px; font-weight: 300; }

.page-hero p { font-size: 19px; opacity: 0.9; }

/* Content */
.content { padding: 40px 0; }

.content h2 { font-size: 30px; color: var(--dark); margin: 30px 0 15px; }

.content h3 { font-size: 24px; color: var(--primary-dark); margin: 25px 0 12px; }

.content p { margin-bottom: 15px; font-size: 17px; }

.content ul { margin: 10px 0 20px 20px; }

.content li { margin-bottom: 6px; font-size: 16px; }

/* Cards Grid */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }

.card { background: #fff; border-radius: 12px; padding: 30px; box-shadow: 0 2px 15px var(--shadow); transition: transform 0.3s, box-shadow 0.3s; text-align: center; }

.card:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }

.card__icon { font-size: 48px; margin-bottom: 15px; }

.card h3 { font-size: 21px; color: var(--dark); margin-bottom: 10px; }

.card p { color: var(--text-light); font-size: 15px; line-height: 1.6; }

.card__link { display: inline-block; margin-top: 15px; padding: 10px 24px; background: var(--primary); color: #fff; text-decoration: none; border-radius: 6px; font-size: 15px; transition: background 0.2s; }

.card__link:hover { background: var(--primary-dark); }

/* Hero Section (home) */
.hero { background: url('../images/logo.png') center / cover no-repeat; color: #fff; padding: 120px 20px; text-align: center; position: relative; }

.hero::before { content: ''; position: absolute; inset: 0; background: rgba(0,32,63,0.6); }

.hero .container { position: relative; z-index: 1; }

.hero p { font-size: 36px; font-weight: 100; margin: 0; display: inline-block; border: 1px solid rgba(255,255,255,0.8); border-radius: 10px; padding: 10px 20px; text-shadow: 1px 1px 20px #000; }

.hero h1 { font-size: 44px; margin-bottom: 15px; }



.hero__contacts { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; font-size: 19px; }

/* Sections */
.section { padding: 20px 0; }

.section--gray { background: var(--bg-light); }

.section__title { text-align: center; font-size: 34px; color: var(--dark); margin-bottom: 30px; }

/* Gov section */
.gov { background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 60%, var(--primary) 100%); color: #fff; padding: 55px 0; text-align: center; }

.gov__title { font-size: 32px; font-weight: 600; margin-bottom: 12px; }

.gov__lead { max-width: 780px; margin: 0 auto 38px; font-size: 16px; line-height: 1.7; opacity: 0.85; }

.gov__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; max-width: 1000px; margin: 0 auto 38px; }

.gov__card { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14); border-radius: 14px; padding: 30px 22px; transition: transform .2s ease, background .2s ease; }

.gov__card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.12); }

.gov__card svg { width: 44px; height: 44px; fill: rgba(255,255,255,0.9); margin-bottom: 14px; }

.gov__card h3 { font-size: 18px; margin-bottom: 8px; }

.gov__card p { font-size: 14px; line-height: 1.6; opacity: 0.8; }

.gov__num { display: block; font-size: 44px; font-weight: 700; line-height: 1.1; margin-bottom: 6px; background: linear-gradient(90deg, #9cc9e8, #fff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.gov__note { font-size: 16px; opacity: 0.85; margin-bottom: 20px; }

.gov__cta { display: inline-block; padding: 13px 36px; background: #fff; color: var(--primary-dark); font-size: 16px; font-weight: 600; text-decoration: none; border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,0.25); transition: transform .2s ease, box-shadow .2s ease; }

.gov__cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.35); }

/* Pricing Table */
.price-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }

.price-table th { background: var(--primary-dark); color: #fff; padding: 12px 15px; text-align: left; font-weight: 600; }

.price-table td { padding: 10px 15px; border-bottom: 1px solid var(--border); }

.price-table tr:nth-child(even) { background: var(--bg-light); }

.price-table tr:hover { background: #ecf0f1; }

/* Table wrapper */
.table-wrap { overflow-x: auto; margin: 20px 0; }

/* Code blocks */
.code-block { position: relative; margin: 15px 0; }

.code-block pre { background: #1e1e2e; color: #e0e0e0; padding: 16px; border-radius: 8px; overflow-x: auto; font-size: 15px; line-height: 1.5; font-family: 'Consolas', 'Monaco', 'Courier New', monospace; white-space: pre; }

.copy-btn { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,0.1); color: #ccc; border: 1px solid rgba(255,255,255,0.15); border-radius: 6px; padding: 4px 10px; font-size: 12px; cursor: pointer; transition: background 0.2s; }

.copy-btn:hover { background: rgba(255,255,255,0.2); color: #fff; }

/* Help list */
.help-list { list-style: none; margin: 0; }

.help-list li { padding: 14px 0; border-bottom: 1px solid var(--border); }

.help-list a { text-decoration: none; color: var(--primary); font-weight: 500; font-size: 16px; }

.help-list a:hover { text-decoration: underline; color: var(--primary-dark); }

.help-list .views { float: right; color: #999; font-size: 13px; font-weight: normal; }

/* Contacts page */
.contacts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }

.contact-card { background: #fff; border-radius: 12px; padding: 25px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); text-align: center; }



.contact-card__icon { margin-bottom: 12px; }

.contact-card h3 { font-size: 18px; color: var(--dark); margin-bottom: 8px; }

.contact-card p { font-size: 15px; color: var(--text); margin-bottom: 4px; }

.contact-card a { color: var(--primary); text-decoration: none; }

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

/* Certificate Gallery */
.cert-gallery { display: flex; gap: 8px; padding-bottom: 10px; }

.cert-gallery__item { flex: 1 1 0; min-width: 0; cursor: pointer; transition: transform 0.2s; }

.cert-gallery__item:hover { transform: scale(1.04); }

.cert-gallery__item img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,0.12); display: block; }

/* Lightbox */
.lightbox { display: none; position: fixed; z-index: 1000; inset: 0; background: rgba(0,0,0,0.92); align-items: center; justify-content: center; }

.lightbox--open { display: flex; }

.lightbox__img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 4px; transition: transform 0.15s; cursor: zoom-in; }

.lightbox__close { position: absolute; top: 20px; right: 30px; font-size: 32px; color: #fff; background: none; border: none; cursor: pointer; z-index: 1001; }

.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 48px; color: #fff; background: rgba(255,255,255,0.1); border: none; border-radius: 50%; width: 60px; height: 60px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; z-index: 1001; }

.lightbox__nav:hover { background: rgba(255,255,255,0.25); }

.lightbox__nav--prev { left: 20px; }

.lightbox__nav--next { right: 20px; }

.lightbox__counter { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.6); font-size: 16px; }

.btn { display: inline-block; padding: 12px 30px; background: var(--primary); color: #fff; text-decoration: none; border-radius: 8px; font-size: 16px; font-weight: 500; transition: background 0.2s; }

.btn:hover { background: var(--primary-dark); }

/* Footer */
.footer { background: var(--dark); color: rgba(255,255,255,0.9); padding: 40px 0 20px; margin-top: 50px; }

.footer__grid { display: grid; grid-template-columns: 1fr; gap: 30px; margin-bottom: 30px; }

.footer__col h4 { color: #fff; margin-bottom: 15px; font-size: 18px; }

.footer__col p { font-size: 15px; margin-bottom: 8px; line-height: 1.6; }

.footer__col ul { list-style: none; }

.footer__col ul li { margin-bottom: 8px; }

.footer__col a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 15px; }

.footer__col a:hover { color: #fff; text-decoration: underline; }

.footer__apps { display: flex; gap: 12px; margin-top: 15px; }

.footer__app { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 85px; padding: 10px 6px; border-radius: 10px; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.85); font-size: 12px; line-height: 1.2; text-align: center; text-decoration: none !important; transition: background .2s ease, color .2s ease; }

.footer__app:hover { background: rgba(255,255,255,0.16); color: #fff; }

.footer__app svg { width: 24px; height: 24px; fill: currentColor; }

@media (min-width: 769px) {
    .footer__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); }
}

.dl-apps { display: flex; gap: 12px; margin: 15px 0; flex-wrap: wrap; }

.dl-app { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 110px; padding: 14px 6px; border-radius: 10px; background: #cfdbe8; color: #2a506e; font-size: 13px; line-height: 1.2; text-align: center; text-decoration: none !important; transition: background .2s ease, color .2s ease; }

.dl-app:hover { background: #2a506e; color: #fff; }

.dl-app svg { width: 32px; height: 32px; fill: currentColor; }

    .footer__bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; }

@media (hover: none) and (pointer: coarse) {
    .header__search { display: none; }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle { display: block; }

    .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,0.1); padding: 10px; }

    .nav--open { display: block; }

    .nav__list { flex-direction: column; }

    .dropdown { position: static; box-shadow: none; padding-left: 20px; display: none; }

    .nav__item--dropdown:hover .dropdown { display: none; }

    .nav__item--dropdown.nav__item--open .dropdown { display: block; }

    .header__info { font-size: 13px; gap: 12px; }

    .header__search { display: none; }

    .hero h1 { font-size: 30px; }

    .hero p { font-size: 20px; padding: 8px 14px; }

    .hero { padding: 40px 20px; }

    .page-hero h1 { font-size: 20px; margin: 0; }
    .page-hero p { display: none; }
    .page-hero { height: auto; min-height: 50px; padding: 12px 0; }

    .cards-grid { gap: 12px; }
    .card { padding: 12px; }
    .card__icon { margin-bottom: 8px; }
    .card__icon svg { width: 44px; height: 44px; }
    .card h3 { font-size: 17px; margin-bottom: 6px; }
    .card p { font-size: 13px; }
    .card__link { font-size: 13px; padding: 7px 16px; margin-top: 10px; }

    .logo__text strong { font-size: 20px; }

    .price-table { font-size: 13px; }

    .price-table th, .price-table td { padding: 8px 10px; }

    .gov { padding: 40px 0; }
    .gov__title { font-size: 24px; }
    .gov__lead { font-size: 14px; margin-bottom: 26px; }
    .gov__card { padding: 20px 16px; }
    .gov__num { font-size: 36px; }
    .gov__cta { padding: 11px 28px; font-size: 15px; }
}
