:root {
    --bg-primary: #080c15;
    --bg-secondary: #0f1623;
    --accent: #d4af68;
    --text-main: #ffffff;
    --text-muted: #8ba0b9;
    --border-color: rgba(255, 255, 255, 0.1);

    --font-main: 'Montserrat', sans-serif;

    --container-width: 1400px;
    --header-height: 90px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* Offset for fixed header */
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    width: 100%;
    letter-spacing: 0.04em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-main);
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.0;
}

.text-accent {
    color: var(--accent);
}

.text-white {
    color: #fff;
}

.btn {
    display: inline-block;
    padding: 16px 45px;
    border-radius: 20px;
    font-weight: 500;
    text-transform: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 16px;
    line-height: 1.2;
}

.btn-primary {
    background-color: #e6e6e6;
    color: #000;
}

.btn-primary:hover {
    background-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    width: auto;
    min-width: 160px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    border-radius: 12px;
    padding: 10px 30px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

/* Header */
.header {
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    background: url('../images/background-header.webp') no-repeat center center;
    background-size: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: url('../images/background-header.webp') no-repeat center center;
    background-size: cover;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.header .container {
    display: block;
    position: relative;
    padding: 0 40px;
}

.header-grid {
    display: grid;
    grid-template-columns: 20% 80%;
    align-items: center;
    width: 100%;
}

.header-right {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-grow: 1;
    gap: 30px;
}

.logo-block {
    display: flex;
    align-items: center;
    margin: 0;
}

.logo-img {
    height: 35px;
    /* Increased by ~10% from 32px */
    width: auto;
    object-fit: contain;
}

.logo-divider {
    height: 40px;
    width: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 5px;
}

.logo-sub {
    font-size: 14px;
    color: #ffffff;
    /* Restored to white */
    line-height: 1.4;
    max-width: 220px;
    margin-right: auto;
    text-align: left;
}

.burger-menu {
    display: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.menu-overlay { display: none; }
.mobile-call-fab { display: none; }
.nav-mobile-contacts { display: none; }

.nav ul {
    display: flex;
    justify-content: space-evenly;
    /* Distribute links evenly */
    gap: 15px;
    width: 100%;
    flex-wrap: nowrap;
}

.nav {
    margin: 0 40px;
    /* Space between logo-sub and contacts */
    flex-grow: 1;
    /* Take up available space */
}

.nav a {
    font-size: 13px;
    /* Reduced from 16px as requested */
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ffffff;
    /* Restored to white for visibility */
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav a:hover,
.nav a.active {
    color: var(--accent);
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.header-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 17px;
    letter-spacing: 1px;
    white-space: nowrap;
    margin-right: 0;
}

.contact-phones {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-phones div {
    margin-bottom: 6px;
    letter-spacing: 0.2em;
    line-height: 1.0;
    color: #ffffff;
}

.contact-phones a {
    color: #ffffff;
    transition: color 0.3s ease;
}

.contact-phones a:hover {
    color: var(--accent);
}

.socials {
    margin-top: 8px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    width: 100%;
}

.socials a {
    color: #ffffff;
    font-size: 12px;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.socials a:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Page Sections */
.page {
    min-height: 100vh;
    display: block;
    position: relative;
    padding: 60px 0 60px;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}

/* Hero Page (Page 1) */
.hero-page {
    position: relative;
    padding-top: 100px;
    height: 100vh;
    min-height: 680px;
    display: block;
    overflow: hidden;
    background-color: #000;
    /* Deep black for the sides */
}

.hero-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/background-hero-v4.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    z-index: 0;
    pointer-events: none;
}

.hero-page .container {
    position: relative;
    z-index: 1;
    height: 100%;
    margin: 0 auto;
    max-width: 1400px;
}

.hero-grid,
.split-grid {
    display: grid;
    grid-template-columns: 20% 80%;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    /* Flex layout for responsiveness */
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 40px;
    /* Replaces absolute positioning top offsets */
}

.hero-text {
    position: relative;
    max-width: 600px;
    z-index: 10;
}

.hero-title {
    font-size: 42px;
    margin-top: 0;
    /* Removing top margin as padding handles it */
    margin-bottom: 30px;
    line-height: 1.0;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.hero-description {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 30px;
    width: 100%;
    /* Full width of parent */
    max-width: 400px;
    z-index: 90;
    text-align: left;
    opacity: 1;
}

.hero-publications {
    margin-top: 40px;
    text-align: left;
}

.pub-title {
    font-size: 18px;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 700;
}

.pub-subtitle {
    font-size: 14px;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 500;
}

.pub-list {
    list-style: none;
    padding: 0;
}

.pub-list li {
    margin-bottom: 10px;
}

.pub-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    margin: 0 -12px;
    border-radius: 6px;
    max-width: 400px;
}

.pub-link:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
    border-bottom-color: transparent;
}

.pub-link-arrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 1;
    /* Increased visibility */
    margin-left: 15px;
}

.hero-stats {
    position: relative;
    margin-top: 40px;
    /* Visual offset relative to text */
    margin-right: 0;
    /* Aligned with header contacts */
    width: auto;
    min-width: 300px;
    /* Prevent too much squishing */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    /* Right aligned */
    z-index: 10;
}

.stat-item {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 2px;
    /* Reduced from 8px */
    font-size: 20px;
    color: var(--text-main);
}

.stat-number-inline {
    width: 65px;
    /* Reduced to fit smaller font */
    text-align: right;
    color: var(--accent);
    font-weight: 700;
    font-size: 22px;
    /* Reduced by 20% (from 28px) */
    flex-shrink: 0;
}

.stat-label-inline {
    text-align: left;
    font-size: 18px;
    /* Reduced by 20% (from 22px) */
    line-height: 1.2;
    font-weight: 400;
    color: #fff;
    padding-top: 2px;
    /* Adjust for smaller font */
}

.hero-cta {
    margin-top: 15px;
    /* Reduced from 30px */
    display: flex;
    justify-content: flex-end;
    /* Align with right-aligned stats */
    padding-left: 0;
}

.btn-hero-cta {
    background: #ffffff;
    color: #000000;
    border: 1px solid #ffffff;
    width: auto;
    min-width: 250px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    border-radius: 16px;
    padding: 16px 28px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.btn-hero-cta:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
}

/* btn-outline styles consolidated above */
.btn-outline:hover {
    background: transparent;
    color: #fff;
}

/* Features Strip */
.features-strip {
    display: flex;
    justify-content: flex-start;
    gap: 0;
    padding: 20px 0;
    width: 100%;
    position: absolute;
    bottom: -70px;
    z-index: 10;
}

.feature-box {
    flex: 0 1 auto;
    max-width: 300px;
    padding: 0 35px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-box:last-child {
    border-right: none;
}

.feature-box:first-child {
    padding-left: 0;
}



.feature-title {
    font-size: 20px;
    /* Reduced size as requested */
    margin-bottom: 20px;
    /* Reduced to keep text closer but still below line after bottom shift */
    letter-spacing: 1px;
    color: #fff;
    font-weight: 600;
    text-align: left;
}

.feature-desc {
    font-size: 14px;
    /* Reduced size as requested */
    color: #fff;
    line-height: 1.55;
    text-align: left;
    font-weight: 400;
}

/* Feature styles refined above */

/* About Page (Page 2) */

/* About Page (Page 2) */
.about-page {
    background-image: url('../images/background-services.webp');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}

.section-title {
    font-size: 34px;
    margin-bottom: 30px;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 3px;
    background: var(--accent);
}

.about-content {
    display: flex;
    justify-content: space-between;
    gap: 80px;
    align-items: center;
}

.about-text {
    flex: 1;
    max-width: 600px;
}

.about-text p {
    color: var(--text-muted);
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-right: 85px;
    /* Aligned with header phones */
    align-items: flex-end;
}

.about-stat-item {
    text-align: right;
}

.stat-number {
    font-size: 51px;
    /* Reduced by 20% (from 64px) */
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-size: 11px;
    /* Reduced by 20% (from 14px) */
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

/* Services Page (Page 3) */
.services-page {
    background-image: url('../images/background-services.webp');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}

.services-page .section-title {
    margin-bottom: 60px;
}

.services-intro {
    margin-bottom: 20px;
}

.services-intro p {
    font-size: 20px;
    /* Consistent with other sections */
    color: var(--text-muted);
    line-height: 1.5;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    /* Reduced from 40px */
}

.service-item {
    padding: 15px 25px;
    /* Reduced from 20px 30px */
    height: 100%;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.service-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 104, 0.1);
}

.service-icon {
    font-size: 40px;
    /* Reduced from 48px */
    color: var(--accent);
    margin-bottom: 15px;
    /* Reduced from 20px */
}

.service-title {
    font-size: 18px;
    margin-bottom: 15px;
    letter-spacing: 1px;
    line-height: 1.4;
}

.service-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Contacts Page (Page 4) */
/* Container uses global style for alignment */

.contacts-page {
    background-image: url('../images/background-services.webp');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    /* Changed from fixed */
}

.contacts-layout {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    width: 100%;
    margin-top: 20px;
}

.contacts-info-col {
    flex: 0.9;
    /* Slightly narrower to give more space to map */
}

.contacts-map-col {
    flex: 1.1;
    /* 10% wider as requested */
}

.contacts-map-small {
    width: 100%;
    height: 450px;
    /* 30% higher as requested (from 350px to 450px) */
    /* Rectangular as requested */
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contacts-map-small iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.contacts-footer-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.4;
    letter-spacing: 1px;
    margin-top: 30px;
    opacity: 0.7;
}

/* Contact block with icons */
.contact-text-block p {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.5;
}

.contact-text-block p i {
    color: var(--accent);
    margin-top: 3px;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}

.contact-text-block a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.contact-text-block a:hover {
    color: var(--accent);
}

/* Header phone links */
.contact-phones a {
    color: inherit;
    transition: color 0.3s ease;
}

.contact-phones a:hover {
    color: var(--accent);
}

.socials-centered {
    justify-content: flex-start;
    gap: 30px;
    display: flex;
}

.socials-centered a {
    font-size: 28px;
    color: var(--text-main);
}



/* Call Button Fixed */
.call-btn-fixed {
    position: fixed;
    bottom: 110px;
    left: calc(50% - 700px + 40px);
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 999;
    text-transform: lowercase;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.8;
    text-align: left;
    letter-spacing: 0.5px;
}

.call-btn-fixed:hover {
    transform: translateY(-3px);
    opacity: 1;
}

.call-btn-fixed i {
    font-size: 20px;
    transform: scaleX(-1);
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    bottom: 40px;
    right: 40px;
    color: var(--accent);
    font-size: 24px;
    z-index: 999;
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-indicator:hover {
    transform: scale(1.2);
}

/* Reviews Section Styles */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.review-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.review-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    transform: translateY(-5px);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.review-author {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    flex: 1;
}

.review-stars {
    color: var(--accent);
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    gap: 2px;
}

.review-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    font-style: italic;
    flex: 1;
    /* Pushes content to fill card height evenly */
}

.reviews-cta {
    margin-top: 40px;
    display: flex;
    justify-content: flex-end;
}

.btn-review {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-review i {
    font-size: 16px;
}

.btn-review:hover {
    background: var(--accent);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 104, 0.3);
}

/* Comments Section */
.comments-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.comments-title {
    font-size: 24px;
    margin-bottom: 25px;
    color: #000;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
    font-family: var(--font-main);
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--accent);
}

.comment-form textarea {
    resize: vertical;
    min-height: 100px;
}

.comment-btn {
    align-self: flex-start;
    background: #000;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.comment-btn:hover {
    background: var(--accent);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.comment-author {
    font-weight: 700;
    color: #000;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
}

.comment-date {
    font-weight: 400;
    font-size: 12px;
    color: var(--text-muted);
}

.comment-text {
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.5;
}

/* Page Indicators */
.page-indicators {
    position: fixed;
    left: calc(50% - 700px + 40px);
    /* Positioned within the 20% column */
    top: 360px;
    /* Moved slightly higher as requested */
    display: flex;
    flex-direction: column;
    gap: 30px;
    z-index: 99;
}

.indicator-item {
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0.3;
    transition: all 0.3s ease;
    cursor: pointer;
}

.indicator-item:hover,
.indicator-item.active {
    opacity: 1;
}

.indicator-number {
    font-size: 14px;
    color: #fff;
    font-weight: 500;
}

.indicator-line {
    width: 30px;
    height: 1px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.indicator-item.active .indicator-line {
    width: 50px;
    background-color: #fff;
}

@media (max-width: 1440px) {

    .page-indicators,
    .call-btn-fixed {
        left: 20px;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Modal Dialogs */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: linear-gradient(180deg, #b49664 0%, #8c6e46 100%);
    padding: 50px 40px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.4s ease;
    z-index: 10001;
    text-align: center;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: rgba(0, 0, 0, 0.6);
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: #000;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-close:focus {
    outline: none;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    margin-bottom: 35px;
    line-height: 1.2;
    letter-spacing: 1px;
    text-align: center;
    position: relative;
    display: inline-block;
    padding: 0 25px;
    /* Moved icon closer to text */
}

.modal-phone-icon {
    display: none;
    /* Hide the old absolute icon */
}



.modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Custom Validation Styles */
.input-wrapper {
    position: relative;
    width: 100%;
}

.modal-form input {
    width: 100%;
    padding: 15px 20px;
    background: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--font-main);
    color: #000;
    transition: all 0.3s ease;
    outline: none;
}

.modal-form input.error {
    border-color: #ff4d4d;
    background: #fff0f0;
}

.error-message {
    color: #ff4d4d;
    /* Red color for error text */
    font-size: 12px;
    margin-top: 5px;
    margin-left: 10px;
    text-align: left;
    display: none;
    font-weight: 500;
}

.error-message.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-form input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.modal-form input:focus {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modal-form .btn {
    margin-top: 20px;
    background: #1d46a4;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 15px 40px;
    min-height: 52px;
    /* Touch target >= 44px */
    width: 100%;
    /* Full width for easy tapping */
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.modal-form input {
    border-radius: 12px;
}

.modal-form .btn:hover {
    background: #163581;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(29, 70, 164, 0.3);
}

/* Status Modal Specifics */
.status-modal-content {
    text-align: center;
    max-width: 400px;
    padding-top: 50px;
    padding-bottom: 50px;
}

.status-icon {
    font-size: 60px;
    color: #fff;
    margin-bottom: 25px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.status-icon.success {
    color: #fff;
}

.status-icon.error {
    color: #ffcccc;
}

.status-title {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.status-message {
    font-size: 16px;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.6;
}

.status-btn {
    width: 100%;
    background-color: #000;
    color: #fff;
    border: none;
}

.status-btn:hover {
    background-color: #222;
}

/* "Усі публікації" link on hero */
.pub-all-link-wrap { margin-top: 20px; }
.pub-link-all { border: none; color: var(--accent); font-weight: 600; }
.pub-link-all-icon { font-size: 10px; margin-left: 5px; }

/* Publications page styles (moved from inline) */
.publications-page-container {
    padding-top: 140px;
    padding-bottom: 80px;
    min-height: 100vh;
    background: url('../images/background-services.webp') no-repeat center center;
    background-size: cover;
}

.pub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.pub-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 40px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    cursor: pointer;
    position: relative;
    text-decoration: none;
}

.pub-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 104, 0.1);
}

.pub-card .stretched-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.pub-card-category {
    font-size: 12px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 15px;
}

.pub-card-title {
    font-size: 20px;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 20px;
    font-weight: 600;
    text-transform: none;
}

.pub-card-date {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-pub-read {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.pub-card:hover .btn-pub-read {
    color: var(--accent);
}

.btn-pub-read i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.pub-card:hover .btn-pub-read i {
    transform: translateX(5px);
}

/* Article page styles (moved from inline) */
.article-container {
    padding-top: 140px;
    padding-bottom: 80px;
}

.article-card {
    background: var(--bg-card, #ffffff);
    padding: 60px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    max-width: 900px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 30px;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.back-link:hover {
    transform: translateX(-5px);
}

.article-category {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.article-card h1 {
    font-size: 32px;
    line-height: 1.3;
    margin-bottom: 30px;
    color: #000;
    text-transform: none;
}

.article-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.content p {
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--text-main);
    text-transform: none;
}

.content h2 {
    font-size: 22px;
    margin: 40px 0 20px;
    color: #000;
    text-transform: none;
}

.content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

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

.case-number {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.ps-block {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--accent);
    font-style: italic;
    color: var(--text-muted);
}