/* ==================== */
/* Main styles */
/* ==================== */

:root {
    --primary-blue: #1e3a8a;
    --secondary-blue: #3b82f6;
    --light-blue: #dbeafe;
    --white: #ffffff;
    --light-gray: #f8fafc;
    --dark-gray: #334155;
    --accent-blue: #2563eb;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 12px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--light-gray);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== */
/* Header */
/* ==================== */

.header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.logo h1 {
    font-family: 'PT Serif', serif;
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.logo a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s;
}

.logo a:hover {
    opacity: 0.9;
}

.logo-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
}

.header-contacts p {
    margin-bottom: 0.25rem;
    text-align: right;
    font-size: 0.9rem;
}

/* navigation */
.navbar {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* page header */
.page-header {
    background-color: var(--light-blue);
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.page-header h2 {
    color: var(--primary-blue);
    font-size: 2rem;
    text-align: center;
}

.main-content {
    flex: 1;
    padding-bottom: 3rem;
}

/* Hero section */
.hero {
    background: linear-gradient(rgba(30, 58, 138, 0.9), rgba(30, 58, 138, 0.8));
    background-size: cover;
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
    border-radius: 0 0 20px 20px;
}

.hero h1 {
    font-family: 'PT Serif', serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    opacity: 0.95;
}

/* buttons */
.btn {
    display: inline-block;
    background-color: var(--accent-blue);
    color: var(--white);
    padding: 0.75rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn:hover {
    background-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-light {
    background-color: var(--white);
    color: var(--primary-blue);
}

.btn-light:hover {
    background-color: var(--light-blue);
    color: var(--primary-blue);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--accent-blue);
    color: var(--accent-blue);
}

.btn-outline:hover {
    background-color: var(--accent-blue);
    color: var(--white);
}

/* ==================== */
/* Main cards */
/* ==================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 280px;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.feature-icon .icon {
    width: 56px;
    height: 56px;
    stroke-width: 1.5;
    stroke: var(--accent-blue);
    transition: all 0.3s;
}

.feature-card:hover .icon {
    transform: scale(1.1);
    stroke: var(--primary-blue);
}

.feature-card h3 {
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: break-word;
    min-height: 2.8em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 0 0.5rem;
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--dark-gray);
    flex-grow: 1;
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
}

/* icons */
.icon {
    width: 48px;
    height: 48px;
    stroke: var(--accent-blue);
    transition: all 0.3s;
}

/* sections */
section {
    margin-bottom: 4rem;
}

h2 {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-blue);
    margin: 0.5rem auto;
}

h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

h4 {
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

/* main page articles */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.article-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-blue);
    box-shadow: var(--shadow);
    transition: all 0.3s;
    position: relative;
    padding-left: 80px;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.article-icon {
    position: absolute;
    left: 1.5rem;
    top: 1.5rem;
}

.article-icon .icon {
    width: 40px;
    height: 40px;
}

.article-card:hover .icon {
    transform: translateY(-3px);
}

.read-more {
    display: inline-block;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    margin-top: 1rem;
    transition: all 0.3s;
}

.read-more:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

.text-center {
    text-align: center;
    margin-top: 2rem;
}

/* CTA */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
    border-radius: 12px;
    margin: 4rem auto;
    max-width: 1200px;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-content h2::after {
    background-color: var(--white);
    margin: 1rem auto;
}

.cta-content p {
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* ==================== */
/* About */
/* ==================== */

.about-intro {
    margin-bottom: 3rem;
}

.content-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.1);
}

.about-feature .feature-icon {
    flex-shrink: 0;
}

.about-feature h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

/* history */
.history-section {
    margin: 4rem 0;
}

.history-timeline {
    position: relative;
    max-width: 800px;
    margin: 2rem auto;
    padding-left: 2rem;
}

.history-timeline:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--light-blue);
}

/* license */
.licenses-section {
    margin: 4rem 0;
}

.licenses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.license-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 8px;
    border-left: 4px solid var(--accent-blue);
    box-shadow: var(--shadow);
}

.license-icon {
    flex-shrink: 0;
}

.license-info h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.license-date,
.license-issuer {
    font-size: 0.9rem;
    color: var(--dark-gray);
    margin: 0.25rem 0;
}

/* achievements */
.achievements-section {
    margin: 4rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    border-radius: 12px;
    text-align: center;
}

.achievements-section h2 {
    color: var(--white);
}

.achievements-section h2::after {
    background-color: var(--white);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.achievement {
    padding: 1.5rem;
}

.achievement-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.achievement p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ==================== */
/* Services */
/* ==================== */

.services-intro {
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.service-features li {
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li:before {
    content: "•";
    color: var(--accent-blue);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.service-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
}

.service-link:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

/* additional services */
.additional-services {
    margin: 4rem 0;
}

.additional-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.additional-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    border-top: 3px solid var(--accent-blue);
    box-shadow: var(--shadow);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 120px;
    height: 100%;
}

.additional-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.additional-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    background: var(--light-blue);
    border-radius: 50%;
    padding: 0.5rem;
}

.additional-icon .icon {
    width: 24px;
    height: 24px;
    stroke: var(--accent-blue);
}

.additional-card h3 {
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    line-height: 1.3;
    min-height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.additional-card p {
    color: var(--dark-gray);
    font-size: 0.9rem;
    line-height: 1.4;
    flex-grow: 1;
    display: flex;
    align-items: center;
    margin: 0;
}


/* ==================== */
/* Documents */
/* ==================== */

.documents-category {
    margin-bottom: 3rem;
}

.documents-list {
    display: grid;
    gap: 1rem;
}

.document-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 8px;
    border-left: 4px solid var(--accent-blue);
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.document-item:hover {
    transform: translateY(-3px);
}

.document-icon {
    flex-shrink: 0;
}

.document-info h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
}

.info-card {
    background: var(--light-blue);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    border-left: 4px solid var(--accent-blue);
}

.info-card h3 {
    margin-top: 0;
}

/* ==================== */
/* Clients */
/* ==================== */

.clients-intro {
    margin-bottom: 3rem;
}

.clients-category {
    margin-bottom: 3rem;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.client-item {
    padding: 1.5rem;
    background: var(--white);
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.client-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.client-logo {
    width: 60px;
    height: 60px;
    background: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 1.2rem;
}

.testimonials-section {
    margin: 3rem 0;
}

.testimonial {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--accent-blue);
    box-shadow: var(--shadow);
}

.testimonial-author {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light-blue);
    font-style: italic;
}

.testimonial-author strong {
    color: var(--primary-blue);
}

/* ==================== */
/* Recommendations */
/* ==================== */

.recommendations-intro {
    margin-bottom: 3rem;
    text-align: center;
}

.recommendations-intro h2 {
    margin-bottom: 1rem;
}

.recommendations-intro p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--dark-gray);
}

/* gallery */

.recommendations-gallery {
    margin: 4rem 0;
}

.recommendations-gallery h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-blue);
}

.letters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.letter-item {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
}

.letter-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.letter-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.letter-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s;
}

.letter-item:hover .letter-image img {
    transform: scale(1.05);
}

.letter-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 58, 138, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
}

.letter-item:hover .letter-overlay {
    opacity: 1;
}

.zoom-icon {
    width: 48px;
    height: 48px;
    stroke: white;
    margin-bottom: 1rem;
}

.letter-overlay span {
    font-size: 0.9rem;
    font-weight: 500;
}

.letter-info {
    padding: 1.5rem;
}

.letter-info h4 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.letter-info p {
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.letter-desc {
    font-style: italic;
    color: var(--dark-gray);
    opacity: 0.8;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--light-blue);
}

/* review */
.testimonials-section {
    margin: 4rem 0;
    padding: 3rem 0;
    background: var(--light-blue);
    border-radius: 12px;
}

.testimonials-section h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-blue);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent-blue);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    line-height: 1.6;
    color: var(--dark-gray);
}

.testimonial-author {
    padding-top: 1rem;
    border-top: 1px solid var(--light-blue);
}

.testimonial-author strong {
    color: var(--primary-blue);
    display: block;
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

/* lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 1001;
}

.close-btn:hover {
    color: var(--accent-blue);
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

#lightboxCaption {
    text-align: center;
    color: white;
    padding: 1rem;
    font-size: 1.1rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 0 0 4px 4px;
    margin-top: -4px;
}

.lightbox-nav {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: var(--accent-blue);
    transform: scale(1.1);
}

/* ==================== */
/* Articles */
/* ==================== */

.articles-intro {
    margin-bottom: 3rem;
}

.articles-category {
    margin-bottom: 3rem;
}

.articles-list {
    display: grid;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.article-preview {
    padding: 1.5rem;
    background: var(--white);
    border-radius: 8px;
    border-left: 4px solid var(--accent-blue);
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.article-preview:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.article-category {
    background: var(--light-blue);
    color: var(--primary-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.article-preview h4 a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s;
}

.article-preview h4 a:hover {
    color: var(--accent-blue);
}

.read-article {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
}

.read-article:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

.pagination {
    margin: 2rem 0;
    text-align: center;
}

.pagination-nav {
    display: inline-flex;
    gap: 0.5rem;
}

.page-link {
    padding: 0.5rem 1rem;
    background: var(--white);
    border: 1px solid var(--light-blue);
    border-radius: 4px;
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.3s;
}

.page-link:hover,
.page-link.active {
    background: var(--accent-blue);
    color: var(--white);
    border-color: var(--accent-blue);
}

/* ==================== */
/* Contacts */
/* ==================== */

.contacts-intro {
    margin-bottom: 3rem;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin: 2rem 0;
}

.contact-info {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--light-blue);
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-form-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--light-blue);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox input {
    width: auto;
}

.messengers {
    margin-top: 0.5rem;
}

.messenger-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--light-blue);
    border-radius: 8px;
    transition: all 0.3s;
}

.messenger-item:hover {
    background: var(--light-blue);
    transform: translateX(5px);
}

.messenger-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.messenger-icon svg {
    width: 24px;
    height: 24px;
}

.messenger-icon.viber {
    background: #7360f2;
    color: white;
}

.messenger-icon.whatsapp {
    background: #25d366;
    color: white;
}

.messenger-icon.telegram {
    background: #0088cc;
    color: white;
}

.messenger-info {
    display: flex;
    flex-direction: column;
}

.messenger-name {
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.messenger-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.messenger-link:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

.messengers-promo {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    border-radius: 12px;
    text-align: center;
}

.messengers-promo h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.messengers-promo p {
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.messengers-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.messenger-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.messenger-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.messenger-btn.viber-btn:hover {
    background: #7360f2;
    color: white;
}

.messenger-btn.whatsapp-btn:hover {
    background: #25d366;
    color: white;
}

.messenger-btn.telegram-btn:hover {
    background: #0088cc;
    color: white;
}

.messenger-btn:hover .btn-title,
.messenger-btn:hover .btn-subtitle {
    color: white;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-icon svg {
    width: 24px;
    height: 24px;
}

.viber-btn .btn-icon {
    background: #7360f2;
    color: white;
}

.whatsapp-btn .btn-icon {
    background: #25d366;
    color: white;
}

.telegram-btn .btn-icon {
    background: #0088cc;
    color: white;
}

.btn-text {
    text-align: left;
    flex-grow: 1;
}

.btn-title {
    display: block;
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    transition: color 0.3s;
}

.btn-subtitle {
    display: block;
    font-size: 0.9rem;
    color: var(--dark-gray);
    transition: color 0.3s;
}

/* ==================== */
/* Footer */
/* ==================== */

.footer {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--light-blue);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-bottom a {
    color: var(--light-blue);
    text-decoration: none;
    margin: 0 0.5rem;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* ==================== */
/* Adaptivity */
/* ==================== */

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .header-contacts {
        text-align: center;
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .features-grid,
    .articles-grid,
    .about-features,
    .mission-cards,
    .values-grid,
    .team-grid,
    .licenses-grid,
    .achievements-grid,
    .services-grid,
    .process-steps,
    .clients-grid,
    .recommendations-grid,
    .documents-list,
    .sitemap-grid,
    .tips-grid,
    .contacts-grid {
        grid-template-columns: 1fr;
    }
    
    .about-feature {
        flex-direction: column;
        text-align: center;
    }
    
    .history-timeline:before {
        left: 20px;
    }
    
    .timeline-year {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
        margin-right: 1rem;
        left: -1.3rem;
    }
    
    .team-member {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .photo-placeholder {
        margin: 0 auto;
    }
    
    .license-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .cta-buttons,

    .letters-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .letter-image {
        height: 200px;
    }
    
    .letter-info {
        padding: 1rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .lightbox-nav {
        padding: 0 1rem;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* cards */
    .feature-card {
        padding: 1.25rem;
        min-height: 240px;
    }
    
    .feature-card h3 {
        font-size: 1rem;
        min-height: 2.6em;
        line-height: 1.2;
    }
    
    .feature-card:nth-child(2) h3 {
        font-size: 0.95rem;
    }
    
    .feature-card p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .feature-icon .icon {
        width: 48px;
        height: 48px;
    }

    /* additional cards */
    .additional-grid {
        grid-template-columns: 1fr;
    }
    
    .additional-card {
        padding: 1rem;
    }
    .messengers-buttons {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .messenger-btn {
        padding: 1rem 1.25rem;
    }
    
    .messenger-item {
        padding: 0.5rem;
    }
    
    .messenger-icon {
        width: 32px;
        height: 32px;
    }
    
    .messenger-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .messengers-promo {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .nav-menu a {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .feature-card,
    .service-card,
    .mission-card,
    .value-item,
    .client-item,
    .recommendation-card,
    .article-preview,
    .document-item,
    .timeline-content,
    .license-card,
    .gratitude-item,
    .testimonial,
    .contact-info,
    .contact-form-section,
    .sitemap-section,
    .tip,
    .info-card {
        padding: 1rem;
    }
    
    .requisites-card {
        padding: 1rem;
    }
    
    .letters-grid {
        grid-template-columns: 1fr;
    }
    
    .letter-image {
        height: 180px;
    }
    
    .zoom-icon {
        width: 32px;
        height: 32px;
    }
    
    .letter-overlay span {
        font-size: 0.8rem;
    }
    
    .close-btn {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }

    .footer {
        padding: 2rem 0 1rem;
    }
}

/* Utils */
.note {
    font-size: 0.9rem;
    color: var(--dark-gray);
    font-style: italic;
    margin-top: 1rem;
    opacity: 0.8;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }