/* palette: terracotta-slate */
:root {
  --primary-color: #C0392B;      /* Кнопки, акценти, заголовки */
  --secondary-color: #5D6D7E;    /* Hero bg, dark-секції, footer */
  --accent-color: #F0DB4F;       /* Іконки, hover, декор */
  --background-color: #FFF8F5;   /* Фон light-секцій */
  --dark-color: #111111;
  --text-color: #333333;
  --border-color: rgba(0,0,0,0.15);
  --shadow-color: rgba(0,0,0,0.1);
  --gradient-primary: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
  
  /* Fonts */
  --main-font: 'Merriweather', Georgia, serif;
  --alt-font: 'Roboto', Helvetica, Arial, sans-serif;
  
  /* Border style: sharp */
  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;
  --radius-btn: 0px;
  
  /* Shadow style: subtle */
  --shadow-card: 0 2px 12px rgba(0,0,0,0.07);
  --shadow-hover: 0 4px 20px rgba(0,0,0,0.12);
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--alt-font);
    line-height: 1.7;
    font-size: clamp(14px, 1.6vw, 17px);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--main-font);
    font-weight: 700;
    color: var(--dark-color);
}

h1 {
    font-size: clamp(32px, 6vw, 64px);
    line-height: 1.2;
}

h2 {
    font-size: clamp(24px, 4vw, 42px);
    line-height: 1.3;
}

h3 {
    font-size: clamp(18px, 2.8vw, 28px);
    line-height: 1.4;
}

/* Animations */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fade-up 0.6s ease-out forwards;
}

/* Header & Navigation (Mobile-First) */
header {
    background: var(--secondary-color);
    position: relative;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-color);
}

.header-inner {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 16px;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.burger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 44px;
    height: 44px;
    padding: 10px;
    cursor: pointer;
    z-index: 1001;
}

.burger-btn .bar {
    width: 24px;
    height: 2px;
    background: #F5F5F5;
    transition: transform 0.28s ease, opacity 0.28s ease;
}

#menu-toggle:checked + .burger-btn .bar:first-child {
    transform: translateY(8px) rotate(45deg);
}

#menu-toggle:checked + .burger-btn .bar:nth-child(2) {
    opacity: 0;
}

#menu-toggle:checked + .burger-btn .bar:last-child {
    transform: translateY(-8px) rotate(-45deg);
}

.site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--secondary-color);
    z-index: 999;
    border-bottom: 2px solid var(--primary-color);
}

#menu-toggle:checked ~ .site-nav {
    display: block;
}

.site-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 16px;
}

.site-nav a {
    color: #F5F5F5;
    font-weight: 500;
    text-decoration: none;
    display: block;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.site-nav a:hover {
    color: var(--accent-color);
}

@media (min-width: 768px) {
    .header-inner {
        padding: 14px 24px;
    }
    
    .burger-btn {
        display: none;
    }
    
    .site-nav {
        display: flex !important;
        position: static;
        background: transparent;
        border-bottom: none;
    }
    
    .site-nav ul {
        flex-direction: row;
        padding: 0;
        gap: 28px;
    }
    
    .site-nav a {
        padding: 0;
    }
}

/* Sections */
.section-divider {
    padding: 48px 16px;
    border-bottom: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .section-divider {
        padding: 80px 24px;
    }
}

.section-title {
    margin-bottom: 12px;
    color: var(--dark-color);
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto;
    color: var(--secondary-color);
}

/* Hero Section (floating-card) */
.hero-section {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-card {
    position: relative;
    max-width: 650px;
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    animation: fade-up 0.8s ease-out;
}

.hero-title {
    margin-bottom: 16px;
    color: var(--dark-color);
}

.hero-subtitle {
    margin-bottom: 24px;
    font-size: clamp(14px, 1.8vw, 18px);
    line-height: 1.6;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: #FFFFFF !important;
    padding: 12px 32px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--radius-btn);
    transition: transform 0.2s ease, background-color 0.2s ease;
    border: none;
    min-height: 44px;
    line-height: 20px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background-color: #A0281E;
}

@media (min-width: 768px) {
    .hero-card {
        padding: 40px;
    }
}

/* Features Section (features-2x2) */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
}

.feature-card {
    background: #FFFFFF;
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.feature-title {
    margin-bottom: 12px;
    font-size: 20px;
}

.feature-text {
    color: #555555;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* About Section (img-fullwidth) */
.fullwidth-img-container {
    width: 100%;
    margin-top: 32px;
}

.fullwidth-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.about-paragraph {
    font-size: 16px;
    color: #444444;
}

@media (min-width: 768px) {
    .fullwidth-image {
        height: 380px;
    }
}

/* Expert Quote Section */
.expert-quote-section {
    padding: 64px 16px;
    border-top: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.quote-icon {
    display: block;
    font-size: 64px;
    line-height: 1;
    font-family: var(--main-font);
    color: var(--accent-color);
    margin-bottom: -16px;
}

.expert-quote {
    font-family: var(--main-font);
    font-size: clamp(18px, 3vw, 28px);
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 16px;
}

.expert-author {
    font-family: var(--alt-font);
    font-weight: 700;
    text-transform: uppercase;
    font-style: normal;
    letter-spacing: 1px;
}

/* Testimonials Section (testimonials-cards) */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
}

.testimonial-card {
    padding: 32px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stars {
    font-size: 20px;
    margin-bottom: 16px;
}

.testimonial-text {
    font-style: italic;
    color: #555555;
    margin-bottom: 24px;
}

.testimonial-author {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.author-name {
    display: block;
    font-weight: 700;
    color: var(--dark-color);
}

.author-role {
    display: block;
    font-size: 13px;
    color: var(--secondary-color);
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Contact Section */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-title {
    margin-bottom: 16px;
}

.contact-description {
    margin-bottom: 32px;
    color: #555555;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.info-icon {
    font-size: 24px;
    background-color: rgba(192, 57, 43, 0.1);
    color: var(--primary-color);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-label {
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--secondary-color);
}

.info-value {
    color: var(--dark-color);
}

.contact-form-container {
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
}

.form-heading-title {
    margin-bottom: 8px;
    font-size: 22px;
}

.form-subheading {
    font-size: 14px;
    color: #666666;
    margin-bottom: 24px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--alt-font);
    font-size: 15px;
    background-color: #FCFCFC;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #FFFFFF;
}

.btn-submit {
    background-color: var(--primary-color);
    color: #FFFFFF;
    padding: 14px 24px;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    min-height: 44px;
}

.btn-submit:hover {
    background-color: #A0281E;
    transform: translateY(-2px);
}

@media (min-width: 1024px) {
    .contact-layout {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-form-container {
        padding: 40px;
    }
}

/* FAQ Section */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
}

.faq-item {
    background: #FFFFFF;
    padding: 24px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-card);
}

.faq-question {
    font-size: clamp(16px, 2vw, 20px);
    margin-bottom: 12px;
    color: var(--dark-color);
}

.faq-answer {
    color: #555555;
}

/* Footer */
footer {
    border-top: 4px solid var(--primary-color);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.footer-brand .logo img {
    height: 48px;
    width: auto;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-nav a {
    color: #E5E7EB;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 16px;
    text-align: center;
    font-size: 13px;
    color: #9CA3AF;
}

@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        padding: 48px 24px;
    }
    
    .footer-nav ul {
        flex-direction: row;
        gap: 24px;
    }
}