/* =========================
   GLOBAL SETTINGS
   ========================= */
html {
  scroll-behavior: smooth;
}

/* Makes padding and border part of the element size so width and height stay fixed */
/* Делает так, что padding и border входят в заданную ширину и высоту,
   чтобы размер элемента оставался фиксированным */
* { 
  box-sizing: border-box; 
}

body {
  /* Layout */
  width: 100%; 
  margin: 0; 
  padding: 80px 0;

  /* Typography */
  font-family: system-ui, Arial, sans-serif; 
  font-size: 1rem;
  line-height: 1.5; 

  /* Visual Styling */
  background-color: #513C37; 
}


/* =========================
   MAIN
   ========================= */
/* Layout - MOBILE FIRST */
.about-page {
  /* Layout (centered column container)*/
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; 

    /* Visual Styling */
    background: linear-gradient(
    to bottom,
    #f9f6f1 0%,
    #f4efe7 60%,
    #eae4db 100%
    );
}

.about-section{
    /* Layout */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    /* Dimensions */
    width: 100%;
    
    /* Spacing */
    padding: 20px;
}

.about-container{
    /* Layout */
    display: flex;
    flex-direction: column;
    align-items: center;

    /* Dimensions */
    width: 100%;
    max-width: 1400px;

    /* Spacing */
    padding: 40px 20px;

    /* Visual Styling */
    border: 1px solid rgba(162, 126, 78, 0.6); 
    border-radius: 4px; 
}

.section-label {
    margin-bottom: 12px;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #a27e4e;
}

h1 {
    margin: 0 0 24px;
    text-align: center;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.1;
    color: #513C37;
}

h2 {
    margin: 0 0 16px;
    font-size: 1.6rem;
    color: #513C37;
}

h3 {
    margin: 0 0 8px;
    color: #513C37;
}

.lead {
    max-width: 750px;
    margin-bottom: 60px;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #513C37;
}

.about-grid {
    display: grid;
    gap: 24px;
    width: 100%;
    margin-bottom: 60px;
}

.card {
    padding: 28px;
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(162,126,78,0.25);
    border-radius: 12px;
}

.card p:not(:last-child) {
    margin-bottom: 16px;
}

.services-section,
.values-section {
    width: 100%;
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    gap: 12px;
}

.service-item {
    padding: 16px 20px;
    background: rgba(255,255,255,0.5);
    border-radius: 10px;
    border: 1px solid rgba(162,126,78,0.15);
}

.values-grid {
    display: grid;
    gap: 20px;
}

.value-card {
    padding: 24px;
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(162,126,78,0.25);
    border-radius: 12px;
}

.cta-block {
    max-width: 700px;
    text-align: center;
}

.cta-block p {
    margin-bottom: 24px;
}

.home-btn {
    display: inline-block;
    padding: 14px 32px;
    text-decoration: none;
    background: #513C37;
    color: white;
    border-radius: 8px;
    transition: 0.3s;
}

.home-btn:hover {
    transform: translateY(-2px);
}


@media (min-width: 768px) {

    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .values-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}