/* Base reset and typography */
:root {
    color-scheme: only light;
    /* 新しいカラーパレット */
    --color-base: #F8F8F8;
    --color-main: #4B4B4B;
    --color-accent: #D4A373;
    --color-sub: #8E9AAF;
    --color-white: #FFFFFF;
    --color-pink-light: #F6E2F5;
    --color-pink-dark: #F5E6F2;
    --color-pink-medium: #F1C2F8;
    --color-green-light: #E6F2E6;
    --color-green-medium: #B0D6B0;
}

/* SEO and Performance optimizations */
/* 重要でない画像の遅延読み込み */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* フォント表示の最適化 */
@font-face {
    font-family: 'Yu Mincho';
    font-display: swap;
}

/* アクセシビリティの改善 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* フォーカス表示の改善 */
:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* リンクのアクセシビリティ改善 */
a:focus {
    background-color: rgba(212, 163, 115, 0.1);
    border-radius: 4px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Helvetica Neue", Arial, sans-serif;
    color: var(--color-main);
    line-height: 1.6;
    background-color: var(--color-base);
}

h1 {
    color : var(--color-base);
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    margin: 0 0 0.5em; 
}
h2,
h3,
h4 {
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    margin: 0 0 0.5em;
    color: var(--color-main);
}

p {
    margin: 0 0 1em;
}

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

a:hover,
a:focus {
    text-decoration: underline;
}

ul,
ol {
    margin: 0 0 1em 1.2em;
    padding: 0;
}

img {
    max-width: 100%;
    display: block;
    border-radius: 8px;
}

/* Hero section */
.hero {
    position: relative;
    overflow: hidden;
    background: none;
    color: #fff;
    text-align: center;
    padding-top: 8rem;
    padding-bottom: 8rem;
    width: 100%;
    height: 100%;
}


/* 横スクロール部分 */
.slides {
    position: absolute;
    inset: 0;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* スマホでの慣性スクロール */
    /* スクロールバーを非表示にする */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.slides::-webkit-scrollbar {
    display: none; /* WebKit系ブラウザ */
}

.slide {
    flex: 0 0 100%;          /* 常に画面幅100%分を1枚のスライドにする */
    scroll-snap-align: center;
    transition: transform 0.3s ease;
}

.slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.75);
    z-index: 0;
    user-select: none; /* 画像の選択を無効化 */
    -webkit-user-drag: none; /* 画像のドラッグを無効化 */
}

/* インジケーター（丸） */
.dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background-color: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.dot:hover {
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.dot.active {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 1;
}

.hero__content {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    pointer-events: none; /* スライダー操作を妨げないように */
}

.hero__content * {
    pointer-events: auto; /* 子要素のクリックは有効にする */
}

.hero__content h1 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    letter-spacing: 0.08rem;
}

.hero__content p {
    max-width: 540px;
    margin: 1rem auto 2rem;
    font-size: 1.125rem;
}

/* ヒーローサブタイトルのレスポンシブ改行 */
.hero-subtitle {
    max-width: 540px;
    margin: 1rem auto 2rem;
    font-size: 1.125rem;
}

.hero-subtitle .mobile-br {
    display: none;
}

@media (max-width: 768px) {
    .hero-subtitle .mobile-br {
        display: inline;
    }
}

.hero__links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    background-color: var(--color-white);
    color: var(--color-accent);
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover,
.button:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(75, 75, 75, 0.15);
    text-decoration: none;
}

.button--outline {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
}

.button--outline:hover,
.button--outline:focus {
    background-color: rgba(255, 255, 255, 0.15);
}

.button--lesson {
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(212, 163, 115, 0.3);
}

.button--lesson:hover,
.button--lesson:focus {
    background-color: var(--color-main);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 163, 115, 0.4);
}

.lesson-button-container {
    margin-top: 2rem;
    text-align: center;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Section-specific button styling */
#about .button {
    background: linear-gradient(135deg, var(--color-accent) 0%, #E6B86A 100%);
    border-color: var(--color-accent);
}

#about .button:hover,
#about .button:focus {
    background: linear-gradient(135deg, #E6B86A 0%, var(--color-accent) 100%);
    box-shadow: 0 8px 20px rgba(212, 163, 115, 0.4);
}

#instructor .button {
    background: linear-gradient(135deg, #6B8E23 0%, #8FBC8F 100%);
    border-color: #6B8E23;
}

#instructor .button:hover,
#instructor .button:focus {
    background: linear-gradient(135deg, #8FBC8F 0%, #6B8E23 100%);
    box-shadow: 0 8px 20px rgba(107, 142, 35, 0.4);
}

#flow .button {
    background: linear-gradient(135deg, #8E9AAF 0%, #B0C4DE 100%);
    border-color: #8E9AAF;
}

#flow .button:hover,
#flow .button:focus {
    background: linear-gradient(135deg, #B0C4DE 0%, #8E9AAF 100%);
    box-shadow: 0 8px 20px rgba(142, 154, 175, 0.4);
}

#current-lesson .button {
    background: linear-gradient(135deg, #BC8F8F 0%, #DDA0DD 100%);
    border-color: #BC8F8F;
}

#current-lesson .button:hover,
#current-lesson .button:focus {
    background: linear-gradient(135deg, #DDA0DD 0%, #BC8F8F 100%);
    box-shadow: 0 8px 20px rgba(188, 143, 143, 0.4);
}

#gallery .button {
    background: linear-gradient(135deg, #708090 0%, #B0C4DE 100%);
    border-color: #708090;
}

#gallery .button:hover,
#gallery .button:focus {
    background: linear-gradient(135deg, #B0C4DE 0%, #708090 100%);
    box-shadow: 0 8px 20px rgba(112, 128, 144, 0.4);
}

/* Social nav */
.social-nav {
    background-color: var(--color-base);
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid rgba(212, 163, 115, 0.1);
}

.social-nav ul {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
}

.social-nav a {
    font-weight: 600;
    letter-spacing: 0.04rem;
}

/* Sections */
.section {
    padding: 4rem 1.5rem;
}

/* About Section - ベースカラー */
#about {
    background-color: var(--color-base);
}

/* Recommendation Section - 可愛いピンク系 */
#recommendation {
    background: linear-gradient(180deg, rgba(246, 226, 245, 0.08) 0%, rgba(245, 230, 242, 0.5) 100%);
}

/* Lesson Details Section - ナチュラルグリーン系 */
#lesson__details {
    background: linear-gradient(180deg, rgba(107, 142, 35, 0.06) 0%, var(--color-base) 100%);
}

/* Instructor Section - 温かみのあるベージュ系 */
#instructor.section--alt {
    background: linear-gradient(180deg, rgba(212, 163, 115, 0.08) 0%, rgba(248, 248, 248, 0.5) 100%);
}

/* Flow Section - クールなブルー系 */
#flow {
    background: linear-gradient(180deg, rgba(142, 154, 175, 0.06) 0%, var(--color-base) 100%);
}

/* Current Lesson Section - アクセントハイライト */
#current-lesson.section--highlight {
    background: linear-gradient(135deg, rgba(212, 163, 115, 0.12) 0%, rgba(142, 154, 175, 0.08) 100%);
}

/* Gallery Section - ニュートラル */
#gallery {
    background-color: rgba(248, 248, 248, 0.8);
}

/* セクション固有のヘッドライン色 */
#about h2 {
    color: var(--color-main);
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 0.5rem;
}

#recommendation h2 {
    color: var(--color-pink-medium);
    border-bottom: 2px solid var(--color-pink-medium);
    padding-bottom: 0.5rem;
}

#lesson__details h2 {
    color: var(--color-green-medium);
    border-bottom: 2px solid var(--color-green-medium);
    padding-bottom: 0.5rem;
}

#instructor h2 {
    color: #8B4513; /* サドルブラウン */
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 0.5rem;
}

#flow h2 {
    color: var(--color-sub);
    border-bottom: 2px solid var(--color-sub);
    padding-bottom: 0.5rem;
}

#current-lesson h2 {
    color: var(--color-accent);
    border-bottom: 2px solid var(--color-main);
    padding-bottom: 0.5rem;
}

#gallery h2 {
    color: var(--color-main);
}

.section__inner {
    /* display: grid;
    grid-template-columns: 1fr 3fr 2fr; */
    max-width: 2560px;
    margin: 0 auto;
}

.section__inner__about {
    /* display: grid;
    grid-template-columns: 1fr 2fr 2fr 1fr; */
    max-width: 2560px;
    margin: 0 auto;
}

.section__inner__teacher {
    display: grid;
    grid-template-columns: 1fr 2fr 0.5fr;
    max-width: 2560px;
    margin: 0 auto;
}

.section__inner__flow {
    display: grid;
    grid-template-columns: 0.1fr 6fr 0.1fr;
    max-width: 2560px;
    margin: 0 auto;
}

.section__inner__lesson {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    max-width: 2560px;
    margin: 0 auto;
}

.section__layout {
    display: grid;
    align-items: center;
}

.section__layout__reverse {
    display: grid;
    margin-left: 1rem;
    align-items: center;
}

.section__layout--top {
    align-items: start;
}

.section__content {
    display: grid;
    gap: 1.5rem;
    align-items: center;
}

.section__content__about {
    display: grid;
    gap: 1.5rem;
    align-items: start;
}

.section__content__teacher {
    display: grid;
    gap: 1.5rem;
    align-items: start;
    padding-left: 1.5rem;
}

.section__content__flow {
    display: grid;
    gap: 1.5rem;
    align-items: start;
    padding: 0 1rem;
}

.section__content__lesson {
    display: grid;
    align-items: start;
    padding-left: 1.5rem;
}

.feature-list {
    display: grid;
    gap: 0.5rem;
    list-style: "✽ ";
}

/* Section-specific feature list styling */
#recommendation .feature-list li {
    padding: 0.5rem 0;
    border-left: 3px solid var(--color-pink-light);
    padding-left: 1rem;
    background: linear-gradient(90deg, rgba(251, 192, 248, 0.08) 0%, rgba(245, 230, 242, 0.5) 100%);
}

#instructor .feature-list li {
    padding: 0.5rem 0;
    border-left: 3px solid #6B8E23;
    padding-left: 1rem;
    background: linear-gradient(90deg, rgba(107, 142, 35, 0.06) 0%, var(--color-base) 100%);
}

#flow .feature-list li {
    padding: 0.5rem 0;
    border-left: 3px solid #8E9AAF;
    padding-left: 1rem;
    background: linear-gradient(90deg, rgba(142, 154, 175, 0.1) 0%, transparent 100%);
}

#current-lesson .feature-list li {
    padding: 0.5rem 0;
    border-left: 3px solid #BC8F8F;
    padding-left: 1rem;
    background: linear-gradient(90deg, rgba(188, 143, 143, 0.1) 0%, transparent 100%);
}

#gallery .feature-list li {
    padding: 0.5rem 0;
    border-left: 3px solid #708090;
    padding-left: 1rem;
    background: linear-gradient(90deg, rgba(112, 128, 144, 0.1) 0%, transparent 100%);
}

.section__photos {
    gap: 1.25rem;
}

.section__photos figure {
    margin: 0;
    flex: 1 1 50%;
    max-width: 464px;
}

.section__photos__teacher figure {
    margin: 0;
    flex: 1 1 50%;
    max-height: 464px;
}

.section__photos__lesson figure {
    margin: 0;
    flex: 1 1 50%;
    max-height: 464px;
}

.section__photos img {
    width: 100%;
    height: 10%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 16px 30px rgba(75, 75, 75, 0.18);
}

.section__photos__teacher img{
    width: 100%;
    height: 10%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 16px 30px rgba(75, 75, 75, 0.18);
}

/* Section-specific image styling */
#about .section__photos img {
    box-shadow: 0 16px 30px rgba(212, 163, 115, 0.25);
    border: 2px solid rgba(212, 163, 115, 0.15);
}

#instructor .section__photos img,
#instructor .section__photos__teacher img {
    box-shadow: 0 16px 30px rgba(107, 142, 35, 0.25);
    border: 2px solid rgba(107, 142, 35, 0.15);
}

#flow .section__photos img {
    box-shadow: 0 16px 30px rgba(142, 154, 175, 0.25);
    border: 2px solid rgba(142, 154, 175, 0.15);
}

#current-lesson .section__photos img,
#current-lesson .section__photos__lesson img {
    box-shadow: 0 16px 30px rgba(188, 143, 143, 0.25);
    border: 2px solid rgba(188, 143, 143, 0.15);
}

#gallery .section__photos img,
#gallery .gallery img {
    box-shadow: 0 16px 30px rgba(112, 128, 144, 0.25);
}

.profile-card {
    background-color: var(--color-white);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 18px 35px rgba(75, 75, 75, 0.12);
    border-top: 3px solid var(--color-accent);
    position: relative;
}

/* .profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent) 0%, #8B4513 100%);
    border-radius: 16px 16px 0 0;
} */

.profile-card h3 {
    margin-top: 0;
    color: #8B4513;
}

.profile-card p:last-child {
    margin-bottom: 0;
}

.lesson-details-list strong {
    color: var(--color-green-medium);
    font-weight: 600;
}

.flow-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    list-style: none;
    margin: 0;
}

.flow-step-item {
    background-color: var(--color-white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 12px 30px rgba(212, 163, 115, 0.08);
    border-left: 4px solid var(--color-sub);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flow-step-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(142, 154, 175, 0.15);
}

.flow-steps h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--color-sub);
}

.lesson-info {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr 1fr;
    align-items: start;
}

.lesson-info ul {
    margin-left: 1rem;
}

.lesson-menu {
    background-color: var(--color-white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: inset 0 0 0 1px rgba(212, 163, 115, 0.15);
}

.lesson-menu h4 {
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.95rem;
    color: var(--color-accent);
}

.gallery {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    width: 100%;
    height: 100%;
}

.gallery figure {
    margin: 0;
}

.gallery figcaption {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    text-align: center;
    letter-spacing: 0.02em;
}

#gallery.section {
    padding: 0;
}

#gallery .section__inner {
    max-width: none;
    margin: 0;
}

#gallery .section__layout {
    display: block;
}

#gallery .section__content {
    display: block;
    gap: 0;
}

#gallery .gallery {
    display: block;
}

#gallery .gallery figure {
    margin: 0;
    position: relative;
    height: 60vh;
    max-height: 520px;
}

#gallery .gallery img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Lesson Details Page */
.hero--lesson {
    background: linear-gradient(135deg, #2b7252 0%, #23423d 100%);
    min-height: 40vh;
}

.lesson-detail-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.lesson-header {
    text-align: center;
    margin-bottom: 3rem;
}

.lesson-description {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 1rem auto;
}

.lesson-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.lesson-info-card,
.lesson-menu-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(35, 66, 61, 0.1);
}

.lesson-details-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lesson-details-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.lesson-details-list li:last-child {
    border-bottom: none;
}

.menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-list li {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.menu-list li:last-child {
    border-bottom: none;
}

.menu-list h4 {
    color: #2b7252;
    margin-bottom: 0.5rem;
}

.lesson-gallery {
    margin-bottom: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

.gallery-grid figure {
    margin: 0;
}

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.lesson-application {
    text-align: center;
    background-color: #f7faf7;
    padding: 2rem;
    border-radius: 12px;
}

.application-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.application-note {
    font-size: 0.9rem;
    color: #666;
    margin-top: 1rem;
}

/* Responsive for lesson details */
@media (max-width: 768px) {
    .lesson-details-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .lesson-detail-content {
        padding: 1rem;
    }
    
    .application-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Footer */
.footer {
    background-color: var(--color-main);
    color: rgba(255, 255, 255, 0.85);
    padding: 2rem 1.5rem;
}

.footer__inner {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.footer a {
    color: var(--color-accent);
    font-weight: 600;
}

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

.footer p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

/* Layout tweaks */
@media (max-width: 2560px) and (min-width: 961px) {
    /* 1024px～961px: 横並び維持、サイズ調整 */
    .section__inner {
        grid-template-columns: 0.8fr 2.5fr 1.7fr;
        max-width: 1024px;
    }

    .section__inner__about {
        grid-template-columns: 0.8fr 1.8fr 1.8fr 0.6fr;
        max-width: 1024px;
    }

    .section__inner__reverse {
        grid-template-columns: 1.7fr 1.8fr 0.5fr;
        max-width: 1024px;
    }

    .section__inner__flow {
        grid-template-columns: 0.1fr 4fr 0.1fr;
        max-width: 1024px;
    }

    .section__inner__lesson {
        grid-template-columns: 0.25fr 1.5fr 1fr;
        max-width: 1024px;
    }

    .section__photos figure {
        max-width: 280px;
    }
}

/* @media (max-width: 960px) and (min-width: 768px) { */
    /* 960px～769px: 横並び維持、よりコンパクト */
    /* .section__inner {
        display: grid;
        grid-template-columns: 0.6fr 2fr 1.4fr;
        max-width: 960px;
        gap: 1rem;
    }

    .section__inner__about {
        display: grid;
        grid-template-columns: 0.6fr 1.5fr 1.5fr 0.4fr;
        max-width: 960px;
        gap: 1rem;
    }

    .section__inner__reverse {
        display: grid;
        grid-template-columns: 1.4fr 1.5fr 0.4fr;
        max-width: 960px;
        gap: 1rem;
    }

    .section__inner__flow {
        display: grid;
        grid-template-columns: 0.3fr 1.8fr 0.6fr;
        max-width: 960px;
        gap: 1rem;
    }

    .section__inner__lesson {
        display: grid;
        grid-template-columns: 0.5fr 1fr 2fr 0.5fr;
        max-width: 960px;
        gap: 1rem;
    }

    .section__layout,
    .section__layout__reverse {
        margin: 0;
    }

    .section__photos figure {
        max-width: 250px;
    }
} */

@media (max-width: 960px) {
    /* 768px以下: 縦並びに変更 */
    .section__inner,
    .section__inner__about,
    .section__inner__reverse,
    .section__inner__teacher,
    .section__inner__flow,
    .section__inner__lesson {
        display: block;
        max-width: 700px;
        gap: 0;
    }

    .section__layout,
    .section__layout__reverse {
        display: block;
        margin: 0;
    }

    .section__content {
        margin-bottom: 1.5rem;
    }

    .section__photos {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 1.5rem;
    }

    .section__photos__lesson {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 1.5rem;
    }

    .section__photos__teacher {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 1.5rem;
    }

    .section__photos figure {
        max-width: 280px;
    }

    .section__photos__lesson figure {
        max-width: 280px;
    }

    .section__photos__teacher figure {
        max-width: 280px;
    }
}

@media (max-width: 960px) {
    .flow-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {

    .flow-steps {
        grid-template-columns: 1fr;
    }

    .section__photos {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .section__photos figure {
        max-width: 200px;
    }

    .section__photos figure:nth-child(1),
    .section__photos figure:nth-child(2) {
        transform: none;
    }
}
