:root {
    --primary: #3a6b5e;
    --primary-light: #4d8a7a;
    --primary-dark: #2d5449;
    --secondary: #d4a853;
    --accent: #e8f0ed;
    --dark: #1c2620;
    --text: #2d3a34;
    --text-light: #5a6b63;
    --bg-light: #f7faf9;
    --bg-warm: #fdfcf8;
    --white: #ffffff;
    --border: #d8e2dd;
    --shadow: rgba(45,84,73,0.08);
    --shadow-hover: rgba(45,84,73,0.15);
    --radius: 10px;
    --radius-lg: 16px;
    --transition: 0.25s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 17px;
    line-height: 1.75;
    color: var(--text);
    background-color: var(--bg-warm);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.ad-banner {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.9);
    padding: 10px 0;
    font-size: 13px;
    text-align: center;
}

header {
    background: var(--white);
    box-shadow: 0 2px 20px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 500;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}

.logo {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--secondary);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--dark);
    margin: 6px 0;
    transition: var(--transition);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 36px;
    align-items: center;
}

.main-nav li a {
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    position: relative;
}

.main-nav li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width var(--transition);
}

.main-nav li a:hover::after {
    width: 100%;
}

.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-light);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-hover);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--dark);
}

.btn-secondary:hover {
    background: #c99a42;
    color: var(--dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-light {
    background: var(--white);
    color: var(--primary);
}

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

.hero-magazine {
    padding: 70px 0 80px;
    background: linear-gradient(165deg, var(--bg-light) 0%, var(--accent) 50%, var(--bg-warm) 100%);
}

.hero-magazine-grid {
    display: flex;
    gap: 50px;
    align-items: center;
}

.hero-text {
    flex: 1;
}

.hero-tag {
    display: inline-block;
    background: var(--secondary);
    color: var(--dark);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-text h1 {
    font-size: 46px;
    line-height: 1.15;
    color: var(--dark);
    margin-bottom: 22px;
    letter-spacing: -1px;
}

.hero-text p {
    font-size: 19px;
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1.1;
    position: relative;
}

.hero-image-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px var(--shadow-hover);
    background: var(--border);
}

.hero-image-main img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.hero-card-float {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: var(--white);
    padding: 20px 24px;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px var(--shadow);
}

.hero-card-float strong {
    display: block;
    font-size: 28px;
    color: var(--primary);
}

.hero-card-float span {
    font-size: 14px;
    color: var(--text-light);
}

.section {
    padding: 90px 0;
}

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

.section-white {
    background: var(--white);
}

.section-accent {
    background: var(--accent);
}

.section-dark {
    background: var(--primary-dark);
    color: var(--white);
}

.section-header {
    margin-bottom: 50px;
}

.section-header.center {
    text-align: center;
}

.section-tag {
    display: inline-block;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 38px;
    color: var(--dark);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-dark .section-title {
    color: var(--white);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
}

.section-dark .section-subtitle {
    color: rgba(255,255,255,0.8);
}

.section-header.center .section-subtitle {
    margin: 0 auto;
}

.magazine-layout {
    display: flex;
    gap: 45px;
}

.magazine-main {
    flex: 2;
    min-width: 0;
}

.magazine-side {
    flex: 1;
    min-width: 280px;
}

.article-block {
    margin-bottom: 50px;
}

.article-block h2 {
    font-size: 28px;
    color: var(--dark);
    margin-bottom: 18px;
}

.article-block h3 {
    font-size: 22px;
    color: var(--dark);
    margin: 35px 0 14px;
}

.article-block p {
    margin-bottom: 18px;
}

.article-image {
    margin: 35px 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--border);
}

.article-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.article-image.float-left {
    float: left;
    width: 45%;
    margin: 8px 30px 20px 0;
}

.article-image.float-right {
    float: right;
    width: 45%;
    margin: 8px 0 20px 30px;
}

.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

.sidebar-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 28px;
    box-shadow: 0 4px 20px var(--shadow);
}

.sidebar-card h4 {
    font-size: 18px;
    color: var(--dark);
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--accent);
}

.sidebar-card ul {
    list-style: none;
}

.sidebar-card li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
}

.sidebar-card li:last-child {
    border-bottom: none;
}

.sidebar-card li a {
    color: var(--text);
}

.sidebar-card li a:hover {
    color: var(--primary);
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
}

.service-card {
    flex: 1 1 calc(33.333% - 19px);
    min-width: 300px;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 6px 30px var(--shadow);
    transition: all var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 50px var(--shadow-hover);
}

.service-image {
    height: 190px;
    background: var(--border);
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 28px;
}

.service-content h3 {
    font-size: 21px;
    color: var(--dark);
    margin-bottom: 12px;
}

.service-content p {
    color: var(--text-light);
    margin-bottom: 18px;
    font-size: 15px;
}

.service-price {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 18px;
}

.service-price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-light);
}

.feature-row {
    display: flex;
    gap: 60px;
    align-items: center;
    margin-bottom: 70px;
}

.feature-row:last-child {
    margin-bottom: 0;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-image {
    flex: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--border);
    box-shadow: 0 10px 40px var(--shadow);
}

.feature-image img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.feature-content {
    flex: 1;
}

.feature-content h3 {
    font-size: 30px;
    color: var(--dark);
    margin-bottom: 18px;
}

.feature-content p {
    color: var(--text-light);
    margin-bottom: 22px;
}

.feature-list {
    list-style: none;
    margin-bottom: 28px;
}

.feature-list li {
    padding: 10px 0 10px 32px;
    position: relative;
    color: var(--text);
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 18px;
    height: 18px;
    background: var(--secondary);
    border-radius: 50%;
}

.feature-list li::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 20px;
    width: 6px;
    height: 3px;
    border-left: 2px solid var(--dark);
    border-bottom: 2px solid var(--dark);
    transform: rotate(-45deg);
}

.testimonials-grid {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.testimonial-card {
    flex: 1;
    min-width: 300px;
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: 0 6px 30px var(--shadow);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 28px;
    font-size: 60px;
    color: var(--accent);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text {
    font-size: 16px;
    font-style: italic;
    color: var(--text);
    margin-bottom: 24px;
    padding-top: 30px;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent);
    overflow: hidden;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-info strong {
    display: block;
    color: var(--dark);
    font-size: 16px;
}

.testimonial-info span {
    font-size: 14px;
    color: var(--text-light);
}

.stats-row {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
    padding: 50px 0;
}

.stat-box {
    text-align: center;
}

.stat-number {
    font-size: 52px;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1;
}

.section-white .stat-number {
    color: var(--primary);
}

.stat-label {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    margin-top: 8px;
}

.section-white .stat-label {
    color: var(--text-light);
}

.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-lg);
    padding: 50px;
    text-align: center;
    color: var(--white);
}

.cta-banner h3 {
    font-size: 30px;
    margin-bottom: 14px;
}

.cta-banner p {
    font-size: 17px;
    opacity: 0.9;
    margin-bottom: 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.about-intro {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-image {
    flex: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--border);
}

.about-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 34px;
    color: var(--dark);
    margin-bottom: 22px;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 18px;
}

.about-stats {
    display: flex;
    gap: 35px;
    margin-top: 32px;
}

.about-stat {
    text-align: center;
}

.about-stat strong {
    display: block;
    font-size: 36px;
    color: var(--primary);
}

.about-stat span {
    font-size: 14px;
    color: var(--text-light);
}

.team-grid {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.team-card {
    flex: 1;
    min-width: 220px;
    text-align: center;
}

.team-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    background: var(--border);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h4 {
    font-size: 19px;
    color: var(--dark);
    margin-bottom: 6px;
}

.team-card span {
    font-size: 14px;
    color: var(--text-light);
}

.contact-layout {
    display: flex;
    gap: 60px;
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    font-size: 32px;
    color: var(--dark);
    margin-bottom: 28px;
}

.contact-item {
    display: flex;
    gap: 18px;
    margin-bottom: 28px;
}

.contact-icon {
    width: 52px;
    height: 52px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary);
    fill: none;
    stroke-width: 2;
}

.contact-details h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 6px;
}

.contact-details p {
    font-size: 17px;
    color: var(--dark);
}

.contact-form-box {
    flex: 1.2;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 50px var(--shadow);
}

.contact-form-box h3 {
    font-size: 24px;
    color: var(--dark);
    margin-bottom: 28px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
    font-size: 15px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 16px;
    font-family: inherit;
    transition: all var(--transition);
    background: var(--bg-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(58,107,94,0.1);
}

.form-group textarea {
    min-height: 130px;
    resize: vertical;
}

.form-submit {
    margin-top: 10px;
}

footer {
    background: var(--dark);
    color: var(--white);
    padding: 70px 0 30px;
}

.footer-grid {
    display: flex;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col {
    flex: 1;
    min-width: 180px;
}

.footer-col.wide {
    flex: 1.5;
}

.footer-col h4 {
    font-size: 17px;
    margin-bottom: 22px;
    color: var(--white);
}

.footer-col p {
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--white);
}

.disclaimer-box {
    background: var(--bg-light);
    border-left: 4px solid var(--primary);
    padding: 28px 32px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 50px 0;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.9;
}

.references-box {
    margin-top: 50px;
    padding-top: 35px;
    border-top: 1px solid var(--border);
}

.references-box h4 {
    font-size: 17px;
    color: var(--dark);
    margin-bottom: 18px;
}

.references-box ol {
    padding-left: 22px;
}

.references-box li {
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-light);
}

.references-box a {
    color: var(--primary);
    word-break: break-all;
}

.legal-page {
    padding: 60px 0 90px;
}

.legal-page h1 {
    font-size: 36px;
    color: var(--dark);
    margin-bottom: 35px;
}

.legal-page h2 {
    font-size: 24px;
    color: var(--dark);
    margin: 40px 0 18px;
}

.legal-page h3 {
    font-size: 20px;
    color: var(--dark);
    margin: 30px 0 14px;
}

.legal-page p {
    margin-bottom: 18px;
}

.legal-page ul {
    margin: 18px 0 18px 26px;
}

.legal-page li {
    margin-bottom: 10px;
}

.breadcrumb {
    padding: 16px 0;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
}

.breadcrumb ul {
    display: flex;
    list-style: none;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 8px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-light);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    color: var(--text);
}

.thanks-page {
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
    background: linear-gradient(165deg, var(--bg-light) 0%, var(--accent) 100%);
}

.thanks-content {
    max-width: 550px;
}

.thanks-icon {
    width: 90px;
    height: 90px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
}

.thanks-icon svg {
    width: 45px;
    height: 45px;
    stroke: var(--white);
    fill: none;
    stroke-width: 2.5;
}

.thanks-content h1 {
    font-size: 38px;
    color: var(--dark);
    margin-bottom: 16px;
}

.thanks-content p {
    color: var(--text-light);
    font-size: 18px;
    margin-bottom: 14px;
}

.thanks-content .service-name {
    font-weight: 600;
    color: var(--primary);
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark);
    color: var(--white);
    padding: 22px 24px;
    z-index: 9999;
    display: none;
    box-shadow: 0 -5px 30px rgba(0,0,0,0.2);
}

.cookie-banner.show {
    display: block;
}

.cookie-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 280px;
    font-size: 14px;
    line-height: 1.7;
}

.cookie-text a {
    color: var(--secondary);
}

.cookie-buttons {
    display: flex;
    gap: 14px;
}

.cookie-btn {
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
}

.cookie-accept {
    background: var(--primary);
    color: var(--white);
}

.cookie-accept:hover {
    background: var(--primary-light);
}

.cookie-reject {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--white);
}

.cookie-reject:hover {
    background: rgba(255,255,255,0.1);
}

.page-hero {
    background: linear-gradient(165deg, var(--bg-light) 0%, var(--accent) 100%);
    padding: 60px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 42px;
    color: var(--dark);
    margin-bottom: 14px;
}

.page-hero p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .hero-magazine-grid {
        flex-direction: column;
    }

    .hero-text h1 {
        font-size: 38px;
    }

    .magazine-layout {
        flex-direction: column;
    }

    .feature-row {
        flex-direction: column;
    }

    .feature-row.reverse {
        flex-direction: column;
    }

    .about-intro {
        flex-direction: column;
    }

    .contact-layout {
        flex-direction: column;
    }

    .service-card {
        flex: 1 1 calc(50% - 14px);
    }
}

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

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 10px 30px var(--shadow);
        display: none;
        padding: 20px 24px;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav li a {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid var(--border);
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-card-float {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 24px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 30px;
    }

    .service-card {
        flex: 1 1 100%;
    }

    .footer-grid {
        flex-direction: column;
        gap: 35px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .cookie-inner {
        flex-direction: column;
        text-align: center;
    }

    .article-image.float-left,
    .article-image.float-right {
        float: none;
        width: 100%;
        margin: 30px 0;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}
