diff --git a/contact.html b/contact.html
index 4258d65..c6ae19b 100644
--- a/contact.html
+++ b/contact.html
@@ -1,101 +1,35 @@
-<!DOCTYPE html>
-<html lang="ru">
-<head>
-    <meta charset="UTF-8">
-    <meta name="viewport" content="width=device-width, initial-scale=1.0">
-    <title>Contact Us</title>
-    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
-    <style>
-        
-        body {
-            background-color: #004577; 
-            color: #ffffff; 
-        }
-
-        .contact{
-            padding-top: 50px;
-            text-align: center; /* Center align content */
-        }
-
-        form {
-            max-width: 600px; /* Set max width for the form */
-            margin: auto; /* Center the form */
-        }
-
-        label {
-            font-weight: bold; /* Bold labels */
-            margin-top: 10px; /* Add space between labels and inputs */
-            display: block; /* Display labels as block elements */
-        }
-
-        input[type="text"],
-        textarea {
-            width: 100%; /* Take full width of the container */
-            padding: 8px; /* Add some padding */
-            margin-top: 6px; /* Add space between inputs */
-            margin-bottom: 20px; /* Add space at the bottom */
-            border-radius: 5px; /* Add border radius */
-            border: 1px solid #ccc; /* Add border */
-        }
-
-        input[type="submit"] {
-            background-color: #ffc400; /* Yellow background */
-            color: #004577; /* Blue text color */
-            border: none; /* No border */
-            padding: 10px 20px; /* Add padding */
-            cursor: pointer; /* Show pointer cursor on hover */
-            border-radius: 5px; /* Add border radius */
-        }
-
-        input[type="submit"]:hover {
-            background-color: #ffa000; /* Darker yellow on hover */
-        }
-    </style>
-</head>
-<body>
-    <nav class="navbar" style="background-color: #066163;" data-bs-theme="dark" > 
-        <div class="container">
-            <a class="navbar-brand" href="/">Minecraft</a>
-            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
-                <span class="navbar-toggler-icon"></span>
-            </button>
-            <div class="collapse navbar-collapse" id="navbarNav">
-                <ul class="navbar-nav ms-auto"> 
-                    <li class="nav-item">
-                        <a class="nav-link" href="/about">О нас</a>
-                    </li>
-                    <li class="nav-item">
-                        <a class="nav-link" href="/contact">Контакты</a>
-                    </li>
-                    <li class="nav-item">
-                        <a class="nav-link" href="/dwnld">Скачать</a>
-                    </li>
-                    <li class="nav-item">
-                        <a class="nav-link" href="/login">Войти</a>
-                    </li>
-                </ul>
-            </div>
-        </div>
-    </nav>
-
-<div class="contact">
-    <h1>Contact Us</h1>
-    <p>We'd love to hear from you!</p>
-    
-    <form action="/send_message" method="post">
-        <label for="name">Name:</label>
-        <input type="text" id="name" name="name" required>
-
-        <label for="email">Email:</label>
-        <input type="text" id="email" name="email" required>
-
-        <label for="message">Message:</label>
-        <textarea id="message" name="message" rows="4" required></textarea>
-        
-        <a href="/index" class="btn btn-primary">Отправить</a>
-    </form>
-</div>
-
-<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
-</body>
-</html>
+{% extends "base.html" %}
+{% block title %}Контакт{% endblock %}
+<head>
+    <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <link rel="stylesheet" href="{{ url_for('static', filename='styles.css') }}">
+    <title>Contact Us</title>
+    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
+  
+</head>
+<body>
+    {% block content %}
+
+        <div class="contact">
+            <h1>Свяжитесь с нами! </h1>
+            <p>мы будем рады ответить вам!</p>
+            
+            <form action="/send_message" method="post">
+                <label for="name">Имя:</label>
+                <input type="text" id="name" name="name" required>
+
+                <label for="email">Почта:</label>
+                <input type="text" id="email" name="email" required>
+
+                <label for="message">Письмо:</label>
+                <textarea id="message" name="message" rows="4" required></textarea>
+                
+                <a href="/index" class="btn btn-primary">Отправить</a>
+            </form>
+        </div>
+
+<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
+    {% endblock %}
+</body>
+